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 10:52 22.05.03 +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.

For me, simply removing libsupc++.a from GROUP(...) in target.ld worked. It wasn't there for eCos 2.0b1, so I wonder why it appeared in 2.0.

All the best
Peter



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