You are not logged in.

#1 2015-11-30 07:56:40

tthanh16
Member
Registered: 2015-11-24
Posts: 4
Website

Can't install conky-cli, compile error

When compile conky-cli i got error:

CMake Error at cmake/ConkyPlatformChecks.cmake:29 (check_include_files):
  Unknown CMake command "check_include_files".
Call Stack (most recent call first):
  CMakeLists.txt:37 (include)


-- Configuring incomplete, errors occurred!
See also "/tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeOutput.log".
See also "/tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeError.log".

CMakeError.log content

Determining if the pthread_create exist failed with the following output: Change Dir: /tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_a7488/fast" /usr/bin/make -f CMakeFiles/cmTC_a7488.dir/build.make CMakeFiles/cmTC_a7488.dir/build make[1]: Entering directory '/tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a7488.dir/CheckSymbolExists.c.o /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -o CMakeFiles/cmTC_a7488.dir/CheckSymbolExists.c.o -c /tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_a7488 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a7488.dir/link.txt --verbose=1 /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wl,-O1,--sort-common,--as-needed,-z,relro CMakeFiles/cmTC_a7488.dir/CheckSymbolExists.c.o -o cmTC_a7488 -rdynamic CMakeFiles/cmTC_a7488.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text.startup+0x6): undefined reference topthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_a7488.dir/build.make:97: recipe for target 'cmTC_a7488' failed make[1]: *** [cmTC_a7488] Error 1 make[1]: Leaving directory '/tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_a7488/fast' failed make: *** [cmTC_a7488/fast] Error 2
File /tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/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/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_cd1b4/fast" /usr/bin/make -f CMakeFiles/cmTC_cd1b4.dir/build.make CMakeFiles/cmTC_cd1b4.dir/build make[1]: Entering directory '/tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cd1b4.dir/CheckFunctionExists.c.o /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_cd1b4.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.4/Modules/CheckFunctionExists.c Linking C executable cmTC_cd1b4 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cd1b4.dir/link.txt --verbose=1 /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1,--sort-common,--as-needed,-z,relro CMakeFiles/cmTC_cd1b4.dir/CheckFunctionExists.c.o -o cmTC_cd1b4 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_cd1b4.dir/build.make:97: recipe for target 'cmTC_cd1b4' failed make[1]: *** [cmTC_cd1b4] Error 1 make[1]: Leaving directory '/tmp/yaourt-tmp-smt/aur-conky-cli/src/conky-1.10.0/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_cd1b4/fast' failed make: *** [cmTC_cd1b4/fast] Error 2

Offline

#2 2015-11-30 08:06:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't install conky-cli, compile error

Did you read the comments on the AUR page?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-11-30 08:24:15

tthanh16
Member
Registered: 2015-11-24
Posts: 4
Website

Re: Can't install conky-cli, compile error

Yes, and nothing look same with my error, I also posted on AUR package comment.

Offline

#4 2015-11-30 23:45:42

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Can't install conky-cli, compile error

I poste a PKGBUILD in the AUR comments that builds for me.

Offline

#5 2015-11-30 23:54:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,517
Website

Re: Can't install conky-cli, compile error

tthanh16 wrote:

Yes, and nothing look same with my error, I also posted on AUR package comment.

There are two users who commented there with the exact same error which led to the posted new PKGBUILD as a solution.

Are you sure you checked the AUR page for the correct package?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-12-01 02:40:35

tthanh16
Member
Registered: 2015-11-24
Posts: 4
Website

Re: Can't install conky-cli, compile error

Stefan Husmann wrote:

I poste a PKGBUILD in the AUR comments that builds for me.

I used your PKGBUILD with version 1.10.1 and everything work fine. Thank you so much.

Offline

Board footer

Powered by FluxBB