Message: previous - next
Month: May 2011

Re: [trinity-devel] kdegraphics - Broke? error: taking address of temporary [-fpermissive]

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 08 May 2011 11:19:30 -0500
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: 
==> 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

   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

   make[1]: Entering directory

   /usr/bin/cmake -E cmake_progress_report

   Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o

   /usr/bin/c++ -fpermisive -o
   CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c

   cc1plus: error: unrecognized command line option ‘-fpermisive’

   make[1]: Leaving directory

   make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o] Error

   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().

David C. Rankin, J.D.,P.E.