This is the mail archive of the ecos-discuss@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: ibsupc++.a


You may be having the same problem I encountered on the H8300. I'm new
to eCos, so I can't say whether this will work for your architecture,
but it worked for me. I removed the requirement for libsupc++ from the
linker file (see details below), and eCos built fine after that. Here's
a summary of some of the suggestions I received:

Nick Garnett's suggestions were:
> The main problem is that by default GCC does not build any of the C++
> libraries for the H8300H. We are not sure whether this is a mere
> oversight, or an explicit decision based on some information we don't
> have.
> 
> You could try editing the GCC config scripts to re-enable C++
> support. Or edit the h8300_h8300h.ld file and remove the reference to
> libsupc++ in the GROUP() line. The latter is probably easiest.

Yoshinori Sato suggested patching gcc to generate libsupc++:
> can avoid a problem of gcc with this patch.
> 3.2.x http://downloads.sourceforge.jp/ecos-h8/1630/gcc.diff
> 3.3   http://downloads.sourceforge.jp/ecos-h8/4216/gcc-3.3.diff.gz
> However, a problem of double does not inspect it fully.

Cheers,
Ian


> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com 
> [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of 
> xuesong wang
> Sent: Thursday, May 29, 2003 1:00 PM
> To: ecos
> Subject: [ECOS] ibsupc++.a
> 
> 
> ecos
> 
> making redroot problem :
> 
> TARGET=frv400
> make new frv400 redboot
> ecosconfig import 
> /home/ecos/package/hal/frv/frv400/v_2/misc/redboot_RAM.emc
> ecosconfig tree
> make
> 
> frv-elf-gcc -mcpu=fr400 -fPIC -G0 -Wl,--gc-sections 
> -Wl,-static -g -nostdlib -L/
> home/wxs/ecos-2.0/2/install/lib -Ttarget.ld -o 
> /home/wxs/ecos-2.0/2/install/bin/
> redboot.elf /home/wxs/ecos-2.0/2/install/lib/version.o 
> /home/wxs/frv-linux/bin/../lib/gcc-lib/frv-elf/3.1-frv-011127/
> .././../../frv-el
> f/bin/ld: cannot find libsupc++.a
> collect2: ld returned 1 exit status
> 
> Why ??
> any idea ? thanks
> 
> 
> 
>         xuesong wang
>         wxs2001@263.net
>           2003-05-29
> 
> 
> 
> -- 
> Before posting, please read the FAQ: 
> http://sources.redhat.com/fom/ecos
> and search the list 
> archive: http://sources.redhat.com/ml/ecos-discuss
> 



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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