Subject: Re: Header problems building cross gcc i686-pc-linux-gnu to i686-pc-cygwin
From: Jan Nieuwenhuizen <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: 11 May 2001 10:47:06 +0200

> 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 <[email-masked]> | 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