You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/bin/ld: cfile.o: relocation R_X86_64_PC32 against undefined symbol `select@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
occbuild: Command failed: gcc -L/home/me92/src/kroc-git/kroc-git/modules/inmoslibs/libsrc/forall -L/home/me92/src/kroc-git/kroc-git/tvm/posix -shared -o liboccam_tvm_file.so cfile.o
The text was updated successfully, but these errors were encountered:
Objects that are going to be included in a shared library on AMD64 have to be built with -fPIC. occbuild could probably take care of this by returning -fPIC in --cflags on AMD64.
I had a look at this a couple of weeks ago but forgot to reply.
I think all you need to edit is occbuild.in
There is a variable target_cpu which the build system injects which can be used for the test to see if we are on x86_64.
So I think it's just a case of finding there the gcc flags are inserted and adding the check there... Someone please correct me if I am wrong about this.
The text was updated successfully, but these errors were encountered: