[vtkusers] GCC 4.5 Mac Os X

Martin Costabel costabel at wanadoo.fr
Sat Apr 2 16:03:40 EDT 2011


On 2/04/11 18:25, Brickle Macho wrote:
> On 2/04/11 4:55 AM, Martin Costabel wrote:
>> I don't think this is really the problem. More likely there is some
>> compiler flag that vtk uses and gcc-4.5 doesn't like. Have a look in
>> the log files (CMakeError.log and CMakeOutput.log) what is the real
>> error when cmake tries to find these headers.
>
>
> Okay.  Not sure what to look for.  Here are the output from tail of the
> above mentioned files. If you need more information please let me know.

I think the interesting part would be further up, where it is trying to 
find the headers sys/types.h etc. But it is possible that the failure is 
caused by the same problem as seen here:

> ***CMakeError.log
> ----------------
> bricklemacho-imac-g5:CMakeFiles brickle$ tail -50 CMakeError.log
> /opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
> CMakeFiles/cmTryCompileExec.dir/build
> gmake[1]: Entering directory
> `/Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CMakeTmp'
> /opt/local/bin/cmake -E cmake_progress_report
> /Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec.dir/CMAKE_SIZEOF_UNSIGNED_LONG.c.o
> /opt/local/bin/gcc   -mlong-branch     -o
> CMakeFiles/cmTryCompileExec.dir/CMAKE_SIZEOF_UNSIGNED_LONG.c.o   -c
> /Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_LONG.c
> cc1: error: unrecognized command line option "-mlong-branch"

If this flag "-mlong-branch" is also present when cmake looks for the 
header files, try to find out where it comes from and remove it.

-- 
Martin



More information about the vtkusers mailing list