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