pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Relocation against symbol can not be used when making a shared object



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I'm working on CoreCLR for NetBSD.

My package is in pkgsrc-wip/coreclr-git.

It requires: pkgsrc-wip/llvm-git, pkgsrc-wip/clang-git,
pkgsrc-wip/lldb-git, pkgsrc-wip/libunwind-git.

I'm stuck with a liner error and it looks like there is missing
somewhere -fPIC [1]. I don't see where it may be missing.

I was checking its build logs without success.

May someone please give me a hand with it and try to build it please?

Here is an upstream ticket report filed for this bug:
https://github.com/dotnet/coreclr/issues/3020

This is blocking further porting .Net to NetBSD. At the moment we
build 100% CoreFX, 100% CoreRT, 98% CoreCLR - while CoreCLR is crucial
for everything else.

Thank you in advance,

[1]
[ 98%] Building CXX object
src/jit/standalone/CMakeFiles/ryujit.dir/__/simdcodegenxarch.cpp.o
[ 98%] Building CXX object
src/jit/standalone/CMakeFiles/ryujit.dir/__/simd.cpp.o
[ 98%] Building CXX object
src/jit/dll/CMakeFiles/ClrJit.dir/__/simdcodegenxarch.cpp.o
[ 98%] Building CXX object src/jit/dll/CMakeFiles/ClrJit.dir/__/simd.cpp
.o
[ 98%] Linking CXX shared library libryujit.so
clang-3.9: warning: argument unused during compilation: '-g'
clang-3.9: warning: argument unused during compilation: '-ggdb'
clang-3.9: warning: argument unused during compilation: '-g'
clang-3.9: warning: argument unused during compilation: '-ggdb'
clang-3.9: warning: argument unused during compilation: '-nostdinc++'
clang-3.9: warning: argument unused during compilation: '-g'
[ 98%] Built target ryujit
[ 98%] Linking CXX static library libClrJit.a
[ 98%] Built target ClrJit
Scanning dependencies of target coreclr
[ 98%] Building CXX object
src/dlls/mscoree/coreclr/CMakeFiles/coreclr.dir/__/mscoree.cpp.o
[ 98%] Building CXX object
src/dlls/mscoree/coreclr/CMakeFiles/coreclr.dir/__/unixinterface.cpp.o
[ 98%] Linking CXX shared library libcoreclr.so
clang-3.9: warning: argument unused during compilation: '-g'
clang-3.9: warning: argument unused during compilation: '-ggdb'
clang-3.9: warning: argument unused during compilation: '-g'
clang-3.9: warning: argument unused during compilation: '-ggdb'
clang-3.9: warning: argument unused during compilation: '-nostdinc++'
clang-3.9: warning: argument unused during compilation: '-g'
/usr/bin/ld:
../../../vm/wks/libcee_wks.a(externalmethodfixupthunk.S.o): relocation
R_X86_64_PC32 against symbol `ExternalMethodFixupWorker' can not be
used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
clang-3.9: error: linker command failed with exit code 1 (use -v to
see invocation)
- --- src/dlls/mscoree/coreclr/libcoreclr.so ---
*** [src/dlls/mscoree/coreclr/libcoreclr.so] Error code 1

make[2]: stopped in
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/bin/obj/NetBSD.x64.Debug
1 error

make[2]: stopped in
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/bin/obj/NetBSD.x64.Debug
- --- src/dlls/mscoree/coreclr/CMakeFiles/coreclr.dir/all ---
*** [src/dlls/mscoree/coreclr/CMakeFiles/coreclr.dir/all] Error code 2

make[1]: stopped in
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/bin/obj/NetBSD.x64.Debug
1 error

make[1]: stopped in
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/bin/obj/NetBSD.x64.Debug
*** [all] Error code 2

make: stopped in
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/bin/obj/NetBSD.x64.Debug
1 error

make: stopped in
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/bin/obj/NetBSD.x64.Debug
Failed to build coreclr components.
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/wip/coreclr-git
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/coreclr-git

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWuwozAAoJEEuzCOmwLnZsQQwQALo9Iiz1jUL4Tia71fhdE4rH
BsXJrgr+QWBh4bdYWsFNwu7mpFbbxPkcB6QPUtZ49bncd4OQCyGCIqDzohNACYYz
iIg5YM4ltWjHeHMzHyeQKKVmpSZb5Jajcyi3Gids/6B4yImF39NBMuNdUmGdMWZN
y72iwgK7ENfAwu/Od4M6Ig61l1iMwNhJyLByN4nZ4sk6woSd1CjPSMJM+GEsMEjZ
Iqkb5nqsYbl/D15FUO6x37P/Ddm6Fe3JKixZif5moQZEALDScdPwZr4To7yKwqER
tu4rbvpijmdJpLfzlp9lt5xJn+mN/Y4o0prqaGf9rtlUCXdIcxbG/YJamZkygTrx
ohUSwI6s5Io//mGlv1OV2KbLNM3G9CQJnz55yLwrdkGI4UT0BO37+8VtxyMHnnsU
32dOy167ehHxpCwvERqvwQXXWv/9i7XrkbRa23h1A5SQgReOm26EnyPV871pYFpN
AJwEORnobxVEl4IT4BLZ4vjhO0Ub6/Ks+o1+0snuRjGQ5I2Tqd4jzdHQYd5EU4if
qMto5LwjBscFsLnXjUKcdzikP29J1w1hTR/BsXxP8gHQX6HuO4PwJqaNcMfg+2iy
LfJ0WMofSRmT2aqletmJFCOgx+i3bhnZpTZg7HTs158e7DVsclcOTS2cnb2BPqSg
G3+QS+8pincQeJQaZzkn
=VI4u
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index