-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Hello,
I'm trying to compile the current master branch on my Ubuntu 20.04 machine. Some important package information:
- cmake version 3.26.0
- gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
- g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
I'm following the installation instructions found here, but the last steps fails when I run cmake --build .:
...
[ 97%] Building CXX object tests/unit/CMakeFiles/unit_test_Module_p.dir/Module_p_test.cpp.o
[100%] Linking CXX executable /mnt/localdata/ProgrammingProjects/SLIDE/bin/Release/unit_test_Module_p
/usr/bin/ld: /tmp/unit_test_Module_p.ebGB4w.ltrans1.ltrans.o: in function `slide::Module_p::timeStep_CC(double, int)':
<artificial>:(.text+0x43be): undefined reference to `pthread_create'
/usr/bin/ld: <artificial>:(.text+0x448f): undefined reference to `pthread_create'
/usr/bin/ld: /tmp/unit_test_Module_p.ebGB4w.ltrans1.ltrans.o: in function `slide::Module_s::timeStep_CC(double, int)':
<artificial>:(.text+0x4bfe): undefined reference to `pthread_create'
/usr/bin/ld: <artificial>:(.text+0x4ccf): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[2]: *** [tests/unit/CMakeFiles/unit_test_Module_p.dir/build.make:106: /mnt/localdata/ProgrammingProjects/SLIDE/bin/Release/unit_test_Module_p] Error 1
make[1]: *** [CMakeFiles/Makefile2:723: tests/unit/CMakeFiles/unit_test_Module_p.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
I'm not familiar with cmake, so I'm not sure how to fix the pthread_create problem.
Can you help me?
Kind regards,
Joris
Metadata
Metadata
Assignees
Labels
No labels