Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 10 Jul 2001 11:03:00 -0500 From: Nathan Fouarge To: cygwin AT cygwin DOT com Subject: building a cygwin -> linux gcc(crosscompiler pe->elf32) problems... Reply-To: bancroftnate AT earthlink DOT net X-Mailer: Spruce 0.7.4 for X11 w/smtpio 0.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Message-Id: <200107101119228.SM00633@remote.oncores.com> > Here is an overview of what I am doing.... I am trying to make gcc so I > can > get elf32 objects out of it. > just for the record I am building from CURRENT netrelease srcs...as in > just > to make sure I made a new directory and checked everything out > yesterday(7/09/01) and made sure it was a sane enviroment and then I > started from scratch... > > Here is how I have been going about it. > (I researched this quite a bit and found a couple of good howto's, this > one > was the most helpful > http://www.nanotech.wisc.edu/~khan/software/gnu-win32/cygwin-to-linux-cross-howto.txt) > > to save space and time > cygwin$ host=i686-pc-cygwin > cygwin$ build=i686-pc-cygwin > cygwin$ target=i686-pc-linux-gnu > cygwin$ prefix=/usr/local/linux > cygwin$ src_root=/usr/local/src/gnu > > First I build binutils using a configure command and make command of > > cygwin$ $src_root/binutils-2.10.1/configure \ > --with-included-gettext \ > --target=$target --host=$host --build=$build \ > --prefix=$prefix -v > cygwin$ make > make.log 2>&1 > cygwin$ make install > install.log 2>&1 > > and that works fine....no major errors it compiles and works... > then I added $prefix/bin to my path > > now where the problem comes...building gcc > configure command is > cygwin$ $src_root/gcc-2.95.2/configure \ > --enable-languages=c \ > --with-included-gettext --enable-shared --enable-threads \ > --target=$target --host=$host --build=$build \ > --prefix=$prefix -v > > that works fine....but when I goto do the make > it does quite a bit but > errors out at > /usr/local/src/gnu/gcc/gcc/libgcc2.c:41: stdlib.h: No such file or > directory > /usr/local/src/gnu/gcc/gcc/libgcc2.c:42: unistd.h: No such file or > directory > make[1]: *** [libgcc2.a] Error 1 > > attached is my make.log for gcc(er not I guess....since this bounced back....it was a little too big....if you need it just ask :) ) > > any help would be greatly appreciated > (also I was wondering why this particular flavor of compiler is not a > binary that a developer could dl somewhere easily accesable since 'to me' > this seems like there is a good chance that nt developers might want > there > executables to be ported to a linux compatable file type(bfd)) > > Thanks > Nathan Fouarge > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/