maintainer-feedback requested: [Bug 218885] lang/mono: WITH_LLD_IS_LD: pthread_support: error: failed to compute relocation: R_X86_64_DTPOFF64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 26 12:08:23 UTC 2017


O. Hartmann <ohartmann at walstatt.org> has reassigned Bugzilla Automation
<bugzilla at FreeBSD.org>'s request for maintainer-feedback to mono at FreeBSD.org:
Bug 218885: lang/mono: WITH_LLD_IS_LD: pthread_support: error: failed to
compute relocation: R_X86_64_DTPOFF64
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218885



--- Description ---
On recent CURRENT (FreeBSD 12.0-CURRENT #16 r317435: Wed Apr 26 10:22:35 CEST
2017 amd64) with WITH_LLD_IS_LD enabled, port lang/mono fails via compiling on
the host itself (make in ports tree) and via poudriere with the error shown
below, which I believe is caused by LLVM 4.0.0/LLD):

[...]
libtool: link: cc -shared  -fPIC -DPIC	-Wl,--whole-archive ./.libs/libmini.a
../../mono/metadata/.libs/libmonoruntime.a ../../mono/io-layer/.libs/libwapi.a
../../mono/utils/.libs/libmonoutils.a
/usr/ports/lang/mono/work/mono-4.6.2/eglib/src/.libs/libeglib.a
../../libgc/.libs/libmonogc.a -Wl,--no-whole-archive  -L/usr/local/lib
-L../../eglib/src -lm -linotify  -O2 -O3 -fstack-protector -fstack-protector
-pthread -pthread   -pthread -Wl,-soname -Wl,libmonoboehm-2.0.so.1 -o
.libs/libmonoboehm-2.0.so.1.0.0
error: failed to compute relocation: R_X86_64_DTPOFF64
/usr/bin/ld: error: pthread_support.c:218: can't create dynamic relocation
R_X86_64_TLSLD against symbol 'GC_thread_tls' defined in
../../libgc/.libs/libmonogc.a(pthread_support.o)


More information about the freebsd-mono mailing list