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: Libsupc++


At 22 May 2003 10:52:56 +0100,
Nick Garnett wrote:
> 
> "Ian Burns" <burns@rangerinstruments.com> writes:
> 
> > Hi,
> > 
> > I'm trying to build eCos for the H8300H minimal simulator. I can build
> > the kernel libraries but when I try to build the tests, I get an error
> > saying that libsupc++ can't be found:
> > 
> > make -r -C hal/common/v2_0 tests
> > make[1]: Entering directory
> > `/ecos-c/ecos-c/h8_kernel_2.0_build/hal/common/v2_0'
> > h8300-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static -mh
> > -L/ecos-c/ecos-c/h8_kernel_2.0_install/lib -Ttarget.ld -o
> > /ecos-c/ecos-c/h8_kernel_2.0_install/tests/hal/common/v2_0/tests/context
> > tests/context.o
> > /gnutools/lib/gcc-lib/h8300-elf/3.2.3/../../../../h8300-elf/bin/ld:
> > cannot find libsupc++.a
> > collect2: ld returned 1 exit status
> > 
> > I'm running h8300-elf-gcc version 3.2.3 running under cygwin, to build
> > the eCos 2.0 source. The libsupc++.a file does not exist.
> > 
> > I also have i386-elf-gcc version 3.2.3, and libsupc++.a exists in the
> > compiler's library directory, and I have no problems compiling eCos for
> > this target.
> > 
> > If anyone has any suggestions on how to build this library for the H8
> > target, your input would be greatly appreciated.
> > 
> 
> 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.
> 
> Note that there are a number of other problems with GCC and GDB for
> the h8300: the lack of 64 bit integer and double support means that
> some test cases fail. The simulator also has a few problems which I am
> investigating in spare moments.
> 

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.

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

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