Compile error on Arch since some days


#1

I have been away from OF for a while and downloaded the Nightly Build last week sometime, which worked fine. After doing some pacman updates on Arch, I got compilation errors:

/usr/bin/ld: /home/thinkpad2000/Downloads/of_v20170714_linux64_release/libs/kiss/lib/linux64/libkiss.a(kiss_fftr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/thinkpad2000/Downloads/of_v20170714_linux64_release/libs/tess2/lib/linux64/libtess2.a(tess.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/thinkpad2000/Downloads/of_v20170714_linux64_release/libs/tess2/lib/linux64/libtess2.a(mesh.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/thinkpad2000/Downloads/of_v20170714_linux64_release/libs/tess2/lib/linux64/libtess2.a(sweep.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/thinkpad2000/Downloads/of_v20170714_linux64_release/libs/tess2/lib/linux64/libtess2.a(dict.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[1]: *** [/home/thinkpad2000/Downloads/of_v20170714_linux64_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:405: bin/mptest1] Error 1
make[1]: Leaving directory '/home/thinkpad2000/Downloads/of_v20170714_linux64_release/apps/myApps/mptest1'
make: *** [/home/thinkpad2000/Downloads/of_v20170714_linux64_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

Anyone has a clue what this might be about?


#2

are you using the gcc6 version of the nightlies? you probably updated your compiler to gcc 6 or more which comes with some options that aren’t compatible anymore with previous versions so now you need the gcc6 version


#3

Thanks a lot Arturo, it works when using the GCC6 version.


#4

I had similar errors which were solved by downgrading clang 4.0.1-5 to 4.0.1-1.


#5

I had the same problem running of_v20170714_linux64_nightly.tar.gz on Arch Linux with GCC 7.2.

When I switched to of_v20170714_linux64gcc6_nightly.tar.gz then the problem disappeared.

I mistakenly assumed that of_v20170714_linux64_nightly.tar.gz was the most up-to-date version, but I was wrong :slight_smile: