[CMake] Sun GCC builds (cooltools)
George Neill
georgen at neillnet.com
Wed Mar 19 20:23:57 EDT 2008
Hi CMakers,
I am building cmake on a Sun Enterprise 220R with 2GB of RAM running
Solaris 10 08/07.
I have two compilers installed on this box.
1. SunStudio 12
-bash-3.00$ /opt/SUNWspro/bin/CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
2. The SUN modified gcc compiler v4.2.0 -- http://cooltools.sunsource.net/gcc
sparc-sun-solaris2.10-gcc (GCC) 4.2.0 (gccfss)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
When compiling with #1, bootstrap / make ... worked and all tests
passed for both in-source and out-of-source bootstrap builds.
When compiling with #2, an in-source ./bootstrap fails with the
following error
export CC=/opt/gcc/bin/gcc
export CXX=/opt/gcc/bin/g++
cvs co CMake
cd CMake
./bootstrap
.
.
Undefined first referenced
symbol in file
cmELF::GetSOName(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&)cmSystemTools.o
cmELF::GetRPath() cmSystemTools.o
cmELF::cmELF(char const*) cmSystemTools.o
cmELF::Valid() const cmSystemTools.o
cmELF::GetRunPath() cmSystemTools.o
cmELF::~cmELF() cmSystemTools.o
ld: fatal: Symbol referencing errors. No output written to cmake
however an out-of-source bootstrap appears to succeed,
cvs co CMake
mkdir CMake.build
cd CMake.build
../CMake/bootstrap
... but make then fails with,
[ 31%] Building C object Utilities/cmcurl/CMakeFiles/cmcurl.dir/strdup.o
[ 31%] Building C object Utilities/cmcurl/CMakeFiles/cmcurl.dir/strequal.o
[ 31%] Building C object Utilities/cmcurl/CMakeFiles/cmcurl.dir/strerror.o
/export/home/gneill/src/CMake/Utilities/cmcurl/strerror.c:28:2: error:
#error "you MUST have either POSIX or glibc strerror_r if strerror_r
is found"
/export/home/gneill/src/CMake/Utilities/cmcurl/strerror.c: In function
'Curl_strerror':
/export/home/gneill/src/CMake/Utilities/cmcurl/strerror.c:649:
warning: initialization makes pointer from integer without a cast
*** Error code 1
I am willing to set up nightly builds on this machine and report
results to the cmake dashboard ... if you are interested.
Thanks,
George.
More information about the CMake
mailing list