[swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'

Eric Wing ewmailing at gmail.com
Wed Nov 9 01:40:49 CST 2016


I'm comparing the build log differences between the successful build
on Ubuntu 16.10 and the failed build in Steam-Runtime.

It looks like while building Swift (past llvm & clang), at step
[651/720], the build logs diverge.
In the successful case on Ubuntu, the command is building
glibc.modulemap. But in the failed case, it seems to skip this, and is
building tgmath.swift.tmp. The build ultimately fails at step 653,
failing to find SwiftGlibc.

Any ideas why the build system would be skipping the glibc.modulemap
step in the bad case?


Below are the two steps.


Bad (steamrt):
[651/720] cd /home/pinky/Source/SWIFT/swift/stdlib/public/Platform &&
/home/pinky/steam-runtime/usr/bin/cmake -E make_directory
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/4
&& /home/pinky/Source/SWIFT/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/home/pinky/Source/SWIFT/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/home/pinky/Source/SWIFT/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=4 -o
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/4/tgmath.swift.tmp
tgmath.swift.gyb && /home/pinky/steam-runtime/usr/bin/cmake -E
copy_if_different
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/4/tgmath.swift.tmp
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/4/tgmath.swift
&& /home/pinky/steam-runtime/usr/bin/cmake -E remove
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/4/tgmath.swift.tmp

Good (Ubuntu):
[651/720] cd /home/pinky/Source/SWIFT/swift/stdlib/public/Platform &&
/usr/bin/cmake -E make_directory
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/android/armv7
&& /home/pinky/Source/SWIFT/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/home/pinky/Source/SWIFT/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/home/pinky/Source/SWIFT/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SDK=ANDROID
-DGLIBC_INCLUDE_PATH=/home/pinky/Android/android-ndk/platforms/android-21/arch-arm//usr/include
-DGLIBC_ARCH_INCLUDE_PATH=/home/pinky/Android/android-ndk/platforms/android-21/arch-arm//usr/include
-o /home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/android/armv7/glibc.modulemap.tmp
glibc.modulemap.gyb && /usr/bin/cmake -E copy_if_different
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/android/armv7/glibc.modulemap.tmp
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/android/armv7/glibc.modulemap
&& /usr/bin/cmake -E remove
/home/pinky/Source/SWIFT/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/android/armv7/glibc.modulemap.tmp


More information about the swift-dev mailing list