Richard Earnshaw wrote:

On Mon, 2005-11-14 at 16:52, Michael Trimarchi wrote:
Hi all,
I have this function defined twice. One in the libgcc2.c file and one in gcc/config/arm/ieee754-df.S
__floatdisf

I have problem during compilation of a arm soft float toolchain. Is there any fix?
Regards Michael

The build system should only be using the latter.  What configuration
are you using?  And what version of gcc?

R.


/home/luigi/crosstool-0.38/build/arm-9tdmi-linux-gnu/gcc-4.0.1-glibc-2.3.5/gcc-4.0.1/configure --target=arm-9tdmi-linux-gnu --host=i686-host_pc-linux-gnu --prefix=/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-9tdmi-linux-gnu --with-float=soft --with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi --with-headers=/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/include --with-local-prefix=/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-shared --enable-c99 --enable-long-long --with-gcc-version-trigger=/home/luigi/crosstool-0.38/build/arm-9tdmi-linux-gnu/gcc-4.0.1-glibc-2.3.5/gcc-4.0.1/gcc/version.c --enable-languages=c,c++

Linking error

libgcc/./_floatdidf_s.o: In function `__floatdidf':
libgcc2.c:(.text+0x0): multiple definition of `__floatdidf'
libgcc/./_addsubdf3_s.o:/home/luigi/crosstool-0.38/build/arm-9tdmi-linux-gnu/gcc-4.0.1-glibc-2.3.5/gcc-4.0.1/gcc/config/arm/ieee754-df.S:474: first defined here/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/bin/ld: Warning: size of symbol `__floatdidf' changed from 108 in libgcc/./_addsubdf3_s.o to 140 in libgcc/./_floatdidf_s.o
libgcc/./_floatdisf_s.o: In function `__floatdisf':
libgcc2.c:(.text+0x0): multiple definition of `__floatdisf'
libgcc/./_addsubsf3_s.o:/home/luigi/crosstool-0.38/build/arm-9tdmi-linux-gnu/gcc-4.0.1-glibc-2.3.5/gcc-4.0.1/gcc/config/arm/ieee754-sf.S:315: first defined here/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/bin/ld: Warning: size of symbol `__floatdisf' changed from 172 in libgcc/./_addsubsf3_s.o to 252 in libgcc/./_floatdisf_s.o
collect2: ld returned 1 exit status

Regards
Michael



Reply via email to