[Insight-users] help : Error building in gcc 2.95: Set CC and CXX

Luis Ibanez luis . ibanez at kitware . com
Wed, 10 Dec 2003 11:56:21 -0500


Hi Foroni,

Your CC and CXX environment variables
are probably not being set correctly.


Your C++ compiler is set as

         /opt/sfw/bin/c++

It should be

         /opt/sfw/bin/g++

Please do the following

1) Remove all your binary tree,

2) Set the environment variables
    CC and CXX as

       CC  = /opt/sfw/bin/gcc
       CXX = /opt/sfw/bin/g++

3) rerun CMake,



Regards,


    Luis


------------------------------------
Foroni.Mordakhai wrote:

> Please help. I cannot compile the latest ITK obtained from CD.
> My Computer:
> SunOS eretz 5.8 Generic_108528-23 sun4u sparc SUNW,Sun-Blade-1000 with 
> gcc version 2.95.3 20010315 (release)
> 
> CMake Error: VXL configure script failed.
> 
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> 
> with below the ccmake configuration:
> BUILD_DOXYGEN                   
> *OFF                                                                                    
> 
> BUILD_EXAMPLES                  
> *ON                                                                                     
> 
> BUILD_SHARED_LIBS               
> *OFF                                                                                    
> 
> BUILD_TESTING                   
> *ON                                                                                     
> 
> CMAKE_AR                        
> */usr/ccs/bin/ar                                                                        
> 
> CMAKE_BUILD_TYPE                
> *                                                                                       
> 
> CMAKE_CTEST_COMMAND             
> */usr/local/bin/ctest                                                                   
> 
> CMAKE_CXX_COMPILER              
> */opt/sfw/bin/c++                                                                       
> 
> CMAKE_CXX_FLAGS                 
> *                                                                                       
> 
> CMAKE_CXX_FLAGS_DEBUG           
> *                                                                                       
> 
> CMAKE_CXX_FLAGS_MINSIZEREL      
> *                                                                                       
> 
> CMAKE_CXX_FLAGS_RELEASE         
> *                                                                                       
> 
> CMAKE_CXX_FLAGS_RELWITHDEBINFO  
> *                                                                                       
> 
> CMAKE_C_COMPILER                
> */opt/sfw/bin/gcc                                                                       
> 
> CMAKE_C_FLAGS                   
> *                                                                                       
> 
> CMAKE_C_FLAGS_DEBUG             
> *                                                                                       
> 
> CMAKE_C_FLAGS_MINSIZEREL        
> *                                                                                       
> 
> CMAKE_C_FLAGS_RELEASE           
> *                                                                                       
> 
> CMAKE_C_FLAGS_RELWITHDEBINFO    
> *                                                                                       
> 
> CMAKE_EXE_LINKER_FLAGS          
> *                                                                                       
> 
> CMAKE_EXE_LINKER_FLAGS_DEBUG    
> *                                                                                       
> 
> CMAKE_EXE_LINKER_FLAGS_MINSIZE  
> *                                                                                       
> 
> CMAKE_EXE_LINKER_FLAGS_RELEASE  
> *                                                                                       
> 
> CMAKE_EXE_LINKER_FLAGS_RELWITH  
> *                                                                                       
> 
> CMAKE_HP_PTHREADS               
> *OFF                                                                                    
> 
> CMAKE_INSTALL_PREFIX            
> */usr/local                                                                             
> 
> CMAKE_MAKE_PROGRAM              
> */opt/sfw/bin/gmake                                                                     
> 
> CMAKE_MODULE_LINKER_FLAGS       
> *                                                                                       
> 
> CMAKE_MODULE_LINKER_FLAGS_DEBU  
> *                                                                                       
> 
> CMAKE_MODULE_LINKER_FLAGS_MINS  
> *                                                                                       
> 
> CMAKE_MODULE_LINKER_FLAGS_RELE  
> *                                                                                       
> 
> CMAKE_MODULE_LINKER_FLAGS_RELW  
> *                                                                                       
> 
> CMAKE_RANLIB                    
> */usr/ccs/bin/ranlib                                                                    
> 
> CMAKE_SHARED_LINKER_FLAGS       
> *                                                                                       
> 
> CMAKE_SHARED_LINKER_FLAGS_DEBU  
> *                                                                                       
> 
> CMAKE_SHARED_LINKER_FLAGS_MINS  
> *                                                                                       
> 
> CMAKE_SHARED_LINKER_FLAGS_RELE  
> *                                                                                       
> 
> CMAKE_SHARED_LINKER_FLAGS_RELW  
> *                                                                                       
> 
> CMAKE_SKIP_RPATH                
> *OFF                                                                                    
> 
> CMAKE_THREAD_LIBS               
> *-lthread                                                                               
> 
> CMAKE_USE_PTHREADS              
> *ON                                                                                     
> 
> CMAKE_USE_SPROC                 
> *OFF                                                                                    
> 
> CMAKE_USE_WIN32_THREADS         
> *OFF                                                                                    
> 
> CMAKE_VERBOSE_MAKEFILE          
> *OFF                                                                                    
> 
> CMAKE_X_CFLAGS                  
> *-I/usr/openwin/share/include                                                           
> 
> CMAKE_X_LIBS                    
> *-lSM;-lICE;/usr/openwin/lib/libX11.so;/usr/openwin/lib/libXext.so;-lsocket;-lnsl       
> 
> COMPRESSIONCOMMAND              
> */usr/bin/gzip                                                                          
> 
> CVSCOMMAND                      
> */opt/sfw/bin/cvs                                                                       
> 
> CVS_UPDATE_OPTIONS              *-d -A 
> -P                                                                               
> 
> DART_BUILD_ERROR_REPORT_LIMIT   
> *OFF                                                                                    
> 
> DART_BUILD_WARNING_REPORT_LIMI  
> *OFF                                                                                    
> 
> DART_ROOT                       
> *DART_ROOT-NOTFOUND                                                                     
> 
> DART_TESTING_TIMEOUT            
> *1500                                                                                   
> 
> DART_VERBOSE_BUILD              
> *OFF                                                                                    
> 
> DELIVER_CONTINUOUS_EMAIL        
> *OFF                                                                                    
> 
> GUNZIPCOMMAND                   
> */usr/bin/gunzip                                                                        
> 
> ITK_CSWIG_PYTHON                
> *OFF                                                                                    
> 
> ITK_CSWIG_TCL                   
> *OFF                                                                                    
> 
> ITK_DATA_ROOT                   
> */export/home/israel/tcltk/itk/Insight-1.4/Testing/Data                                 
> 
> ITK_USE_SYSTEM_JPEG             
> *OFF                                                                                    
> 
> ITK_USE_SYSTEM_PNG              
> *OFF                                                                                    
> 
> ITK_USE_SYSTEM_ZLIB             
> *OFF                                                                                    
> 
> JAVACOMMAND                     
> */usr/bin/java                                                                          
> 
> MAKECOMMAND                     */opt/sfw/bin/gmake 
> -i                                                                 
> PURIFYCOMMAND                   
> *PURIFYCOMMAND-NOTFOUND                                                                 
> 
> SCPCOMMAND                      
> *SCPCOMMAND-NOTFOUND                                                                    
> 
> SITE                            
> *eretz                                                                                  
> 
> TCL_TCLSH                       
> */export/home/israel/fmri/fsl/bin/tclsh                                                 
> 
> VW_RAW_DATA_PATH                *VW_RAW_DATA_PATH-NOTFOUND                
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>