MantisBT - CMake
View Issue Details
0015501CMakeModulespublic2015-04-07 15:432016-06-10 14:31
scalpel4k 
Kitware Robot 
normalmajoralways
closedmoved 
x86_64LinuxopenSUSE Tumblew
CMake 3.2.1 
 
0015501: GNU compiler 5: The C++ compiler "/usr/bin/gcc" is not able to compile a simple test program.
This happens with gcc5 from openSUSE but I can't imagine that it's a packaging issue because I use the compiler for other stuff and it builds just fine.

I did a manual test and here's what it says:

[ 112s] === COMPILER_TEST_START ===
[ 112s] + echo 'main(){}'
[ 112s] + gcc dummy.c -v -Wl,--verbose
[ 112s] + readelf -l a.out
[EDIT: SNIPPED OUT REST OF LOG]
[ 113s] === COMPILER_TEST_END ===
I tried to build llvm/clang both with gcc5 and with clang itself.
No tags attached.
Issue History
2015-04-07 15:43scalpel4kNew Issue
2015-04-07 16:09Brad KingNote Added: 0038473
2015-04-07 16:09Brad KingDescription Updatedbug_revision_view_page.php?rev_id=1749#r1749
2015-04-07 16:10Brad KingSummaryCMakeTestCXXCompiler.cmake:54 -> The C++ compiler "/usr/bin/gcc" is not able to compile a simple test program. => GNU compiler 5: The C++ compiler "/usr/bin/gcc" is not able to compile a simple test program.
2016-06-10 14:29Kitware RobotNote Added: 0042754
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0038473)
Brad King   
2015-04-07 16:09   
I've edited out most of the log because I believe you that the compiler works on a simple test case by hand. Log files should be attached rather than pasted.

The rest of the output from CMake should tell you to look at CMakeFiles/*.log for more information. There may be something in there about what goes wrong.
(0042754)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.