MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0012457 | CMake | CMake | public | 2011-09-14 11:28 | 2012-03-06 08:37 | |||||
Reporter | Funda Wang | |||||||||
Assigned To | David Cole | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | Linux | OS | Mageia | OS Version | Cauldron | |||||
Product Version | CMake-2-8 | |||||||||
Target Version | CMake 2.8.6 | Fixed in Version | CMake 2.8.6 | |||||||
Summary | 0012457: Wrong detection for pthread under Linux | |||||||||
Description | The patch introduced in 0011333 produces wrong result for Linux. It always builds successful when checking symbols within the first round detection. i.e. <snip> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build gmake[1]: Entering directory `/home/fwang/rpm/BUILD/OpenSceneGraph-3.0.0/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/fwang/rpm/BUILD/OpenSceneGraph-3.0.0/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o /usr/bin/gcc -O2 -g -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -mtune=generic -march=i586 -fasynchronous-unwind-tables -o a.c.o -c a.c Linking C executable cmTryCompileExec /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1 /usr/bin/gcc -O2 -g -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -mtune=generic -march=i586 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags a.c.o -o cmTryCompileExec -rdynamic gmake[1]: Leaving directory `/home/fwang/rpm/BUILD/OpenSceneGraph-3.0.0/build/CMakeFiles/CMakeTmp' File /home/fwang/rpm/BUILD/OpenSceneGraph-3.0.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include <pthread.h> void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef pthread_create cmakeRequireSymbol(0,&pthread_create); #endif return 0; } </snip> Maybe check libc's pthread function should be conditioned with platform. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2011-09-14 11:28 | Funda Wang | New Issue | ||||||||
2011-09-14 12:37 | David Cole | Relationship added | related to 0011333 | |||||||
2011-09-14 12:37 | David Cole | Assigned To | => David Cole | |||||||
2011-09-14 12:37 | David Cole | Status | new => assigned | |||||||
2011-09-14 12:41 | David Cole | Note Added: 0027418 | ||||||||
2011-09-14 13:55 | Eric NOULARD | Note Added: 0027421 | ||||||||
2011-09-14 17:31 | Orion Poplawski | Note Added: 0027423 | ||||||||
2011-10-26 00:09 | David Cole | Note Added: 0027651 | ||||||||
2011-10-26 00:09 | David Cole | Status | assigned => resolved | |||||||
2011-10-26 00:09 | David Cole | Fixed in Version | => CMake 2.8.6 | |||||||
2011-10-26 00:09 | David Cole | Resolution | open => fixed | |||||||
2011-10-26 00:09 | David Cole | Target Version | => CMake 2.8.6 | |||||||
2012-03-06 08:37 | David Cole | Note Added: 0028836 | ||||||||
2012-03-06 08:37 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|