I am trying to use the prebuilt Ubuntu 14.04 binaries on Ubuntu 12.04. I have run into two problems so far.
1. Swift needs libicu52. Only libicu48 is available for 12.04. Easy enough… just compile libicu52 and stick the libraries in /usr/local/lib. OK.
2. When I try to compile or use the REPL, I get “<unknown>:0: error: opening import file for module 'SwiftShims': No such file or directory”.
For #2, I gave up trying to find the bug in the source code; right now I am in hack mode. I want to build SwiftShims.swiftmodule myself and stick it in usr/lib/swift/linux/x86_64, which is one of the places the Swift compiler tries to check. Any ideas how to make SwiftShims.swiftmodule?
Darren
You’re probably hitting the same issue as these similar bugs:
SR-23Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file <Issues · apple/swift-issues · GitHub;
SR-333Compiling hello world fails on ARM Linux <Issues · apple/swift-issues · GitHub;
I haven’t really looked into it very much, but it seems like relatively minor changes in system details can cause the appearance of this.
- Will
···
On Jan 13, 2016, at 6:42 PM, Darren Mo via swift-dev <swift-dev@swift.org> wrote:
I am trying to use the prebuilt Ubuntu 14.04 binaries on Ubuntu 12.04. I have run into two problems so far.
1. Swift needs libicu52. Only libicu48 is available for 12.04. Easy enough… just compile libicu52 and stick the libraries in /usr/local/lib. OK.
2. When I try to compile or use the REPL, I get “<unknown>:0: error: opening import file for module 'SwiftShims': No such file or directory”.
For #2, I gave up trying to find the bug in the source code; right now I am in hack mode. I want to build SwiftShims.swiftmodule myself and stick it in usr/lib/swift/linux/x86_64, which is one of the places the Swift compiler tries to check. Any ideas how to make SwiftShims.swiftmodule?
Darren
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev
Found the bug: [SR-23] Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file · Issue #42646 · apple/swift · GitHub <[SR-23] Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file · Issue #42646 · apple/swift · GitHub;
···
On Jan 15, 2016, at 12:16 PM, William Dillon <william@housedillon.com> wrote:
You’re probably hitting the same issue as these similar bugs:
SR-23Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file <Issues · apple/swift-issues · GitHub;
SR-333Compiling hello world fails on ARM Linux <Issues · apple/swift-issues · GitHub;
I haven’t really looked into it very much, but it seems like relatively minor changes in system details can cause the appearance of this.
- Will
On Jan 13, 2016, at 6:42 PM, Darren Mo via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
I am trying to use the prebuilt Ubuntu 14.04 binaries on Ubuntu 12.04. I have run into two problems so far.
1. Swift needs libicu52. Only libicu48 is available for 12.04. Easy enough… just compile libicu52 and stick the libraries in /usr/local/lib. OK.
2. When I try to compile or use the REPL, I get “<unknown>:0: error: opening import file for module 'SwiftShims': No such file or directory”.
For #2, I gave up trying to find the bug in the source code; right now I am in hack mode. I want to build SwiftShims.swiftmodule myself and stick it in usr/lib/swift/linux/x86_64, which is one of the places the Swift compiler tries to check. Any ideas how to make SwiftShims.swiftmodule?
Darren
_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev
Excellent detective work!
I’m happy I’ll have something constructive to tell people that ask for help when this comes up!
···
On Jan 15, 2016, at 8:24 PM, Darren Mo <darren.mo@me.com> wrote:
Found the bug: [SR-23] Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file · Issue #42646 · apple/swift · GitHub <[SR-23] Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file · Issue #42646 · apple/swift · GitHub;
On Jan 15, 2016, at 12:16 PM, William Dillon <william@housedillon.com <mailto:william@housedillon.com>> wrote:
You’re probably hitting the same issue as these similar bugs:
SR-23Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file <Issues · apple/swift-issues · GitHub;
SR-333Compiling hello world fails on ARM Linux <Issues · apple/swift-issues · GitHub;
I haven’t really looked into it very much, but it seems like relatively minor changes in system details can cause the appearance of this.
- Will
On Jan 13, 2016, at 6:42 PM, Darren Mo via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
I am trying to use the prebuilt Ubuntu 14.04 binaries on Ubuntu 12.04. I have run into two problems so far.
1. Swift needs libicu52. Only libicu48 is available for 12.04. Easy enough… just compile libicu52 and stick the libraries in /usr/local/lib. OK.
2. When I try to compile or use the REPL, I get “<unknown>:0: error: opening import file for module 'SwiftShims': No such file or directory”.
For #2, I gave up trying to find the bug in the source code; right now I am in hack mode. I want to build SwiftShims.swiftmodule myself and stick it in usr/lib/swift/linux/x86_64, which is one of the places the Swift compiler tries to check. Any ideas how to make SwiftShims.swiftmodule?
Darren
_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev