www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/16/10:40:39

Date: Tue, 16 Oct 2001 16:36:17 +0200
Message-Id: <200110161436.QAA03803@acp3bf.physik.rwth-aachen.de>
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
To: djgpp AT delorie DOT com
Subject: Re: solaris-to-dos cross-compiler
X-Newsgroups: comp.os.msdos.djgpp
In-Reply-To: <20011015132101.A24002@kendall.sfbr.org>
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

In article <20011015132101 DOT A24002 AT kendall DOT sfbr DOT org> you wrote:
> -: You're supposed to *install* the
> -: cross-binutils into a place where the GCC configure step can find
> -: them. Either manually, or via 'make install' --- your choice.  

> I've never built the cross-compiler kit before, so I was following
> the makefile provided in cross/ of djcrx203.zip.  That makefile builds
> both binutils and gcc *before* installing either one, so that's what I
> was doing.  (The makefile was written for gcc-2.7.2 and binutils-2.7;
> maybe things have changed too much since then).

Quite probably so.  Please try to read the README and INSTALL documents
of both the binutils and GCC distributions you're trying to build.

> Anyway, after `make install' inside the cross-binutils dir, `make gcc'
> still has trouble finding (e.g.) `ar'.  For example, in the fragment
> below, `as' is found in /home/.../i386-pc-msdosdjgpp/bin/as, but `ar'
> is invoked only as `i386-pc-msdosdjgpp-ar', and therefore isn't found.

It should be found, and exactly under that name, because that's what
the canonical name for the cross-binutils is. I.e. after a "configure
--target=foo ; make ; make install" you're supposed to have $(foo)-ar
installed into $(bindir), which defaults to $(prefix)/bin,
i.e. /usr/local/bin.

> FWIW the top-level cross-binutils configure was invoked as:
> /configure --prefix=/home/jeffw/dos/djgpp/x --host=sparc-sun-solaris2.7 \
> 	--target=i386-pc-msdosdjgpp --norecursion

This is correct only if /home/jeffw/dos/djgpp/x/bin is in your $PATH.
If it isn't, add it.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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