delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/04/27/14:00:22

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Bob Tanner <tanner AT real-time DOT com>
Organization: Real Time Enterprises, Inc.
Newsgroups: comp.os.msdos.djgpp
Date: Fri, 27 Apr 2012 12:40:11 -0500
Message-ID: <4f9ad9fa$0$17213$892e0abb@auth.newsreader.octanews.com>
References: <4f996694$0$17213$892e0abb AT auth DOT newsreader DOT octanews DOT com>
MIME-Version: 1.0
Subject: Re: Cross-compiling on Lucid (10.04) Linux
User-Agent: Unison/2.1.7
Lines: 55
NNTP-Posting-Date: 27 Apr 2012 12:40:11 CDT
X-Complaints-To: abuse AT octanews DOT net
Bytes: 2555
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On 2012-04-26 15:15:34 +0000, Bob Tanner said:

> Any help would be appreciated.

So I found a pretty site dealing with building our town toolchain from 
sources (the debian way).

http://wiki.debian.org/EmdebianToolchain#Build_your_own_from_sources

I'm ignorning the libc6 stuff for now and just attempting to build the 
binutils and gcc stuff.

Relevant HOWTO snippet for building binutils below:

$ apt-get source binutils; cd binutils-*
$ TARGET=<your-target> dpkg-buildpackage -b -uc -us
$ cd..
$ sudo dpkg -i *.deb

What would <your-target> be for DJGPP?

$ TARGET=i586-pc-msdosdjgpp dpkg-buildpackage -b -uc -us

Seems to work. I do get a 
binutils-i586-pc-msdosdjgpp_2.20.1-3ubuntu7.1_amd64.deb

Now onto the relevant HOWTO snippet for building gcc:

$ apt-get source gcc-4.X
$ cd gcc-4.X-*
$ GCC_TARGET=${ARCH} DEB_CROSS=yes fakeroot debian/rules control
$ DEB_CROSS_NO_BIARCH=yes \
        GCC_TARGET=${ARCH} DEB_CROSS=yes dpkg-buildpackage -us -uc -rfakeroot

What would I use for the ${ARCH}?

$ GCC_TARGET=i586-pc-msdosdjgpp DEB_CROSS=yes fakeroot debian/rules control
mkdir -p stamps
/usr/bin/make -f debian/rules.conf control
make[1]: Entering directory `/home/rte/tmp/msdos/gcc/gcc-4.4-4.4.3'
debian/rules.conf:160: *** Recursive variable `LIBC_DEP' references 
itself (eventually).  Stop.
make[1]: Leaving directory `/home/rte/tmp/msdos/gcc/gcc-4.4-4.4.3'
make: *** [control] Error 2

Might be a bug in the debian/rules (I'm asking over there) but I just 
want to make sure I have the ${ARCH} value correct.

Thanks.

-- 
Bob Tanner <tanner AT real-time DOT com>                  | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax   : (952)943-8500
Key fingerprint = F785 DDFC CF94 7CE8 AA87 3A9D 3895 26F1 0DDB E378

- Raw text -


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