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 To: jcast AT ou DOT edu Cc: cygwin AT cygwin DOT com Subject: Re: Header problems building cross gcc i686-pc-linux-gnu to i686-pc-cygwin Organization: Jan at Appel From: Jan Nieuwenhuizen Date: 11 May 2001 10:47:06 +0200 Message-ID: Lines: 36 User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I am having problems building a GNU/Linux to Cygwin cross compiler. > I configure gcc using: > ../../foreign/gcc-2.95.3-4/configure --target=i686-pc-cygwin > --with-target-headers=/win32/c/Cygwin/usr/include/ > --prefix=/home/jcast/ --with-as=/home/jcast/bin/i686-pc-cygwin-as > When I attempt to build (using `make'), I get the following error > message: Huh? did you really unpack all stuff in /win32? Ok, here's what I do (on a ppc, but it should work on x86 too :-) ++ tar xzf /home/ftp/pub/gnu-windows/cygwin-1.1.8/ppc-gnu-linux-x-i686-pc-cygwin/gcc/gcc-2.95.3-4-src.tar.gz ++ mkdir -p gcc-build ++ cd gcc-build ++ sourcedir=/home/cygwin/cygwin-1.1.8/usr/src/gcc-2.95.3-4 ++ CPPFLAGS=-I /home/cygwin/cygwin-1.1.8/usr/include/w32api ++ CFLAGS=-O2 -g -DATTRIBUTE_NORETURN= -DATTRIBUTE_UNUSED= -I /home/cygwin/cygwin-1.1.8/usr/include/w32api ++ /home/cygwin/cygwin-1.1.8/usr/src/gcc-2.95.3-4/configure --host=ppc-gnu-linux --target=i686-pc-cygwin --prefix=/home/cygwin/cygwin-1.1.8/linux-x-cygwin/usr -v --enable-threads --with-headers=/home/cygwin/cygwin-1.1.8/usr/i686-pc-cygwin/include --with-libs=/home/cygwin/cygwin-1.1.8/usr/i686-pc-cygwin/lib ++ make 'LANGUAGES=c c++' You're invited to use my automagical scripts for setting up a cross development environment and cross building GUILE, LilyPond etc, from: http://www.lilypond.org/gnu-windows/cross-1.1.8.tar.gz Good luck, Jan. -- Jan Nieuwenhuizen | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple