[CMake] Build Error cmake 2.8.2 and above on RedHat 5U3

Matt.Garrett at shell.com Matt.Garrett at shell.com
Wed Jul 6 09:10:51 EDT 2011


Folks

 

As part of some other open source S/W OpenFOAM-2.0.0

I need to build cmake-2.8.3 (preferred)

 

However on all the versions 2.8.2 , 2.8.3 , 2.8.4 I get a build error

 

libCMakeLib.a(cmMakefile.o): In function `std::list<cmDefinitions,
std::allocator<cmDefinitions>
>::_M_insert(std::_List_iterator<cmDefinitions>, cmDefinitions const&)':

cmMakefile.cxx:(.text._ZNSt4listI13cmDefinitionsSaIS0_EE9_M_insertESt14_
List_iteratorIS0_ERKS0_[std::list<cmDefinitions,
std::allocator<cmDefinitions>
>::_M_insert(std::_List_iterator<cmDefinitions>, cmDefinitions
const&)]+0x3a): undefined reference to
`std::_List_node_base::_M_hook(std::_List_node_base*)'

libCMakeLib.a(cmMakefile.o): In function `std::list<cmDefinitions,
std::allocator<cmDefinitions>
>::_M_erase(std::_List_iterator<cmDefinitions>)':

cmMakefile.cxx:(.text._ZNSt4listI13cmDefinitionsSaIS0_EE8_M_eraseESt14_L
ist_iteratorIS0_E[std::list<cmDefinitions, std::allocator<cmDefinitions>
>::_M_erase(std::_List_iterator<cmDefinitions>)]+0x19): undefined
reference to `std::_List_node_base::_M_unhook()'

libCMakeLib.a(cmBootstrapCommands.o): In function
`std::list<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >
>::_M_erase(std::_List_iterator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >)':

cmBootstrapCommands.cxx:(.text._ZNSt4listISsSaISsEE8_M_eraseESt14_List_i
teratorISsE[std::list<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >
>::_M_erase(std::_List_iterator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >)]+0x19): undefined
reference to `std::_List_node_base::_M_unhook()'

libCMakeLib.a(cmBootstrapCommands.o): In function
`std::list<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >
>::_M_insert(std::_List_iterator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':

cmBootstrapCommands.cxx:(.text._ZNSt4listISsSaISsEE9_M_insertESt14_List_
iteratorISsERKSs[std::list<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >
>::_M_insert(std::_List_iterator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)]+0x3a): undefined reference to
`std::_List_node_base::_M_hook(std::_List_node_base*)'

libCMakeLib.a(cmBootstrapCommands.o): In function `std::list<cmCommand*,
std::allocator<cmCommand*> >::_M_insert(std::_List_iterator<cmCommand*>,
cmCommand* const&)':

cmBootstrapCommands.cxx:(.text._ZNSt4listIP9cmCommandSaIS1_EE9_M_insertE
St14_List_iteratorIS1_ERKS1_[std::list<cmCommand*,
std::allocator<cmCommand*> >::_M_insert(std::_List_iterator<cmCommand*>,
cmCommand* const&)]+0x3a): undefined reference to
`std::_List_node_base::_M_hook(std::_List_node_base*)'

collect2: ld returned 1 exit status

make[2]: *** [bin/cmake] Error 1

make[1]: *** [Source/CMakeFiles/cmake.dir/all] Error 2

 

OS is RedHat 5U3

 

gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/glb/apps/3rdparty/OpenFoam/OpenFOAM-2.0.0/ThirdPart
y-2.0.0/platforms/linux64/gcc-4.5.1/libexec/gcc/x86_64-unknown-linux-gnu
/4.5.1/lto-wrapper

Target: x86_64-unknown-linux-gnu

Configured with:
/glb/apps/3rdparty/OpenFoam/OpenFOAM-2.0.0/ThirdParty-2.0.0/gcc-4.5.1/co
nfigure
--prefix=/glb/apps/3rdparty/OpenFoam/OpenFOAM-2.0.0/ThirdParty-2.0.0/pla
tforms/linux64/gcc-4.5.1
--with-gmp=/glb/apps/3rdparty/OpenFoam/OpenFOAM-2.0.0/ThirdParty-2.0.0/p
latforms/linux64/gmp-5.0.1
--with-mpfr=/glb/apps/3rdparty/OpenFoam/OpenFOAM-2.0.0/ThirdParty-2.0.0/
platforms/linux64/mpfr-2.4.2
--with-mpc=/glb/apps/3rdparty/OpenFoam/OpenFOAM-2.0.0/ThirdParty-2.0.0/p
latforms/linux64/mpc-0.8.1 --with-pkgversion=OpenFOAM
--enable-languages=c,c++ --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --with-system-zlib

Thread model: posix

gcc version 4.5.1 (OpenFOAM)

 

Can any kind sole point us in the right direction.

 

Thanks

 

Matt

 

 

 

 

 

Matthew Garrett 
Subsurface Remote Site Support Engineer 
Shell Information Technology International B.V. 
PO Box 60, 2280 AB Rijswijk-ZH, The Netherlands 

Tel: +31(0)70 447 4369 
Email: Matt.Garrett at shell.com 
Internet: http://www.shell.com <http://www.shell.com>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110706/9559df72/attachment-0001.htm>


More information about the CMake mailing list