aleth icon indicating copy to clipboard operation
aleth copied to clipboard

cmake: undefined reference to 'pthread_create'

Open jasonclinx opened this issue 4 years ago • 2 comments

Hi is there anyone encountering this error when building aleth? My build process stopped at ERROR and I found undefined reference to 'pthread_create' from CMakeError.log.

How to fix this error?

jasonclinx avatar Jul 02 '20 01:07 jasonclinx

You must link with pthread, but it depends which target is failing.

chfast avatar Sep 18 '20 21:09 chfast

If you'd like, I can edit the CMakeLists.txt so that the failure occurs at the configure stage, and warns the builder that they are missing pthread. Otherwise all will proceed normally until the linker attempts to locate something called "pthread_create" and fail at link time.

MichaelAnthonyP96 avatar Mar 25 '21 02:03 MichaelAnthonyP96