[ECOS] Libsupc++

Nick Garnett nickg@ecoscentric.com
Thu May 22 13:11:00 GMT 2003


"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.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


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



More information about the Ecos-discuss mailing list