delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/21/13:14:58

Date: Tue, 21 Mar 2000 18:38:20 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Ultan Henry <ultan AT cix DOT compulink DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Binutils 2.9.5.1 Cross-Compile
In-Reply-To: <memo.683641@cix.compulink.co.uk>
Message-ID: <Pine.A41.4.05.10003211829430.69442-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 Tue, 21 Mar 2000, Ultan Henry wrote:

> I'm trying to build a cross-compiler for a mips-tx39-elf target using the 
> DJGPP binutils port v2.9.5.1 (sources bnu2951s.zip and bnu2951x.zip). 
> The make process fails during the GAS portion with the following error:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./config 
> -I./..
> /include -I./.. -I./../bfd -I./../intl -I../intl 
> -DLOCALEDIR="\"/dev/env/DJDIR/s
> hare/locale\""  -g -O2 -W -Wall -c ./config/atof-ieee.c
> C:/DJGPP/BIN/sh.exe ./../ylwrap "bison -y" ./itbl-parse.y y.tab.c 
> itbl-parse.c y
> .tab.h itbl-parse.h -- -d
> c:/djgpp/bin/bison.exe: itbl-parse.y: No such file or directory (ENOENT)
> make.exe[1]: *** [itbl-parse.c] Error 1
> make.exe[1]: Leaving directory `c:/temp/gnu/binutl-2.951/gas'
> make.exe: *** [all-gas] Error 2
> 
> 'itbl-parse.y' is present in the GAS directory. The same source tree can 
> be configured and compiled correctly for a default target (without 
> cross-compile).
> 
> Any ideas what is wrong?
> 

I suggest building DJGPP hosted cross-binutils and cross-compiler (eg.
from i586-pc-msdosdjgpp to target You tried) using cross-compiling.
I tried building cross-binutils for host=i586-pc-msdosdjgpp and
target=mips-tx39-elf on Linux: No evident problems. I don't have 
corresponding hardware, so I cannot test the results:

I used binutils 14 March CVS version with additional patches from
bnu2951s.zip, sources were in ../src

	../src/configure --host=i586-pc-msdosdjgpp \
			 --target=mips-tx39-elf \
		         --build=i386-slackware-linux \
                         --prefix=/dev/env/DJDIR \
                         --with-included-gettext
	make

and all built without problems (this assumes one have working
cross-compiler from Linux to DJGPP)  Also for cross-compiler read
CROSS-GCC FAQ. I also suggest trying to build it under Linux
(I'm building also native binutils and GCC for DJGPP under Linux now -
all works)

Andris

- Raw text -


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