COIN-OR::LEMON - Graph Library

Opened 10 years ago

Closed 9 years ago

#518 closed defect (duplicate)

phthreads problem

Reported by: wesolyfoton Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.4 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

cmake show message:

-- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Copy doc from source tree -- Configuring incomplete, errors occurred!

which suggest that he know that I don't have pthreads and he should use pthread. But in CMakeError.log I can find:

/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec351954419.dir/CheckFunctionExists.c.o -o cmTryCompileExec351954419 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: * [cmTryCompileExec351954419] Error 1 make[1]: Leaving directory

where he used -lpthreads

cmake version 2.8.12.2

Change History (4)

comment:1 Changed 10 years ago by Alpar Juttner

There is nothing wrong with the "error" you quoted from CMakeError.log. This is when cmake tests if pthreads is available. The error just means that it isn't.

Thus the Configuring incomplete, errors occurred! message refers to something else. There should be an error message printed directly to the console somewhere above. Could you please send it?

comment:2 Changed 10 years ago by wesolyfoton

Maybe this one?

CMake Error at CMakeLists.txt:3 (CMAKE_POLICY):

Policy "CMP0048" is not known to this version of CMake.

comment:3 Changed 10 years ago by Alpar Juttner

Ok, that's fixed in the latest dev version: https://lemon.cs.elte.hu/hg/lemon-main/file/5de6a70446f6

See #502

comment:4 Changed 9 years ago by Alpar Juttner

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.