[vtkusers] Which compiler and settings on SGI

David Gobbi dgobbi at atamai.com
Thu Mar 2 12:57:54 EST 2006


I would also like to add that your CFLAGS and CXXFLAGS are incorrect for 
gcc, so you might want to clear them:
unset CFLAGS
unset CXXFLAGS

Mathieu Malaterre wrote:
> Martin,
>
>     Looks like you are configuring VTK with one compiler then using 
> another one. Could you try instead directly specifying which compiler 
> you really want:
>
> export CC=/stripe1/segment/UNSUPPORTED/gcc-2.95.3/bin/gcc
> export CXX=/stripe1/segment/UNSUPPORTED/gcc-2.95.3/bin/g++
>
> (make sure the directory is empty)
> mkdir VTK-gcc295
> cd VTK-gcc295
> cmake /full/path/to/VTK
>
> HTH
> Mathieu
>
> Martin Baumann wrote:
>> Hi,
>>
>> what compiler do you use on your SGI Onyx2 machine for compiling VTK 
>> using CMake?
>> I tried gcc-2.95 but I get lots of errors:
>>
>>  The C compiler "/stripe1/segment/UNSUPPORTED/gcc-2.95.3/bin/gcc" is 
>> not able to compile a simple test program.
>>  It fails with the following output:
>>   /lvdraid/user/ry149/local/bin/cmake 
>> -H/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp 
>> -B/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp
>>  --check-build-system CMakeFiles/Makefile.cmake 0
>>  /stripe1/segment/bin/gmake -f CMakeFiles/Makefile2 cmTryCompileExec
>>  gmake[1]: Entering directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  /lvdraid/user/ry149/local/bin/cmake 
>> -H/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp 
>> -B/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp
>>  --check-build-system CMakeFiles/Makefile.cmake 0
>>  /stripe1/segment/bin/gmake -f CMakeFiles/Makefile2 
>> CMakeFiles/cmTryCompileExec.dir/all
>>  gmake[2]: Entering directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  /stripe1/segment/bin/gmake -f 
>> CMakeFiles/cmTryCompileExec.dir/build.make 
>> CMakeFiles/cmTryCompileExec.dir/depend
>>  gmake[3]: Entering directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  Scanning dependencies of target cmTryCompileExec
>>  /lvdraid/user/ry149/local/bin/cmake -E cmake_depends  "Unix 
>> Makefiles" /lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp
>>  /lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp
>>  /lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/DependInfo.cmake 
>>
>>  gmake[3]: Leaving directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  /stripe1/segment/bin/gmake -f 
>> CMakeFiles/cmTryCompileExec.dir/build.make 
>> CMakeFiles/cmTryCompileExec.dir/build
>>  gmake[3]: Entering directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
>>  /stripe1/segment/UNSUPPORTED/gcc-2.95.3/bin/gcc -O -OPT:Olimit=2000 
>> -diag_error 1035 -64 -O -OPT:Olimit=2000 -diag_error 1035 -64     -o
>>  CMakeFiles/cmTryCompileExec.dir/testCCompiler.o   -c 
>> /lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp/testCCompiler.c
>>  gcc: cannot specify -o with -c or -S and multiple compilations
>>  gmake[3]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1
>>  gmake[3]: Leaving directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  gmake[2]: *** [CMakeFiles/cmTryCompileExec.dir/all] Error 2
>>  gmake[2]: Leaving directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  gmake[1]: Leaving directory 
>> `/lvdraid/user/ry149/local/bin/vtk/vtk-5.0.0/CMakeTmp'
>>  gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/rule] Error 2
>>
>> I wrote a simple 'Hello World' program and compiled it using this gcc 
>> version. No errors!!!
>> Hmmm...
>>
>> Thanks, M.B.
>> ______________________________________________________________
>> Verschicken Sie romantische, coole und witzige Bilder per SMS!
>> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages 
>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list