[Mono-dev] threads.o : fatal error: error in backend: unsupported symbol modifier in relocation
Robert N
sushihangover at outlook.com
Wed May 27 20:22:31 UTC 2015
I am trying to compile version 3.2.0 of mono for a compliance review on OS-X (git checkout mono-3.2.0) and I'm receiving a fatal error on threads.o and domain.o during the 'make' run. Diving into libmonoruntime_la-threads.lo and/or libmonoruntime_la-domain.lo, I am getting a clang/llvm fatal error of "error in backend: unsupported symbol modifier in relocation". I've also tried checking out git tags 3.2.1, 3.2.3, etc.. and the same error occurs, Also tried x32 vs x64 builds, same error. FYI: building the latest 4.x branches/tags work fine.
Anyone help point me in the right direction on this as I need to reproduce 3.2 builds before migrating this project code base to the 4.x line.
Thanks in advance.
git checkout mono-3.2.0
./autogen.sh --prefix=/Users/administrator/mono32-install --disable-nls
make (make -k)
...
CC libmonoruntime_la-threads.lo
make: *** [libmonoruntime_la-threads.lo] Error 1
...
CC libmonoruntime_la-domain.lo
make: *** [libmonoruntime_la-domain.lo] Error 1
...
make threads.o
CC threads.o
fatal error: error in backend: unsupported symbol modifier in relocation
make: *** [threads.o] Error 1
make domain.o
CC domain.o
fatal error: error in backend: unsupported symbol modifier in relocation
make: *** [domain.o] Error 1
cd mono/metadata/
make -n threads.o
echo " CC " threads.o;gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -I../../eglib/src -I../../eglib/src -DMONO_BINDIR=\"/Users/administrator/mono32-install/bin/\" -DMONO_ASSEMBLIES=\"/Users/administrator/mono32-install/lib\" -DMONO_CFG_DIR=\"/Users/administrator/mono32-install/etc\" -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Qunused-arguments -Wno-unused-function -Wno-tautological-compare -Werror-implicit-function-declaration -MT threads.o -MD -MP -MF .deps/threads.Tpo -c -o threads.o threads.c
mv -f .deps/threads.Tpo .deps/threads.Po
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
More information about the Mono-devel-list
mailing list