delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/27/23:54:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <l0ci AT hotmail DOT com>
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
Message-ID: <F106VwrblZz02H67yRL0001820a@hotmail.com>
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-<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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019