[CMake] Installtion problem on Sun
Hans.Rijneke at shell.com
Hans.Rijneke at shell.com
Fri Jan 11 03:26:57 EST 2008
Bill,
I was using the Sun version of CC (CC: Sun WorkShop 6 update 1 C++ 5.2 Patch 109508-09 2002/07/08), but now changed to the Gnu compilers and this all works fine.
Regards,
Hans
-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: Thursday, January 10, 2008 16:30
To: Rijneke, Hans H SIEP-EPT-RIS
Cc: cmake at cmake.org
Subject: Re: [CMake] Installtion problem on Sun
Hans.Rijneke at shell.com wrote:
> L.S.,
>
> Trying to install "cmake" on a sun (SunOS kseu1180.europe.shell.com 5.8
> Generic_117350-26 sun4u sparc SUNW,Sun-Blade-1000), I got the next error :
>
> [ 7%] Building C object Source/kwsys/CMakeFiles/testFail.dir/testFail.o
> Linking C executable ../../bin/testFail
> [ 7%] Built target testFail
> Scanning dependencies of target testHashSTL
> [ 8%] Building CXX object
> Source/kwsys/CMakeFiles/testHashSTL.dir/testHashSTL.o
> Linking CXX executable ../../bin/testHashSTL
> Undefined first referenced
> symbol in file
> cmsys::_stl_prime_list
> /scratch/smart/tmp/cmake-2.4.7/Source/kwsys/CMakeFiles/testHashSTL.dir/SunWS_cache/CC_obj_D/DwHdTM6Z9Njdm30mGNZL.o
>
> [Hint: static member cmsys::_stl_prime_list must be defined in the program]
>
> ld: fatal: Symbol referencing errors. No output written to
> ../../bin/testHashSTL
> *** Error code 1
> The following command caused the error:
> cd /nobackup/smart/tmp/cmake-2.4.7/Source/kwsys &&
> /opt/SUNWspro/bin/CC -xO4 -dalign -fns -fsimple=1 -xarch=v9
> -xchip=ultra3 -lnsl -lsocket -KPIC -xarch=v9 -xchip=ultra3 -lnsl
> -lsocket "CMakeFiles/testHashSTL.dir/testHashSTL.o" -o
> ../../bin/testHashSTL -L/nobackup/smart/tmp/cmake-2.4.7/Source/kwsys
> -Bstatic -lcmsys -Bdynamic -ldl
>
What version of CC are you using on the Sun? It works for the
dashboards we have. Looks like a template problem, you might be able to
fix it by trying different template schemes. You could try -pto.
So, clean the build tree or get a fresh source tree (then do an out of
source build.). Then:
setenv CXXFLAGS -pt0
mkdir build
cd build
../bootstrap
make
Do the binaries form Kitware work?
-Bill
More information about the CMake
mailing list