Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 676195 Details for
Bug 758035
games-strategy/hedgewars-1.0.0-r1 calls ld directly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
1-CMakeError.log
1-CMakeError.log (text/plain), 4.15 KB, created by
Agostino Sarubbo
on 2020-12-02 10:10:08 UTC
(
hide
)
Description:
1-CMakeError.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2020-12-02 10:10:08 UTC
Size:
4.15 KB
patch
obsolete
>Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: >Change Dir: /var/tmp/portage/games-strategy/hedgewars-1.0.0-r1/work/hedgewars-1.0.0_build/CMakeFiles/CMakeTmp > >Run Build Command(s):/usr/bin/gmake cmTC_665da/fast && /usr/bin/gmake -f CMakeFiles/cmTC_665da.dir/build.make CMakeFiles/cmTC_665da.dir/build >gmake[1]: Entering directory '/var/tmp/portage/games-strategy/hedgewars-1.0.0-r1/work/hedgewars-1.0.0_build/CMakeFiles/CMakeTmp' >Building C object CMakeFiles/cmTC_665da.dir/src.c.o >/usr/bin/x86_64-pc-linux-gnu-gcc -DCMAKE_HAVE_LIBC_PTHREAD -O2 -pipe -march=x86-64 -frecord-gcc-switches -fPIC -fstack-protector-all -fstack-protector -fvisibility=hidden -Wall -pipe -o CMakeFiles/cmTC_665da.dir/src.c.o -c /var/tmp/portage/games-strategy/hedgewars-1.0.0-r1/work/hedgewars-1.0.0_build/CMakeFiles/CMakeTmp/src.c >Linking C executable cmTC_665da >/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_665da.dir/link.txt --verbose=1 >/usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=x86-64 -frecord-gcc-switches -fPIC -fstack-protector-all -fstack-protector -fvisibility=hidden -Wall -pipe -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_665da.dir/src.c.o -o cmTC_665da >/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/cmTC_665da.dir/src.c.o: in function `main': >src.c:(.text.startup+0x15): undefined reference to `pthread_create' >/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x1f): undefined reference to `pthread_detach' >/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x29): undefined reference to `pthread_cancel' >/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x35): undefined reference to `pthread_join' >collect2: error: ld returned 1 exit status >gmake[1]: *** [CMakeFiles/cmTC_665da.dir/build.make:106: cmTC_665da] Error 1 >gmake[1]: Leaving directory '/var/tmp/portage/games-strategy/hedgewars-1.0.0-r1/work/hedgewars-1.0.0_build/CMakeFiles/CMakeTmp' >gmake: *** [Makefile:140: cmTC_665da/fast] Error 2 > > >Source file was: >#include <pthread.h> > >static void* test_func(void* data) >{ > return data; >} > >int main(void) >{ > pthread_t thread; > pthread_create(&thread, NULL, test_func, NULL); > pthread_detach(thread); > pthread_cancel(thread); > pthread_join(thread, NULL); > pthread_atfork(NULL, NULL, NULL); > pthread_exit(NULL); > > return 0; >} > >Determining if the function pthread_create exists in the pthreads failed with the following output: >Change Dir: /var/tmp/portage/games-strategy/hedgewars-1.0.0-r1/work/hedgewars-1.0.0_build/CMakeFiles/CMakeTmp > >Run Build Command(s):/usr/bin/gmake cmTC_80de1/fast && /usr/bin/gmake -f CMakeFiles/cmTC_80de1.dir/build.make CMakeFiles/cmTC_80de1.dir/build >gmake[1]: Entering directory '/var/tmp/portage/games-strategy/hedgewars-1.0.0-r1/work/hedgewars-1.0.0_build/CMakeFiles/CMakeTmp' >Building C object CMakeFiles/cmTC_80de1.dir/CheckFunctionExists.c.o >/usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=x86-64 -frecord-gcc-switches -fPIC -fstack-protector-all -fstack-protector -fvisibility=hidden -Wall -pipe -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_80de1.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c >Linking C executable cmTC_80de1 >/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_80de1.dir/link.txt --verbose=1 >/usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=x86-64 -frecord-gcc-switches -fPIC -fstack-protector-all -fstack-protector -fvisibility=hidden -Wall -pipe -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_80de1.dir/CheckFunctionExists.c.o -o cmTC_80de1 -lpthreads >/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpthreads >collect2: error: ld returned 1 exit status >gmake[1]: *** [CMakeFiles/cmTC_80de1.dir/build.make:106: cmTC_80de1] Error 1 >gmake[1]: Leaving directory '/var/tmp/portage/games-strategy/hedgewars-1.0.0-r1/work/hedgewars-1.0.0_build/CMakeFiles/CMakeTmp' >gmake: *** [Makefile:140: cmTC_80de1/fast] Error 2 > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 758035
:
676192
| 676195 |
676198
|
676201