[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libobjc2 configuration fails on pthreads
From: |
jacob |
Subject: |
libobjc2 configuration fails on pthreads |
Date: |
Wed, 3 Jun 2015 03:38:55 -0700 (MST) |
Hi,
I've been fighting with this issue for two days now and I can't find a fix.
I'm trying to create deb packages for clang, libobjc2, and gnustep and I've
managed the first one, but once I get to the configuration step for libobjc2
it fails.
Versions:
LLVM: 3.6.1
Clang: 3.6.1
Compiler-rt: 3.6.1
GNUstep-make: 2.6.7
GNUstep-base: 1.25.8
Libobjc2: 1.7
The step I take is:
*
# cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is Clang 3.6.1
-- The CXX compiler identification is Clang 3.6.1
-- Check for working C compiler: /opt/company-clang/bin/clang
-- Check for working C compiler: /opt/company-clang/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/company-clang/bin/clang++
-- Check for working CXX compiler: /opt/company-clang/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The ASM compiler identification is unknown
-- Found assembler: /usr/bin/cmake
-- Warning: Did not find file Compiler/-ASM
-- Untested version of LLVM (3.6.1) found.
-- Disabling LLVM options unless explicitly enabled.
-- No C++ runtime library found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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
-- GNUstep install type set to NONE
CMake Error at CMakeLists.txt:310 (install):
install TARGETS given no LIBRARY DESTINATION for shared library target
"objc".
-- Configuring incomplete, errors occurred!
See also "/tmp/libobjc2/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/libobjc2/build/CMakeFiles/CMakeError.log".
*
What I find in the CMakeError.log is:
*
Determining if the pthread_create exist failed with the following output:
Change Dir: /tmp/libobjc2/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3676869310/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3676869310.dir/build.make
CMakeFiles/cmTryCompileExec3676869310.dir/build
make[1]: Entering directory `/tmp/libobjc2/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/tmp/libobjc2/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec3676869310.dir/CheckSymbolExists.c.o
/opt/company-clang/bin/clang -std=gnu99 -fexceptions -o
CMakeFiles/cmTryCompileExec3676869310.dir/CheckSymbolExists.c.o -c
/tmp/libobjc2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3676869310
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec3676869310.dir/link.txt --verbose=1
/opt/company-clang/bin/clang -std=gnu99 -fexceptions
CMakeFiles/cmTryCompileExec3676869310.dir/CheckSymbolExists.c.o -o
cmTryCompileExec3676869310 -rdynamic
CMakeFiles/cmTryCompileExec3676869310.dir/CheckSymbolExists.c.o: In function
`main':
/tmp/libobjc2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:(.text+0x19):
undefined reference to `pthread_create'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: Leaving directory `/tmp/libobjc2/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec3676869310] Error 1
make: *** [cmTryCompileExec3676869310/fast] Error 2
File /tmp/libobjc2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed
with the following output:
Change Dir: /tmp/libobjc2/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3039287175/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3039287175.dir/build.make
CMakeFiles/cmTryCompileExec3039287175.dir/build
make[1]: Entering directory `/tmp/libobjc2/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/tmp/libobjc2/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec3039287175.dir/CheckFunctionExists.c.o
/opt/company-clang/bin/clang -std=gnu99 -fexceptions
-DCHECK_FUNCTION_EXISTS=pthread_create -o
CMakeFiles/cmTryCompileExec3039287175.dir/CheckFunctionExists.c.o -c
/usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3039287175
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec3039287175.dir/link.txt --verbose=1
/opt/company-clang/bin/clang -std=gnu99 -fexceptions
-DCHECK_FUNCTION_EXISTS=pthread_create
CMakeFiles/cmTryCompileExec3039287175.dir/CheckFunctionExists.c.o -o
cmTryCompileExec3039287175 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [cmTryCompileExec3039287175] Error 1
make[1]: Leaving directory `/tmp/libobjc2/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3039287175/fast] Error 2
*
--
View this message in context:
http://gnustep.8.n7.nabble.com/libobjc2-configuration-fails-on-pthreads-tp39286.html
Sent from the GNUstep - Bugs mailing list archive at Nabble.com.
- libobjc2 configuration fails on pthreads,
jacob <=