Link requires __eabi with different gcc

Leon Pollak leonp at plris.com
Sun Feb 25 11:21:26 UTC 2007


Hello,all.

I have fallen into a very strange (for me) situation. I have a demo project 
under cygwin, which passes compilation and link and does the demo work OK.
An attempt to recompile it under Linux and RTEMS tool chain fails on link 
stage saying that __eabi() is undefined. 
I tried an empty __eabi() function (as there is no such in demo) and 
everything compiled and linked OK, but the code worked very very strange.

Here is the link calling line:
        $(LD) -EB -N -g -v -Tldscript -o test crt0.o test.o -M >test.map
and ldscript is very primitive.

I asked both gcc versions about the '--v' option. The working version says:
Using built-in specs.
Target: powerpc-elf
Configured 
with: /mac_gnu_bld/src/gcc-4.1.1/configure --host=i686-pc-cygwin --target=powerpc-elf --disable-nls --with-stabs
            --disable-install-libiberty --disable-install-libbfd --disable-dependency-tracking --prefix=/usr/local --enable-languages=c,c++
            --with-gnu-as --with-gnu-ld
Thread model: single
gcc version 4.1.1
---------------
While the RTEMS version says:
Using built-in specs.
Target: powerpc-rtems4.7
Configured 
with: ../gcc-4.1.1/configure --prefix=/opt/rtems-4.7 --bindir=/opt/rtems-4.7/bin --includedir=/opt/rtems-4.7/include
                --libdir=/opt/rtems-4.7/lib --mandir=/opt/rtems-4.7/man --infodir=/opt/rtems-4.7/info
                --datadir=/opt/rtems-4.7/share --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu
                --target=powerpc-rtems4.7 --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib
                --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs
                --enable-threads --enable-languages=c,c++
Thread model: rtems
gcc version 4.1.1 (RTEMS gcc-4.1.1/newlib-1.15.0-7.fc6)
--------------------------

As all these differences are at configure stage, does this means that I can 
not compile this demo at all?

Can somebody help me and say what can be done here anyway?
Many thanks ahead.

-- 
Leon



More information about the users mailing list