public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Building gcc as a cross compiler
@ 2001-03-21  9:46 David Korn
  2001-03-21  9:53 ` Christophe Rippert
  0 siblings, 1 reply; 6+ messages in thread
From: David Korn @ 2001-03-21  9:46 UTC (permalink / raw)
  To: 'Christophe Rippert', gcc-help

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Building gcc as a cross compiler
@ 2001-03-21 10:15 David Korn
  0 siblings, 0 replies; 6+ messages in thread
From: David Korn @ 2001-03-21 10:15 UTC (permalink / raw)
  To: 'Christophe Rippert', gcc-help

>-----Original Message-----
>From: Christophe Rippert [ mailto:Christophe.Rippert@imag.fr ]
>Sent: 21 March 2001 17:54


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

  All the formats are fairly generic, thanks to the portability of 
binutils; I'm not expert in making that sort of choice, but IIUIC arm-elf
might be better as it's a more modern format and has the best support
for things like debugging info (particularly in C++), weak symbols and
dynamic linking.  However I am not an object-file-format expert, so you
should probably look for better advice than mine on the subject.

  As to which library you want, glibc is more suited to a desktop PC;
newlib is good for embedded systems in which resources are constrained.
For the same reason, porting glibc to a new system is probably a bit
more work than newlib, but it's really the way to go.

  And you should rebuild your compiler using the glibc headers!

    good luck,
      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
**********************************************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Building gcc as a cross compiler
@ 2001-03-21  9:36 Christophe Rippert
  0 siblings, 0 replies; 6+ messages in thread
From: Christophe Rippert @ 2001-03-21  9:36 UTC (permalink / raw)
  To: gcc-help

I'm trying to build gcc on PC running Linux RedHat 6.2 and I want it to
generate ARM code. I looked at the CrossGCC FAQ page and from a build
directory not in any of the source trees, I did the following:

 * ../binutils-2.9.1/configure --prefix=/usr/local/arm --target=arm-coff
 * make all install
 * LD_LIBRARY_PATH=/usr/local/arm/lib:$LD_LIBRARY_PATH
 * PATH=/usr/local/arm/bin:$PATH
 *
../gcc-2.95.2/configure --prefix=/usr/local/arm --target=arm-coff --with-hea
ders=/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)

This produce the following error:

In file included from ../../../gcc-2.95.2/libio/libio.h:30,
                 from ../../../gcc-2.95.2/libio/iolibio.h:1,
                 from ../../../gcc-2.95.2/libio/libioP.h:47,
                 from ../../../gcc-2.95.2/libio/filedoalloc.c:45:
_G_config.h:43: parse error before `_G_sigset_t'
_G_config.h:43: warning: data definition has no type or storage class

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 ?

Thanks in advance for your help.

Christophe Rippert


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-03-21 10:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-21  9:46 Building gcc as a cross compiler David Korn
2001-03-21  9:53 ` Christophe Rippert
2001-03-21 10:11   ` Lewin A.R.W. Edwards
     [not found]     ` <054501c0b233$f5f14580$4f14c7c2@tasmania>
2001-03-21 10:32       ` Lewin A.R.W. Edwards
  -- strict thread matches above, loose matches on Subject: below --
2001-03-21 10:15 David Korn
2001-03-21  9:36 Christophe Rippert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).