I ran into this error a couple of times when building Swift on X86:
/home/bryanpkc/swift/swift/stdlib/public/core/ArrayBody.swift:18:8: error:
opening import file for module 'SwiftShims': No such file or directory
import SwiftShims
^
[487/524] Generating UnicodeExtendedGraphemeClusters.cpp from
UnicodeExtendedGraphemeClusters.cpp.gyb with ptr size = 8
ninja: build stopped: subcommand failed.
My invocation to build is (I am using clang and LLVM trunk):
./utils/build-script -c -r -t -- --reconfigure --use-gold-linker
The last time I saw this, I updated the source and re-ran a clean build,
and it actually finished; I couldn't identify what had changed. But the
problem seems to come and go randomly. Has any one seen this, and how can I
debug it?
Thanks,
Bryan
gribozavr
(Dmitri Gribenko)
2
This is [SR-23] Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file · Issue #42646 · apple/swift · GitHub
Dmitri
···
On Wed, Mar 2, 2016 at 1:20 PM, Bryan Chan via swift-dev <swift-dev@swift.org> wrote:
I ran into this error a couple of times when building Swift on X86:
/home/bryanpkc/swift/swift/stdlib/public/core/ArrayBody.swift:18:8: error:
opening import file for module 'SwiftShims': No such file or directory
import SwiftShims
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/
Thanks a lot for the quick response! Downgrading libstdc++ to 6.0.19 on my
box seems to work around the issue and allow me to get further.
Bryan
> I ran into this error a couple of times when building Swift on X86:
>
> /home/bryanpkc/swift/swift/stdlib/public/core/ArrayBody.swift:18:8:
error:
···
Dmitri Gribenko <gribozavr@gmail.com> wrote on 2016-03-02 04:21:30 PM: > On Wed, Mar 2, 2016 at 1:20 PM, Bryan Chan via swift-dev > <swift-dev@swift.org> wrote:
> opening import file for module 'SwiftShims': No such file or directory
> import SwiftShims
This is [SR-23] Build fails on Ubuntu 14.04.1 -> error: opening ... 'SwiftShims': No such file · Issue #42646 · apple/swift · GitHub
Dmitri