[vtkusers] GCC 4.5 Mac Os X
Brickle Macho
bricklemacho at gmail.com
Sat Apr 2 12:25:48 EDT 2011
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.
***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"
gmake[1]: ***
[CMakeFiles/cmTryCompileExec.dir/CMAKE_SIZEOF_UNSIGNED_LONG.c.o] Error 1
gmake[1]: Leaving directory
`/Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
/Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_LONG.c:
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(unsigned long))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
***CMakeOutput.log
-----------------
bricklemacho-imac-g5:CMakeFiles brickle$ tail -30 CMakeOutput.log
Determining if the function shmat exists passed with the following output:
Change Dir: /Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CMakeTmp
Run Build Command:/opt/local/bin/gmake "cmTryCompileExec/fast"
/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/CheckFunctionExists.c.o
/opt/local/bin/gcc -DCHECK_FUNCTION_EXISTS=shmat -o
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -c
/opt/local/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/opt/local/bin/gcc -DCHECK_FUNCTION_EXISTS=shmat
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -o
cmTryCompileExec
gmake[1]: Leaving directory
`/Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CMakeTmp'
Determining if the function IceConnectionNumber exists in the ICE passed
with the following output:
Change Dir: /Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CMakeTmp
Run Build Command:/opt/local/bin/gmake "cmTryCompileExec/fast"
/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/CheckFunctionExists.c.o
/opt/local/bin/gcc -DCHECK_FUNCTION_EXISTS=IceConnectionNumber -o
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -c
/opt/local/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/opt/local/bin/gcc -DCHECK_FUNCTION_EXISTS=IceConnectionNumber
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -o
cmTryCompileExec -lICE
gmake[1]: Leaving directory
`/Users/brickle/development/builds/mac/VTK-2/CMakeFiles/CMakeTmp'
More information about the vtkusers
mailing list