This is the mail archive of the
mailing list for the eCos project.
Re: More GCC 3.4 issues
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: eCos development <ecos-devel at ecos dot sourceware dot org>
- Date: Wed, 03 Mar 2004 21:50:17 +0000
- Subject: Re: More GCC 3.4 issues
- References: <1077901214.4222.581.camel@hermes>
Gary Thomas wrote:
I've determined that the previous error is definitely a problem with GCC.
If a C++ function is marked extern "C", it messes up multiple static
variable declarations. I've reported this as GCC BUG 14324
Now, on to the next issue. It seems that there may need to be some
additional C++ support added (to whatever we have now). Anyone have
any ideas what the following errors mean & what I need to do about them?
powerpc-eabi-gcc -msoft-float -mcpu=405 -g -nostdlib -Wl,-static -Wl,--fatal-warnings -L/work/moab/t/install/lib -Ttarget.ld -o /work/moab/t/install/tests/infra/current/tests/cxxsupp tests/cxxsupp.o
/opt/mlb/xtools/lib/gcc/powerpc-eabi/3.4.0/../../../../powerpc-eabi/lib/nof/libsupc++.a(vterminate.o)(.text+0x70): In function `__gnu_cxx::__verbose_terminate_handler()':
/usr/src/redhat/BUILD/mlb_tools/gcc-3.4-20040225/libstdc++-v3/libsupc++/vterminate.cc:66: undefined reference to `__cxa_demangle'
/opt/mlb/xtools/lib/gcc/powerpc-eabi/3.4.0/../../../../powerpc-eabi/lib/nof/libsupc++.a(vterminate.o)(.got2+0x4):/usr/src/redhat/BUILD/mlb_tools/gcc-3.4-20040225/libstdc++-v3/libsupc++/vterminate.cc:46: undefined reference to `_impure_ptr'
_impure_ptr comes from newlib, and is thus an artifact of the way we build
tools. We could hack around it by defining an impure_ptr, but in reality,
if it's referenced then it may well be referenced by something that really
may be called in practice, in which case things may just suddenly break.
So if you want to play with 3.4 then hack around it that way, but I guess
"officially" we shouldn't use those tools yet. 3.4 hasn't been released
anyway, so I'm not too concerned yet.
It's not a problem with GCC itself though at least.
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
>>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco http://www.esconline.com/electronicaUSA/
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine