This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: Building gcc as a cross compiler



In fact I'm trying to build a compiler that I will use to build a new
operating system, so it should not generate Linux code (that's why I choose
the coff format I believe it is a generic format). As a standard library,
I'd like to build glibc (or newlib if it is better suited ?), also for a ARM
platform.

----- Original Message -----
From: "David Korn" <dkorn@pixelpower.com>
To: "'Christophe Rippert'" <Christophe.Rippert@imag.fr>;
<gcc-help@gcc.gnu.org>
Sent: Wednesday, March 21, 2001 6:47 PM
Subject: RE: Building gcc as a cross compiler


>
>
> >../gcc-2.95.2/configure --prefix=/usr/local/arm --target=arm-coff
> > --with-headers=/usr/include
>
> >(I had to copy the /usr/src/linux/include/linux and
> >/usr/src/linux/include/asm directories in /usr/include to avoid errors
> >from stdlib.h and linux/limits.h files not found)
>
>   That's all very well, but are you actually building for an ARM linux
> system?  If you aren't, you can't use those headers, but should be
> using newlib, probably; if you are, then surely 'linux' should be in the
> --target somewhere?
>
> >I looked at the arm-coff/libio/_G_config.h file (which appears to be
> >generated sometime during the compilation) and the faulty line is:
> >typedef __sigset_t _G_sigset_t;
> >
> >I believe it is a configuration problem since this file is generated ?
>
>   Well, it's got confused: it expects to have a definition of __sigset_t,
> from newlib or glibc; I guess the linux headers don't have it.
>
>   Are you building for a Linux system or a non-Linux system?  If you're
> building for a non-linux system, what are you planning to use for a
> standard C library?
>
>         DaveK
> --
>  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.
>
> www.mimesweeper.com
> **********************************************************************
>


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