www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/21/03:48:11

Date: Tue, 21 Mar 2000 09:49:44 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Prashant TR <tr AT midpec DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with cross compiler
In-Reply-To: <200003201751.WAA01204@midpec.com>
Message-ID: <Pine.A41.4.05.10003210934520.77644-100000@ieva05.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Mon, 20 Mar 2000, Prashant TR wrote:

> 
> I managed to build the cross-compiler for DJGPP using gcc-2.95.2.tar.gz and
> binutils-2.9.1.tar.gz files. With quite a bit of changes to the makefile in
> djcrx203.zip, I finally managed to install it in /home/tr/bin.
> 
> Now, whenever I try to compile a program, I get the message "ld: cannot open
> Linker script djgpp.djl". I have this file in /home/tr/bin where xgcc is
> present but the compiler refuses to look into this path. The same appears
> even with crt1.o, i.e. it refuses to find this file unless it appears in
> the same directory as the C program which I'm trying to compile.
> 
> Does anyone know why this is happening?
> Thanks in advance.
> 

You should have djgpp.djl in one of directories where gcc looks for
libraries. Try running something like 
	i586-pc-msdosdjgpp-gcc -v foo.c -Wl,--verbose -o foo
and inspect output (of course edit command as needed)

Also if You have glibc-2.1 based system (Slackware-7, RedHat-6.X, etc)
and can install cross-compiler configured with --prefix=/usr (You need
root permissions for that) then You can try getting my recent build of
Linux to DJGPP cross-compiler (gcc-2.95.2) and cross-binutils (14 March
CVS version):
	http://www.lanet.lv/~pavenis/djgpp/

As I mentioned glibc-2.1 or above is required (I don't think binaries will
work with glibc-2.0.X)

Andris


- Raw text -


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