[swift-dev] Build Error: Relocation R_X86_64_PC32

Ryan Lovelett swift-dev at ryan.lovelett.me
Mon Feb 29 21:51:37 CST 2016


I have a daily build of Swift that I make on a Arch Linux box. On the
morning of February 23rd the build starting failing with the following
error:

/usr/bin/ld: stdlib/public/core/linux/x86_64/Swift.o: relocation
R_X86_64_PC32 against protected symbol `_TMPSa' can not be used when
making a shared object
/usr/bin/ld: final link failed: Bad value
clang-3.7: error: linker command failed with exit code 1 (use -v to see
invocation)

I build with these arguments:

utils/build-script --assertions --no-swift-stdlib-assertions --llbuild
--swiftpm --xctest --build-subdir=buildbot_linux --lldb --release --test
--validation-test --foundation -- --swift-enable-ast-verifier=0
--install-swift --install-lldb --install-llbuild --install-swiftpm
--install-xctest --install-prefix=/usr
'--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;license'
--build-swift-static-stdlib=1 --build-swift-stdlib-unittest-extra=1
--skip-test-lldb=1 --test-installable-package=1
--install-destdir=/build/swiftc/pkg/swiftc/
--installable-package=/build/swiftc/swift-3.0.20160208a.r613.g0a87b5a.tar.xz
--install-foundation --reconfigure --skip-test-cmark=1
--skip-test-lldb=1 --skip-test-swift=1 --skip-test-llbuild=1
--skip-test-swiftpm=1 --skip-test-xctest=1 --skip-test-foundation=1
--skip-test-osx=1 --skip-test-ios=1 --skip-test-ios-simulator=1
--skip-test-tvos=1 --skip-test-tvos-simulator=1 --skip-test-watchos=1
--skip-test-watchos-simulator=1 --skip-test-validation=1
--skip-test-optimized=1 --reconfigure=1 --verbose-build=1

Would anyone have an idea of what could have gone wrong (before I spend
time running `git bisect` and building on all the different repos)?


More information about the swift-dev mailing list