Problem building m68k-coff

David Korn
Mon Jul 16 04:17:00 GMT 2001

>-----Original Message-----
>From: Michael Dorin [ ]
>Sent: 14 July 2001 21:18

>I am trying to make a m68k cross compiler.   I have built 
>binutils without
>problem.   I can't seem to build the compiler.  I get some message 
>about stdlib.h and unistd.h not found while trying to build libgcc2.c.
>I am trying to build:
>gcc-2.95.3 with 
>on red-hat 7.1

  No mention of a library there.  I'd expect you to want newlib to go with

>*** lots of stuff snipped **
>		 rm -f ${name}.o; \
>		 done
>		 _muldi3
>		 ../../gcc-2.95.3/gcc/libgcc2.c:41: stdlib.h: 
>No such file or directory
>		 ../../gcc-2.95.3/gcc/libgcc2.c:42: unistd.h: 
>No such file or directory
>		 make[3]: *** [libgcc2.a] Error 1
>		 make[3]: Leaving directory `/home/dorin/gcc/gcc/gcc'
>		 make[2]: *** [stmp-multilib-sub] Error 2
>		 make[2]: Leaving directory `/home/dorin/gcc/gcc/gcc'
>		 make[1]: *** [stmp-multilib] Error 1
>		 make[1]: Leaving directory `/home/dorin/gcc/gcc/gcc'

  And sure enough the build failed while making libgcc.a, which is built
for the target and hence needs the target's header files.  Check the
references in the FAQ to newlib and building the core C compiler followed
by newlib followed by the rest of the compiler.

"Computer games don't affect kids; I mean if Pac-Man affected us as kids,
we'd all be running around in darkened rooms, munching magic pills and
listening to repetitive electronic music."
    - Kristian Wilson, Nintendo, Inc, 1989.

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