From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christophe Rippert" To: "David Korn" , Subject: Re: Building gcc as a cross compiler Date: Wed, 21 Mar 2001 09:53:00 -0000 Message-id: <051701c0b22f$db646250$4f14c7c2@tasmania> References: <718D38CAB6E0D011B2C90060970C28A564278B@exchangeserver.pixelpower.com> X-SW-Source: 2001-03/msg00179.html 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" To: "'Christophe Rippert'" ; 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 > ********************************************************************** >