This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin Cross compiler on Linux


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-<newest>.tar.gz
newlib-<newest>.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-<newest>/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 <iostream>

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]