(This message is 'cc'd' to Phil as he's listed in the Makefile as the
maintainer of net-tools currently...)

Build environment:
   toolchain components:
     binutils-2.11
     gcc-2.95.3
     glibc-2.2.2
host: i686-pc-linux-gnu running a 2.4.0 kernel
target: arm-linux

When cross-compiling the net-tools-1.60 for arm-linux the compiler
stumbles in netstat.c with the following error:

arm-linux-gcc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -march=armv4 -mtune=strongarm1100 -s   -c -o netstat.o netstat.c
netstat.c: In function `prg_cache_load':
netstat.c:436: internal error--unrecognizable insn:
(insn 806 803 57 (set (reg:QI 2 r2)
        (mem:QI (plus:SI (reg:SI 2 r2)
                (const_int -612 [0xfffffd9c])) 0)) -1 (nil)
    (nil))
make: *** [netstat.o] Error 1

I ran into the same problem trying to build net-tools-1.57 with the
toolchain listed above.  1.57 builds fine with
binutils-2.10.1/gcc-2.95.2/glibc-2.1.3.  I hacked all around in
'prg_cache_load' trying various things.  Commenting out most of the
function allows the build to complete, but I haven't been able to nail
down a specific line of the code that trips up the compiler.  I
commented out all the way down to the big 'while' block before I got the
error, but then was forced to retreat upwards when I started enabling
code at the bottom of the while block.

(BTW I built a toolchain from binutils-2.10.1/gcc-2.95.2/glibc-2.2.2,
but the build of the c++ compiler failed due to a glibc incompatability
I think.  It built net-tools-1.57 fine.)

Some insight into the nature of the compiler error would be appreciated.

Thanks!

--
       Jeff Sutherland - Senior Engineer - http://www.accelent.com
-  +  -  +  -  +  -  +  -  +  -  +  -  +  -  +  -  +  -  +  -  +  -  +  -
Whenever I return from a trip abroad, I'm always amazed by two things: All
the wide open space we have in this country, and how bad the roads are.





_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to