On 05/08/2011 11:07 AM, Serghei Amelian wrote:
On Sunday 08 May 2011 18:55:01 David C. Rankin wrote:
Guys,
kdegraphics was building fine on 5/6, but now it fails with:
[...]
I haven't changed anything on my end - is there something I need to add? I have tried:
CFLAGS=${CFLAGS}" -fpermissive" CXXFLAGS=${CXXFLAGS}" -fpermissive"
but that didn't help. What to try next?
Try
cmake -DCMAKE_CXX_FLAGS="-fpermisive"
Uh -- the updates broke something else...
Updated to revision 1230899. ==> SVN checkout of revision 1230898 -- Complete. ==> Setting PATH, CMAKE and Trinity Environment variables ==> Creating out-of-source build directory: /home/david/tblds/trinity-kdegraphics/src/build ==> Starting cmake... -- The C compiler identification is GNU -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++ compiler "/usr/bin/c++" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -fpermisive -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
cc1plus: error: unrecognized command line option ‘-fpermisive’
make[1]: Leaving directory `/home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o] Error 1
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:17 (project)
-- Configuring incomplete, errors occurred! ==> ERROR: A failure occurred in build(). Aborting...