delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/01/09:48:47

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Andris Pavenis <pavenis AT latnet DOT lv>
To: djgpp AT delorie DOT com
Subject: Re: Can't compile djgpp cross-compiler on GNU/Linux
Date: Fri, 1 Oct 2004 16:50:17 +0300
User-Agent: KMail/1.7
References: <1424088 DOT 2sbYVesNpt AT ID-187157 DOT News DOT Individual DOT NET>
In-Reply-To: <1424088.2sbYVesNpt@ID-187157.News.Individual.NET>
Cc: Tristan Miller <psychonaut AT nothingisreal DOT com>
MIME-Version: 1.0
Message-Id: <200410011650.17640.pavenis@latnet.lv>
Reply-To: djgpp AT delorie DOT com

On Friday 01 October 2004 11:40, Tristan Miller wrote:
> Greetings.
>
> I'm unable to compile djgpp (gcc-3.4.2) as a cross-compiler on my SuSE
> i686-pc-linux-gnu system running gcc-3.3.2.  As I'm not sure if this is a
> gcc bug or a djgpp bug, I have reported it on the gcc Bugzilla and am
> posting a CC here.
>

Known "trap" when building DJGPP targetted cross-compiler. 

Directory $prefix/lib/gcc/$target/$version must exist when building it.

I'm including a script which I used to build gcc-3.4.2 as cross-compiler
from Linux to DJGPP. Sources were before that unpacked and modified
for DJGPP using script unpack-gcc.sh from gcc342s2.zip

Andris

------------------------------------------------------------------------------------
#! /bin/sh

VER=3.4.2
PREFIX=/usr
TARGET=i586-pc-msdosdjgpp

DVER=`echo $VER | sed -e 's#\.##2g'`
TOP=`pwd`
SRC=$TOP/gnu/gcc-$DVER

test -d djcross || mkdir djcross || exit 1
cd djcross || exit 1

if ! [ -d $PREFIX/lib/gcc/$TARGET/$VER ] ; then
    if ! mkdir -p $PREFIX/lib/gcc/$TARGET/$VER ; then
 echo "Failed to create directory $PREFIX/lib/gcc/$TARGET/$VER"
 echo "Please create it. You may need root permissions for that"
 exit 1
    fi
fi     

$SRC/configure --prefix=$PREFIX \
  --host=`sh $SRC/config.guess` \
  --target=$TARGET \
  --disable-nls \
  --enable-version-specific-runtime-libs \
  --enable-languages=c,c++,f77,objc || exit 1
  
make

- Raw text -


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