Linker problem with RBuild

All development related issues welcome

Moderator: Moderator Team

Post Reply
adamlock
Posts: 1
Joined: Sun Nov 20, 2005 8:36 pm

Linker problem with RBuild

Post by adamlock » Sun Nov 20, 2005 9:05 pm

Anyone know the answer to this one? I'm trying to build ReactOS from XP. I installed the Reactos Build environment (ReactOS Build Environment 0.1-3.4.2.exe), fetched the latest version of the trunk, set my path to be "c:\rosBE\bin;c:\windows\system32", tweaked config.xml to build for pentium4 and then typed "mingw32-make livecd".

Things seem to kick off but then I get this linker error below on rbuild. I would think it was perhaps an error with the trunk at the moment I built, but I've tried several snapshots which were weeks apart.

I do have cygwin on my machine but I made sure to remove it from the path and clear my LIB / INCLUDE environment variables. As far as I can tell, I've followed the build instructions on wiki exactly.

Any clues or ideas?

[CC] tools\rbuild\rbuild.cpp
[MKDIR] output-i386\tools
[MKDIR] output-i386\tools\rbuild
[LD] output-i386\tools\rbuild\rbuild.exe
obj-i386\tools\rbuild\backend\mingw\mingw.o:mingw.cpp:(.text$_ZNSt17_Rb_tree_iteratorISt4pairIKSsP9Direct
oryEEppEv[std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator
<char> > const, Directory*> >::operator++()]+0x13): undefined reference to `std::_Rb_tree_increment(std::
_Rb_tree_node_base*)'
obj-i386\tools\rbuild\backend\mingw\mingw.o:mingw.cpp:(.text$_ZNSt8_Rb_treeISsSt4pairIKSsP9DirectoryESt10
_Select1stIS4_ESt4lessISsESaIS4_EE9_M_insertEPSt18_Rb_tree_node_baseSC_RKS4_[std::_Rb_tree<std::basic_str
ing<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<char, std::char_tra
its<char>, std::allocator<char> > const, Directory*>, std::_Select1st<std::pair<std::basic_string<char, s
td::char_traits<char>, std::allocator<char> > const, Directory*> >, std::less<std::basic_string<char, std
::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char
_traits<char>, std::allocator<char> > const, Directory*> > >::_M_insert(std::_Rb_tree_node_base*, std::_R
b_tree_node_base*, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const
, Directory*> const&)]+0x99): undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_t
ree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
obj-i386\tools\rbuild\backend\mingw\mingw.o:mingw.cpp:(.text$_ZNSt17_Rb_tree_iteratorISt4pairIKSsP9Direct
oryEEmmEv[std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator
<char> > const, Directory*> >::operator--()]+0x13): undefined reference to `std::_Rb_tree_decrement(std::
_Rb_tree_node_base*)'
obj-i386\tools\rbuild\backend\backend.o:backend.cpp:(.text$_ZNSt8_Rb_treeISsSt4pairIKSsPN7Backend7Factory
EESt10_Select1stIS5_ESt4lessISsESaIS5_EE9_M_insertEPSt18_Rb_tree_node_baseSD_RKS5_[std::_Rb_tree<std::bas
ic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<char, std::ch
ar_traits<char>, std::allocator<char> > const, Backend::Factory*>, std::_Select1st<std::pair<std::basic_s
tring<char, std::char_traits<char>, std::allocator<char> > const, Backend::Factory*> >, std::less<std::ba
sic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_st
ring<char, std::char_traits<char>, std::allocator<char> > const, Backend::Factory*> > >::_M_insert(std::_
Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair<std::basic_string<char, std::char_traits<char>, s
td::allocator<char> > const, Backend::Factory*> const&)]+0x99): undefined reference to `std::_Rb_tree_ins
ert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
obj-i386\tools\rbuild\backend\backend.o:backend.cpp:(.text$_ZNSt17_Rb_tree_iteratorISt4pairIKSsPN7Backend
7FactoryEEEmmEv[std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::all
ocator<char> > const, Backend::Factory*> >::operator--()]+0x13): undefined reference to `std::_Rb_tree_de
crement(std::_Rb_tree_node_base*)'
obj-i386\tools\rbuild\automaticdependency.o:automaticdependency.cpp:(.text$_ZNSt17_Rb_tree_iteratorISt4pa
irIKSsP10SourceFileEEppEi[std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>
, std::allocator<char> > const, SourceFile*> >::operator++(int)]+0x1b): undefined reference to `std::_Rb_
tree_increment(std::_Rb_tree_node_base*)'
obj-i386\tools\rbuild\automaticdependency.o:automaticdependency.cpp:(.text$_ZNSt8_Rb_treeISsSt4pairIKSsP1
0SourceFileESt10_Select1stIS4_ESt4lessISsESaIS4_EE9_M_insertEPSt18_Rb_tree_node_baseSC_RKS4_[std::_Rb_tre
e<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<cha
r, std::char_traits<char>, std::allocator<char> > const, SourceFile*>, std::_Select1st<std::pair<std::bas
ic_string<char, std::char_traits<char>, std::allocator<char> > const, SourceFile*> >, std::less<std::basi
c_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_stri
ng<char, std::char_traits<char>, std::allocator<char> > const, SourceFile*> > >::_M_insert(std::_Rb_tree_
node_base*, std::_Rb_tree_node_base*, std::pair<std::basic_string<char, std::char_traits<char>, std::allo
cator<char> > const, SourceFile*> const&)]+0x99): undefined reference to `std::_Rb_tree_insert_and_rebala
nce(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
obj-i386\tools\rbuild\automaticdependency.o:automaticdependency.cpp:(.text$_ZNSt17_Rb_tree_iteratorISt4pa
irIKSsP10SourceFileEEmmEv[std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>
, std::allocator<char> > const, SourceFile*> >::operator--()]+0x13): undefined reference to `std::_Rb_tre
e_decrement(std::_Rb_tree_node_base*)'
obj-i386\tools\rbuild\ssprintf.o:ssprintf.cpp:(.text$_ZNSbIwSt11char_traitsIwESaIwEE4_Rep10_M_disposeERKS
1_[std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_M_dispose(std:
:allocator<wchar_t> const&)]+0x22): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*,
int)'
collect2: ld returned 1 exit status
mingw32-make: *** [output-i386\tools\rbuild\rbuild.exe] Error 1

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest