arm cross errors

David Korn
Wed Mar 21 02:49:00 GMT 2001

    Hi Cristian,

  I'm replying your earlier letter, because it shows the problem most
clearly.  This is strange:

>Making all in machine
>make[6]: Entering directory 
>Making all in i386
>make[7]: Entering directory 

>Assembler messages:
>6: Error: bad instruction `pushl %ebp'

  What we see here is that the build has entered the newlib directory
and is trying to build newlib for i386!  Of course, the arm-coff assembler
doesn't like all those x86 instructions.  In fact, it's even stranger:
the command that fails is

/home/Cristian/b-gcc/gcc/xgcc -B/home/Cristian/b-gcc/gcc/
-B/bar/arm-coff/bin/ -
idirafter /home/Cristian/b-gcc/arm-coff/newlib/targ-include -idirafter
stian/gcc-2.95.2/newlib/libc/include -nostdinc  -mbig-endian
" -DVERSION=\"1.8.1\"  -I.
/libc/machine/i386  -I
machine/i386/../../../libm/common -O2 -DMISSING_SYSCALL_NAMES
6/../../../libc/include -fno-builtin      -g -O2  -mbig-endian -c

where we see the remarkable sight of gcc trying to build newlib for a
big endian x86!

  So it's gotten the wrong idea about paths, or configuration, somehow.
Please send me *ALL* the output from the configure and build of gcc;
I need more info.  Please also send me the output you get when you do

 cd /home/Cristian/build-gcc/gcc
 ./xgcc -print-search-dirs
 ./xgcc -dumpmachine
 ./xgcc -print-file-name

and in the meantime, there are two slight chances that might work:


This line from your might fix it if it actually said


If that doesn't work, there is a known problem of 2.95.2 that it needs
the install directory $prefix/lib/gcc-lib/$target/$version to exist before
building.  You can try this by

  cd /home/Cristian/build-gcc/gcc/
  make installdirs


 All your base are belong to us!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list