Date: Wed, 12 Jun 2002 09:38:59 +0300 (WET) From: Andris Pavenis X-Sender: pavenis AT ieva06 To: Rob Kramer Cc: djgpp AT delorie DOT com Subject: Re: Small problem cross-building CVS DJGPP. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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