[swift-dev] Build Error: Relocation R_X86_64_PC32

Dmitri Gribenko gribozavr at gmail.com
Mon Feb 29 21:55:05 CST 2016

On Mon, Feb 29, 2016 at 7:51 PM, Ryan Lovelett via swift-dev
<swift-dev at swift.org> wrote:
> 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)

Hi Ryan,

If you are running binutils 2.26, this is a known issue.  A workaround
is to use the gold linker (build-script-impl has an option for this).


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-dev mailing list