Dears, After successful installation of alps-2.0.2 on my desktop (Scientific Linux 6.1) I moved to the cluster with RedHat5(el5) with gcc 4.1.2 and python 2.4.3 . Make produced error:
Linking CXX executable compactrun ../src/boost/libboost.so: undefined reference to `pthread_create' ../src/boost/libboost.so: undefined reference to `pthread_key_create' ../src/boost/libboost.so: undefined reference to `pthread_getspecific' ../src/boost/libboost.so: undefined reference to `pthread_once' ../src/boost/libboost.so: undefined reference to `pthread_join' ../src/boost/libboost.so: undefined reference to `pthread_setspecific' ../src/boost/libboost.so: undefined reference to `pthread_detach' collect2: ld returned 1 exit status make[2]: *** [tool/compactrun] Error 1 make[1]: *** [tool/CMakeFiles/compactrun.dir/all] Error 2 make: *** [all] Error 2
Is the above to the old compiler or there something else? Regards Tadeusz
It looks as it configure tool did not detect your pthread library. It would be best if you check if pthread was found during configure or by using "ccmake ." in the build directory. if not either provide -DPTHREAD_LIBRARY=/path/to/libpthread.so while initial cmake config, or in ccmake ., the last resort (it there is a more serious incompatibility) would be to add "-lpthread -L/path/to/libpthread" to variables such as CMAKE_C_FLAGS and similar (full list available for example in "ccmake ." in advanced mode - typing "t" activates it)
Regards, Mateusz Lacki
W dniu 29 listopada 2011 09:43 użytkownik Tadeusz Wasiutyński tadeusz.wasiutynski@ifj.edu.pl napisał:
Dears, After successful installation of alps-2.0.2 on my desktop (Scientific Linux 6.1) I moved to the cluster with RedHat5(el5) with gcc 4.1.2 and python 2.4.3 . Make produced error:
Linking CXX executable compactrun ../src/boost/libboost.so: undefined reference to `pthread_create' ../src/boost/libboost.so: undefined reference to `pthread_key_create' ../src/boost/libboost.so: undefined reference to `pthread_getspecific' ../src/boost/libboost.so: undefined reference to `pthread_once' ../src/boost/libboost.so: undefined reference to `pthread_join' ../src/boost/libboost.so: undefined reference to `pthread_setspecific' ../src/boost/libboost.so: undefined reference to `pthread_detach' collect2: ld returned 1 exit status make[2]: *** [tool/compactrun] Error 1 make[1]: *** [tool/CMakeFiles/compactrun.dir/all] Error 2 make: *** [all] Error 2
Is the above to the old compiler or there something else? Regards Tadeusz
You need to link the pthread library
Matthias
On Nov 29, 2011, at 9:43 AM, Tadeusz Wasiutyński wrote:
Dears, After successful installation of alps-2.0.2 on my desktop (Scientific Linux 6.1) I moved to the cluster with RedHat5(el5) with gcc 4.1.2 and python 2.4.3 . Make produced error:
Linking CXX executable compactrun ../src/boost/libboost.so: undefined reference to `pthread_create' ../src/boost/libboost.so: undefined reference to `pthread_key_create' ../src/boost/libboost.so: undefined reference to `pthread_getspecific' ../src/boost/libboost.so: undefined reference to `pthread_once' ../src/boost/libboost.so: undefined reference to `pthread_join' ../src/boost/libboost.so: undefined reference to `pthread_setspecific' ../src/boost/libboost.so: undefined reference to `pthread_detach' collect2: ld returned 1 exit status make[2]: *** [tool/compactrun] Error 1 make[1]: *** [tool/CMakeFiles/compactrun.dir/all] Error 2 make: *** [all] Error 2
Is the above to the old compiler or there something else? Regards Tadeusz
comp-phys-alps-users@lists.phys.ethz.ch