building CVS with cpp support

Philippe Simons loki_666 at fastmail.fm
Wed May 18 13:02:26 UTC 2005


Okay, iv been trying to build rtems cvs with --enable-cpp, but whithout
any success...
this the line i used to configure rtems: ../rtems/configure
--target=arm-rtems --prefix=/opt/rtems-4.7/ --enable-posix
--disable-itron --enable-cxx --enable-rtemsbsp=gp32 --disable-networking
.

and it fails with:
arm-rtems-gcc --pipe -B../../../../../lib/ -B../../../../../gp32/lib/
-specs bsp_specs -qrtems -mcpu=arm920t -mstructure-size-boundary=8 -O3  
 -Wall  -o o-optimize/iostream.exe o-optimize/init.o
../../../../../gp32/lib/no-dpmem.rel
../../../../../gp32/lib/no-event.rel ../../../../../gp32/lib/no-msg.rel
../../../../../gp32/lib/no-mp.rel ../../../../../gp32/lib/no-part.rel
../../../../../gp32/lib/no-signal.rel
../../../../../gp32/lib/no-timer.rel
../../../../../gp32/lib/no-rtmon.rel
o-optimize/init.o(.text+0x44): In function `$a':
: undefined reference to `std::ios_base::Init::~Init()'
o-optimize/init.o(.text+0x48): In function `$a':
: undefined reference to `std::ios_base::Init::Init()'
o-optimize/init.o(.text+0xa0): In function `Init(unsigned int)':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)'

I've been playing with my bsp_specs file, but i'm not sure if the
bsp_specs file is the problem, anyway here it is:
%rename cpp old_cpp
%rename lib old_lib
%rename endfile old_endfile
%rename startfile old_startfile
%rename link old_link

*cpp:
%(old_cpp) %{qrtems: -D__embedded__ -DUSE_ENHANCED_INTR_API}
-Asystem(embedded)

*lib:
%{!qrtems: %(old_lib)} %{!nostdlib: %{qrtems: --start-group \
%{!qrtems_debug: -lrtemsbsp -lrtemscpu} \
  %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g} \
-lc -lgcc --end-group \
%{!qnolinkcmds: -T linkcmds%s}}}

*startfile:
%{!qrtems: %(old_startfile)} %{!nostdlib: %{qrtems: \
%{!qrtems_debug: start.o%s crti.o%s crtbegin.o%s} \
%{qrtems_debug: start_g.o%s crti.o%s crtbegin.o%s}}}

*link:
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e _start}

*endfile:
%{!qrtems: *(old_endfiles)} %{qrtems: crtend.o%s crtn.o%s }

does any one have a clue?
TIA

Philippe



More information about the users mailing list