[CMake] Not getting the CXX/CC I requested with v 2.4.5
Pugmire, Dave
pugmire at ornl.gov
Mon Nov 12 09:59:02 EST 2007
Hi,
I'm experiencing some weirdness trying to configure on a cray.
I do the following:
env CXX=g++ CC=gcc ./bootstrap
configure seems to report that it's using g++ to do the checks.
However, when I do a make, it's using a different compiler.
>> make
[ 0%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Directory.o
/opt/xt-pe/2.0.26quadcore1/bin/snos64/CC: INFO: linux target is being used
"/tmp/work/pugmire/visit-cnl/visit-loginnode/cmake-2.4.5/Source/kwsys/Directory.cxx", line 214: error:
a value of type "dirent64 *" cannot be used to initialize an entity
of type "dirent *"
for (dirent* d = readdir(dir); d; d = readdir(dir) )
^
"/tmp/work/pugmire/visit-cnl/visit-loginnode/cmake-2.4.5/Source/kwsys/Directory.cxx", line 214: error:
a value of type "dirent64 *" cannot be assigned to an entity of type
"dirent *"
for (dirent* d = readdir(dir); d; d = readdir(dir) )
^
"/tmp/work/pugmire/visit-cnl/visit-loginnode/cmake-2.4.5/Source/kwsys/Directory.cxx", line 233: error:
a value of type "dirent64 *" cannot be used to initialize an entity
of type "dirent *"
for (dirent* d = readdir(dir); d; d = readdir(dir) )
^
"/tmp/work/pugmire/visit-cnl/visit-loginnode/cmake-2.4.5/Source/kwsys/Directory.cxx", line 233: error:
a value of type "dirent64 *" cannot be assigned to an entity of type
"dirent *"
for (dirent* d = readdir(dir); d; d = readdir(dir) )
^
4 errors detected in the compilation of "/tmp/work/pugmire/visit-cnl/visit-loginnode/cmake-2.4.5/Source/kwsys/Directory.cxx".
I'm new to cmake, so I'm not sure where to begin looking. However, grepping around, I see that the file Source/kwsys/CMakefiles/cmsys.dir/build.make is referencing the wrong compiler:
/opt/xt-pe/2.0.26quadcore1/bin/snos64/CC $(CXX_FLAGS) -o Source/kwsys/CMakeFiles/cmsys.dir/Directory.o -c /tmp/work/pugmire/visit-cnl/visit-loginnode/cmake-2.4.5/Source/kwsys/Directory.cxx
and I'm not sure what is generating this line.
Anyone seen this before? Any ideas on how to fix this?
Thanks,
Dave
More information about the CMake
mailing list