This is the mail archive of the ecos-discuss@sourceware.org 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: h8300 cannot find libgcc.a


m mariga wrote:

> /opt/ecos/ecos-3.0/packages/language/c/libm/v3_0/src/mathincl/fdlibm.h:78:3:
> 
> error: #error IEEE-style 64-bit doubles are required to use the math library

You compiler is providing 32-bit doubles. You need 64-bit doubles in
order to build the eCos math library. There's a patch available for the
KPIT v0401 tools which may help:

  http://www.cetoni.de/develop/develop_ecosh8s_en.html#a_broschueren

> h8300-elf-gcc -c -o nc_test_slave.o -mh -mint32 -g -Wall -I/home/link/aki-net-0717/untitled_install/include -ffunction-sections -fdata-sections nc_test_slave.c
> nc_test_slave.c: In function 'do_udp_test':
> nc_test_slave.c:215: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long int'
> nc_test_slave.c:215: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long int'
> nc_test_slave.c: In function 'do_tcp_test':
> nc_test_slave.c:391: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long int'
> nc_test_slave.c:391: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long int'
> h8300-elf-gcc -nostartfiles -L/home/link/aki-net-0717/untitled_install/lib -Wl,--gc-sections -Wl,--Map -Wl,nc_test_slave.map -o nc_test_slave nc_test_slave.o -Ttarget.ld -nostdlib
> /gnutools/lib/gcc/h8300-elf/4.4.0/../../../../h8300-elf/bin/ld: skipping incompatible /gnutools/lib/gcc/h8300-elf/4.4.0/libgcc.a when searching for libgcc.a
> /gnutools/lib/gcc/h8300-elf/4.4.0/../../../../h8300-elf/bin/ld: cannot find libgcc.a
> collect2: ld returned 1 exit status

Perhaps your toolchain does not provide the appropriate multilib support
for "-mh -mint32"? You can check using:

   $ h8300-elf-gcc -print-multi-lib

Note that most of the eCos community is using GCC 4.3.2 so you may well
discover a few compiler warnings and other issues if you build with GCC
4.4.0.

John Dallaway

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


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