Problems building m68k gcc cross compiler on Mandrake Linux 7.1 (x86)

ron tal
Tue Oct 10 12:42:00 GMT 2000


I am trying to build binary gcc for UNIX/solaris for target=m68k-coff.

I succeed configuring the binutils, BUT failed to do "make all install".

the following is the error messages:

make[1]: Entering directory 
test x"no" != xyes || \
  gcc -c -DHAVE_CONFIG_H -g -O2 -W -Wall -I. 
-I../../binutils-2.10/libiberty/../include  -W -Wall -Wtraditional  
../../binutils-2.10/libiberty/argv.c -o pic/argv.o
gcc -c -DHAVE_CONFIG_H -g -O2 -W -Wall -I. 
-I../../binutils-2.10/libiberty/../include  -W -Wall -Wtraditional 
../../binutils-2.10/libiberty/argv.c:38  string.h No such file or directory
../../binutils-2.10/libiberty/argv.c:39  stdlib.h No such file or directory
make[1]: Leaving directory 

the mystery that at argv.c:37 #include <stddef.h> there is NO Error,
but the following two lines failed.

I made a search for <stddef.h> and found it in gcc-2.95.2/gcc/ginclude.

The files <stdlib.h> and <string.h> resides in newlib directory.

There is a problem and I dont know what it is.

Let me know if you can help me in here.

thanx, ronen.

>From: "Zubin Sethna" <>
>To: <>
>Subject: Problems building m68k gcc cross compiler on Mandrake Linux 7.1 
>Date: Mon, 9 Oct 2000 11:27:11 +1000
>I'm trying to build the gnu tool chain for a m68k target and I've run into 
>problems building gcc. I followed the instructions from the Redhat site 
>on building a powerpc cross-compiler but substituted m68k-elf for the 
>target name. Binutils builds ok, but during building of gcc the complier 
>says it can't find stdlib.h or unistd.h (when compiling libgcc2.c). It 
>seems to be looking for these includes in $prefix (from configure) which is 
>where the resultant executables and includes are put. The question is where 
>do I get these includes from? Do I assume correctly that they are different 
>from the host system includes?
>Thanks in advance for any help given.
>PS: I downloaded gcc-core-2.95.2.tar.bz2 and gcc-g++-2.95.2.tar.bz2

Get Your Private, Free E-mail from MSN Hotmail at .

Share information about yourself, create your own public profile at .

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

More information about the crossgcc mailing list