Hello,
I have been attempting to build Swift, but have been running into issues near
the end of the build. Specifically, CMake fails on the step [2112/2254]
Performing configure step for 'compiler-rt’, since the compiled clang fails to
build a simple C program. The specific issue appears to be at the lines:
ld: unexpected token: !tapi-tbd-v2 file
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd'
for architecture x86_64
My system settings are as follows:
MacBook Pro (Retina, Mid 2012)
macOS Sierra Version 10.12.2 Beta (16C48b)
Xcode Version 8.1 (8B62)
|----clang/clang++: Apple LLVM version 8.0.0 (clang-800.0.42.1)
The full text of the failure is below. Any help figuring out how to solve this
issue would be greatly appreciated.
[2112/2254] Performing configure step for 'compiler-rt'
-- The C compiler identification is Clang 4.0.0
-- The CXX compiler identification is Clang 4.0.0
-- The ASM compiler identification is Clang
-- Found assembler:
/Users/freddy/Development/swift/swift-source/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/./bin/clang
-- Check for working C compiler:
/Users/freddy/Development/swift/swift-source/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/./bin/clang
-- Check for working C compiler:
/Users/freddy/Development/swift/swift-source/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/./bin/clang
-- broken
CMake Error at
/Applications/CMake.app/Contents/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51
(message):
The C compiler
"/Users/freddy/Development/swift/swift-source/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/./bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
/Users/freddy/Development/swift/swift-source/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/tools/clang/runtime/compiler-rt-bins/CMakeFiles/CMakeTmp
Run Build Command:"/opt/local/bin/ninja" "cmTC_b980a"
[1/2] Building C object CMakeFiles/cmTC_b980a.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_b980a
FAILED: cmTC_b980a
: &&
/Users/freddy/Development/swift/swift-source/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/./bin/clang
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTC_b980a.dir/testCCompiler.c.o -o cmTC_b980a && :
ld: unexpected token: !tapi-tbd-v2 file
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd'
for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:12 (project)
Freddy
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev