Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2018-07-12 15:28:25

Paul CARRICO
Member
From: France
Registered: 2007-12-26
Posts: 294

compilation failed because of "-lpthreads"

Dear All

I'm trying to compile Code Aster under a CenTos 7, but I meet 1 failure in MFront compiling.

In "/tmp/install_mfront.7181/mfront-3.0.0/build/CMakeFiles/CMakeError.log" file, the following lines appear:
/bin/ld : ne peut trouver -lpthreads
collect2: erreur: ld a retourné 1 code d'état d'exécution
gmake[1]: *** [cmTryCompileExec3876886918] Erreur 1
gmake[1] : on quitte le répertoire « /tmp/install_mfront.7181/mfront-3.0.0/build/CMakeFiles/CMakeTmp »
gmake: *** [cmTryCompileExec3876886918/fast] Erreur 2

It sounds familiar, but I do not remember what I miss: can somebody help?

Nota: let me saying that all the pre-requirements have been installed (libboost and so on)

Thanks

Paul

Last edited by Paul CARRICO (2018-07-15 13:18:38)


Attachments:
CMakeError.log, Size: 18.59 KiB, Downloads: 9

Offline

#2 2018-08-02 09:36:15

thomas.helfer
Member
Registered: 2013-09-26
Posts: 86

Re: compilation failed because of "-lpthreads"

Dear Paul,
I just installed CentOs 7. I can't reproduce the issue. Everything works flawlessly.
The libpthread library is usually part of the glibc and it is very strange that is missing on your box.
With kind regards,
Thomas Helfer

Offline

Board footer