Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [68.100.60.50] X-Originating-Email: [l0ci AT hotmail DOT com] From: "Tim Renner" To: cygwin AT cygwin DOT com Subject: Cygwin Cross compiler on Linux Date: Thu, 27 Mar 2003 23:54:14 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Mar 2003 04:54:14.0725 (UTC) FILETIME=[14BAFF50:01C2F4E6] I was wondering if anyone has successfully built a Cygwin gcc cross compiler (Host=i686-suse-linux, Target=i386-pc-cygwin) under Linux, and if so, could you post or email me the steps you took to do it... Here's my list of steps... Snagged gcc-2.95.3.tar.gz binutils-.tar.gz newlib-.tar.gz unpacked them all into my cross directory... cd binutils configure --prefix=$HOME/cross -target=i386-pc-cygwin -v make all install cd .. export PATH=$HOME/cross/bin:$PATH Brought over /lib, /usr/lib and /usr/include from my Cygwin machine, put in $HOME/cross/i386-pc-cygwin/lib, ...-cygwin/usr/lib, and ...-cygwin/include respectively... cd gcc-2.95.3 configure --prefix=$HOME/cross --target=i386-pc-cygwin --with-gnu-as --with-gnu-ld --with-newlib --with-headers=$HOME/cross/newlib-/newlib/libc/include make all install (Fixed header conflicts till make all install worked ;) Now, when I try to compile this test program (Well, after copying some libraries from $HOME/cross/i386-pc-cygwin/lib/w32api into the lib dir, I get this error... Ender:/tmp # cat test.cpp #include void main() { cout << "This is my test program!" << endl; } Ender:/tmp # i386-pc-cygwin-g++ -o test.exe test.cpp /root/cross/i386-pc-cygwin/lib/libcygwin.a(pseudo-reloc.o)(.text+0x49): undefined reference to `__RUNTIME_PSEUDO_RELOC_LIST__' /root/cross/i386-pc-cygwin/lib/libcygwin.a(pseudo-reloc.o)(.text+0x51): undefined reference to `__RUNTIME_PSEUDO_RELOC_LIST_END__' collect2: ld returned 1 exit status Ender:/tmp # I can't find a library on my cygwin install that has those symbols defined anywhere... I'm currently trying to build the Cygwin version of gcc-2.95.3, but havn't been able to get through that build yet... any help would be much appreciated ;) The most frustrating part is that I had this working at one point... I just don't remember how I did it :( Thanks, -Tim _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- 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/