delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/12/02:40:56

Date: Wed, 12 Jun 2002 09:38:59 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: Rob Kramer <robk AT starhub DOT net DOT sg>
Cc: djgpp AT delorie DOT com
Subject: Re: Small problem cross-building CVS DJGPP.
In-Reply-To: <ae6os9$3om$1@clematis.singnet.com.sg>
Message-ID: <Pine.A41.4.05.10206120919550.34618-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Wed, 12 Jun 2002, Rob Kramer wrote:

> Hi,
> 
> You're fast! :)
> 
> Andris Pavenis wrote:
> > Never met such problem (I have setup DJGPP CVS being built from cron task
> > at night when there are changes in CVS version). Try using
> > gcc command line options -print-prog-name and -print-search-dirs to try to
> > understand what happens. Here is what I'm getting from these commands:
> > 
> > bash-2.05a$ i586-pc-msdosdjgpp-gcc -print-prog-name=as
> > /usr/bin/i586-pc-msdosdjgpp-as
> 
> ~> i586-pc-msdosdjgpp-gcc -print-prog-name=as
> as
> 
> ~> i586-pc-msdosdjgpp-gcc -print-prog-name=ld
> ld
> 
> Oops!
> 
> ~> i586-pc-msdosdjgpp-gcc -print-search-dirs
> install: /opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.3/
> programs: 
> /opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.3/:/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/:/usr/lib/gcc/i586-pc-msdosdjgpp/2.95.3/:/usr/lib/gcc/i586-pc-msdosdjgpp/:/opt/djgpp/i586-pc-msdosdjgpp/bin/i586-pc-msdosdjgpp/2.95.3/:/opt/djgpp/i586-pc-msdosdjgpp/bin/
> libraries: 
> /opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.3/:/usr/lib/gcc/i586-pc-msdosdjgpp/2.95.3/:/opt/djgpp/i586-pc-msdosdjgpp/lib/i586-pc-msdosdjgpp/2.95.3/:/opt/djgpp/i586-pc-msdosdjgpp/lib/

It must find /opt/djgpp/i586-pc-msdosdjgpp/bin/as (It should be installed
when installing binutils). You can make it as symlink to 
/opt/djgpp/bin/i586-pc-msdosdjgpp-as. The same about ld in the same
directories.

> ~> i586-pc-msdosdjgpp-gcc -v
> Reading specs from /opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.3/specs
> gcc version 2.95.3 20010315/djgpp (release)
> 
> A lot less info here unfortunately, but that might be because you use gcc 
> 3.1.

> > --with-as=/usr/bin/i586-pc-msdosdjgpp-as
> > --with-ld=/usr/bin/i586-pc-msdosdjgpp-ld --disable-nls --prefix=/usr
> 
> I dont't think I configured these paths explicitly. Could that be the 
> problem, or are they detected anyway by configure? Hmm, I guess this is 
> what went wrong.

No. They are not required to get working cross-gcc for
i[3456]86-pc-msdosdjgpp target.

Main reason why I specified them when configuring GCC were to give
configure a possibility to analyse binutils functionality (otherwise
it defaults to most basic functionality only). 

> 
> > I hope You have compiled cross-binutils at the same prefix. I don't know
> > whether it matters, but having the same prefix for both cross-gcc and
> > cross-binutils surely will not harm
> 
> Yes, same prefix.

And I hope for the same target (for example cross-gcc for
i586-pc-msdosdjgpp and cross-binutils for i686-pc-msdosdjgpp will
not work together)

Make sure You really have 
	/opt/djgpp/bin/i586-pc-msdosdjgpp-as
	
You may have also 
	/opt/djgpp/i586-ps-msdosdjgpp/bin/as
(It is installed by 'make install' when installing binutils. I replacing
it by symlink to the first file)

Andris



- Raw text -


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