[cmake-developers] [CMake 0013149]: cmTryCompileExec fails on AIX 5.2
Mantis Bug Tracker
mantis at public.kitware.com
Thu Apr 19 08:32:07 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13149
======================================================================
Reported By: Jim Hague
Assigned To:
======================================================================
Project: CMake
Issue ID: 13149
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-04-19 08:32 EDT
Last Modified: 2012-04-19 08:32 EDT
======================================================================
Summary: cmTryCompileExec fails on AIX 5.2
Description:
bootstrap; gmake works (given compile issues as per Issue 13148).
Atempting to build the Example fails with a link command error in
cmTryCompileExec. This is true whether gcc or xlc is used.
Steps to Reproduce:
Build cmake on AIX 5.2. Then:
$ cd Example
$ ../bin/cmake -G "Unix Makefiles"
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at
/home/jim/work/src/cmake-2.8.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/jim/work/src/cmake-2.8.8/Example/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec2449469290/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2449469290.dir/build.make
CMakeFiles/cmTryCompileExec2449469290.dir/build
gmake[1]: Entering directory
`/home/jim/work/src/cmake-2.8.8/Example/CMakeFiles/CMakeTmp'
/home/jim/work/src/cmake-2.8.8/bin/cmake -E cmake_progress_report
/home/jim/work/src/cmake-2.8.8/Example/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec2449469290.dir/testCCompiler.c.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec2449469290.dir/testCCompiler.c.o
-c
/home/jim/work/src/cmake-2.8.8/Example/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec2449469290
/home/jim/work/src/cmake-2.8.8/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec2449469290.dir/link.txt --verbose=1
/usr/bin/gcc CMakeFiles/cmTryCompileExec2449469290.dir/testCCompiler.c.o -o
cmTryCompileExec2449469290 /usr/lib /lib
ld: 0711-168 SEVERE ERROR: Input file: /usr/lib
Input files must be regular files.
collect2: ld returned 12 exit status
gmake[1]: *** [cmTryCompileExec2449469290] Error 1
gmake[1]: Leaving directory
`/home/jim/work/src/cmake-2.8.8/Example/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec2449469290/fast] Error 2
Additional Information:
This failure happens on 2.8.7 and 2.8.8. 2.6.4 works fine.
link.txt for the failing gcc on 5.8.8 is:
/usr/bin/gcc CMakeFiles/cmTryCompileExec732778660.dir/testCCompiler.c.o
-o cmTryCompileExec732778660 /usr/lib /lib
On 5.6.4 for the successful g++ is:
/usr/bin/g++ CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o
-o cmTryCompileExec -Wl,-brtl,-bnoipath,-bexpall -Wl,-blibpath:/usr/lib:/lib
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-04-19 08:32 Jim Hague New Issue
======================================================================
More information about the cmake-developers
mailing list