luxrays compile/linker problem in Fedora14

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

luxrays compile/linker problem in Fedora14

Postby 2d23d » Fri Nov 19, 2010 9:48 pm

Hi everyone!
I was trying to compile luxrays today but got stuck. After searching around for a while this seems to be related to a DSO LinkChange in Fedora (https://fedoraproject.org/wiki/UnderstandingDSOLinkChange) and its asking to explicitly link pthread to the linker command line (see error below)
I'm not good with cmake and make; I've tried adding that in various places (in cmake files and makefiles) but no luck...
Is there any kind soul that can help me out?

Thanx in advance

====================================================================
Built target smallppmgpu
Linking CXX executable ../../bin/slg
/usr/bin/ld: CMakeFiles/slg.dir/telnet.cpp.o: undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_key_delete@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
====================================================================
2d23d
 
Posts: 2
Joined: Tue Feb 02, 2010 2:39 am

Re: luxrays compile/linker problem in Fedora14

Postby 2d23d » Mon Nov 22, 2010 4:32 pm

OK, I got it to compile by altering this in CMakeLists.txt (adding -lpthread)

set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Wall -fPIC -O3 -ftree-vectorize -msse -msse2 -msse3 -mssse3 -lpthread -fvariable-expansion-in-unroller")

still testing if this broke something but looks good so far...
2d23d
 
Posts: 2
Joined: Tue Feb 02, 2010 2:39 am


Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 0 guests

cron