Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake error #8

Closed
playgamelxh opened this issue Jul 8, 2015 · 8 comments
Closed

cmake error #8

playgamelxh opened this issue Jul 8, 2015 · 8 comments

Comments

@playgamelxh
Copy link

-- This is unix
CMake Error at driver/c++/CMakeLists.txt:29 (message):
message called with incorrect number of arguments
-- Configuring incomplete, errors occurred!
See also "/root/QConf/build/CMakeFiles/CMakeOutput.log".
See also "/root/QConf/build/CMakeFiles/CMakeError.log".

Run Build Command:/usr/bin/gmake "cmTryCompileExec512667654/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec512667654.dir/build.make CMakeFiles/cmTryCompileExec512667654.dir/build
gmake[1]: Entering directory /root/QConf/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/QConf/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec512667654.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec512667654.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec512667654 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec512667654.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec512667654.dir/CheckFunctionExists.c.o -o cmTryCompileExec512667654 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: ld 返回 1 gmake[1]: Leaving directory/root/QConf/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec512667654] 错误 1
gmake: *** [cmTryCompileExec512667654/fast] 错误 2

@CatKang
Copy link
Contributor

CatKang commented Jul 8, 2015

Firstly, Change work directory to $QCONF_PATH$/deps/zookeeper

Then, try commands below step by step and see where error happens
patch -f -p1 -i zookeeper-3.4.5.patch)
./configure --prefix=$QCONF_PATH$/deps/zookeeper/_install
make
make install

@playgamelxh
Copy link
Author

I did, no errors
How to do the next

@CatKang
Copy link
Contributor

CatKang commented Jul 14, 2015

Change work directory to $QCONF_PATH$/deps/zookeeper/_install/lib
And execute command "ar x libzookeeper_mt.a"

Let me know if the libzookeeper_mt.a is not exist or any other error happens

You may join our QQ group: 438042718

@jimmy1911
Copy link

@CatKang I met the same problem. I executed the commands you mentioned as followed:
patch -f -p1 -i zookeeper-3.4.5.patch
./configure --prefix=$QCONF_PATH$/deps/zookeeper/_install
make
But error occured.The error info is lilke this:
'''
[root@bb089fa2dfae zookeeper]# make
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/root/workspace/src/QConf/deps/zookeeper/_install CC=/usr/bin/cc CXX=/usr/bin/c++ --no-create --no-recursion
checking for doxygen... /usr/bin/doxygen
checking for perl... /usr/bin/perl
checking for dot... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
./configure: line 4627: syntax error near unexpected token 1.10.2' ./configure: line 4627: AM_PATH_CPPUNIT(1.10.2)'
make: *** [config.status] Error 2
'''

@CatKang
Copy link
Contributor

CatKang commented Dec 25, 2015

@CatKang CatKang closed this as completed Jul 29, 2016
@CatKang
Copy link
Contributor

CatKang commented Jul 29, 2016

如果仍然有问题,可以联系我

@txl1290
Copy link

txl1290 commented Mar 23, 2017

hello @CatKang 我遇到了类似的问题,cmake失败。

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/root/lib/conf_center/QConf/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2703508724/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2703508724.dir/build.make CMakeFiles/cmTryCompileExec2703508724.dir/build
gmake[1]: Entering directory /home/root/lib/conf_center/QConf/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/root/lib/conf_center/QConf/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2703508724.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec2703508724.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2703508724 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2703508724.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec2703508724.dir/CheckFunctionExists.c.o -o cmTryCompileExec2703508724 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status gmake[1]: Leaving directory /home/root/lib/conf_center/QConf/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2703508724] Error 1
gmake: *** [cmTryCompileExec2703508724/fast] Error 2

查看了本机的libpthread.a里是有pthread_create的。

@gaodq
Copy link
Contributor

gaodq commented Mar 30, 2017

可以试一下把deps/zookeeper/aclocal.m4里面的
LIBTOOL='$(SHELL) $(top_builddir)/libtool'改为
LIBTOOL=/usr/bin/libtool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants