This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More GCC 3.4 issues


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.

Jifl
--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]