[swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'
Jordan Rose
jordan_rose at apple.com
Wed Nov 9 10:50:25 CST 2016
Ah, that does help. The logic to build the Glibc module map comes from stdlib/public/Platform/CMakeLists.txt, and explicitly checks for “LINUX”, “FREEBSD”, “ANDROID”, and “CYGWIN”. Does the Steam-Runtime build use a different SDK name?
Jordan
> On Nov 8, 2016, at 23:40, Eric Wing via swift-dev <swift-dev at swift.org> wrote:
>
> 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
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
More information about the swift-dev
mailing list