This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Problem building m68k-coff


>-----Original Message-----
>From: Michael Dorin [mailto:dorin@puma.chaski.com]
>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 
>binutils-2.11.2
>
>on red-hat 7.1

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


>*** 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.

     DaveK
-- 
"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.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]