delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/09/30/01:16:02

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=beta;
h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding;
bh=z7nTX8TOKRt+qbTiOjObPiZgVcYoSRjcnQGXCqZMrds=;
b=TmJ8vapZnZ+23ZfkCP5DzW2naYyZ1H5iQJD7q2sqfeNK5LJXSylEHKoq789VIawcSaidYe4FRYvuzhU+Br0c4lZRYDXFM280wmzR4FdEU467Fof6j0ZDoPoh3Va0IfRcs1luCLa7wcSDQq9rGysjYHLNhCr00uLyOXpyWrPuIk8=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=beta;
h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding;
b=MVpuPsB2dDPv1CG1ZAGa0oJMegX2G9nzzZFwqdZseXYjqoK5ZeoK8iybievfpw/PeKHIJ1N00ksU79uQReAH4Rx+WefctGNs5n4txxaWv9ZoRoNRd46rve7IcAT8x7Hi3GjuhhR4DLxGj5ShbQoXJCskS1DiGSFYrRXTE+IQZV4=
Message-ID: <46FF2D8B.9040100@gmail.com>
Date: Sun, 30 Sep 2007 01:00:59 -0400
From: nn6eumtr <nn6eumtr AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Problem building djgpp cross compiler
References: <46FF0C7E DOT 4060104 AT gmail DOT com>
In-Reply-To: <46FF0C7E.4060104@gmail.com>
Reply-To: djgpp AT delorie DOT com

X-No-Archive: Yes

DJ Delorie wrote that he had already fixed this. I downloaded the latest 
snapshot from the (pre-release) GCC 4.3 series and was able to build the 
compiler with the instructions below. GCC 4.3 also requires GMP 4.2.1 
and MPFR 2.2.1 to be available on the build host to build successfully. 
(MPFR depends on GMP if your building it yourself)

http://gcc-ca.internet.bs/infrastructure/gmp-4.2.1.tar.bz2
http://gcc-ca.internet.bs/infrastructure/mpfr-2.2.1.tar.bz2
http://gcc-ca.internet.bs/snapshots/4.3-20070928/

And for the record, building binutils successfully requires recent 
versions of flex and bison to be installed. The configure script won't 
complain about it, and the compile dies complaining about duplicate 
main()s if you have an outdated or missing flex/bison.

http://ftp.gnu.org/gnu/bison/bison-2.3.tar.bz2
http://prdownloads.sourceforge.net/flex/flex-2.5.33.tar.bz2?download

nn6eumtr wrote:
> 
> I'm hoping someone can help me with this. I've read everything I can 
> find about building djgpp as a cross compiler, but I haven't seen 
> anything that discusses this problem.
> 
> I am building using the stock GCC and binutil source code:
> http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.bz2
> http://ftp.gnu.org/gnu/gcc/gcc-4.2.1/gcc-4.2.1.tar.bz2
> 
> My host is i686-pc-linux-gnu and my target is i586-pc-msdosdjgpp. The 
> directory structure containing my cross compiling files (prefix)is 
> /db/xlocal.
> 
> My build compiler is "gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 
> 4.1.1-21)" from the latest Debian Linux distribution.
> 
> I've unpacked the binutils and gcc source files into /db directory, and 
> created binutils-djgpp and gcc-djgpp for building. My path includes 
> /db/xlocal/bin which has the binaries from binutils (i.e. 
> i586-pc-msdosdjgpp-ld)
> 
> My procedure for building binutils:
> cd /db/binutils-djgpp
> ../binutils-2.18/configure --prefix=/db/xlocal/ 
> --target=i586-pc-msdosdjgpp --disable-nls
> make
> make install
> 
> Next I install the cross compile files from www.delorie.com
> cd /db/xlocal/i586-pc-msdosdjgpp/
> unzip -a ../../djcrx203.zip
> cd /db/xlocal/i586-pc-msdosdjgpp/lib
> patch < ../cross/patch.lib
> 
> Next step is to build GCC:
> cd /db/gcc-djgpp
> ../gcc-4.2.1/configure --prefix=/db/xlocal --target=i586-pc-msdosdjgpp 
> --with-headers=/db/xlocal/i586-pc-msdosdjgpp/include/ 
> --enable-languages=c --disable-nls
> 
> I get as far as building libiberty which dies during configure:
> 
> Checking multilib configuration for libiberty...
> Configuring in i586-pc-msdosdjgpp/libiberty
> configure: loading cache ./config.cache
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for makeinfo... makeinfo --split-size=5000000
> checking for perl... perl
> checking build system type... i686-pc-linux-gnu
> checking host system type... i586-pc-msdosdjgpp
> checking for i586-pc-msdosdjgpp-ar... /db/xlocal/i586-pc-msdosdjgpp/bin/ar
> checking for i586-pc-msdosdjgpp-ranlib... 
> /db/xlocal/i586-pc-msdosdjgpp/bin/ranlib
> checking for i586-pc-msdosdjgpp-gcc... /db/gcc-djgpp/./gcc/xgcc 
> -B/db/gcc-djgpp/./gcc/ -B/db/xlocal/i586-pc-msdosdjgpp/bin/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/lib/ -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/include -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/sys-include
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /db/gcc-djgpp/./gcc/xgcc -B/db/gcc-djgpp/./gcc/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/bin/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/lib/ -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/include -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/sys-include accepts -g... yes
> checking for /db/gcc-djgpp/./gcc/xgcc -B/db/gcc-djgpp/./gcc/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/bin/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/lib/ -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/include -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/sys-include option to accept ANSI C... 
> none needed
> checking how to run the C preprocessor... /db/gcc-djgpp/./gcc/xgcc 
> -B/db/gcc-djgpp/./gcc/ -B/db/xlocal/i586-pc-msdosdjgpp/bin/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/lib/ -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/include -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/sys-include -E
> checking whether /db/gcc-djgpp/./gcc/xgcc -B/db/gcc-djgpp/./gcc/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/bin/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/lib/ -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/include -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/sys-include accepts -Wc++-compat... yes
> checking whether /db/gcc-djgpp/./gcc/xgcc -B/db/gcc-djgpp/./gcc/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/bin/ 
> -B/db/xlocal/i586-pc-msdosdjgpp/lib/ -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/include -isystem 
> /db/xlocal/i586-pc-msdosdjgpp/sys-include and cc understand -c and -o 
> together... yes
> checking for an ANSI C-conforming const... yes
> checking for inline... inline
> checking whether byte ordering is bigendian... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for sys/file.h... yes
> checking for sys/param.h... yes
> checking for limits.h... yes
> checking for stdlib.h... yes
> checking for malloc.h... yes
> checking for string.h... yes
> checking for unistd.h... yes
> checking for strings.h... yes
> checking for sys/time.h... yes
> checking for time.h... yes
> checking for sys/resource.h... yes
> checking for sys/stat.h... yes
> checking for sys/mman.h... yes
> checking for fcntl.h... yes
> checking for alloca.h... no
> checking for sys/pstat.h... no
> checking for sys/sysmp.h... no
> checking for sys/sysinfo.h... no
> checking for machine/hal_sysinfo.h... no
> checking for sys/table.h... no
> checking for sys/sysctl.h... no
> checking for sys/systemcfg.h... no
> checking for stdint.h... no
> checking for stdio_ext.h... no
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking whether errno must be declared... no
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for memory.h... yes
> checking for strings.h... (cached) yes
> checking for inttypes.h... no
> checking for stdint.h... (cached) no
> checking for unistd.h... (cached) yes
> checking for int... yes
> checking size of int... 4
> checking for uintptr_t... no
> checking for a 64-bit type... unsigned long long
> checking for pid_t... yes
> checking for library containing strerror... configure: error: Link tests 
> are not allowed after GCC_NO_EXECUTABLES.
> make[1]: *** [configure-target-libiberty] Error 1
> make[1]: Leaving directory `/db/gcc-djgpp'
> make: *** [all] Error 2
> 
> Can anyone advise me how to get past this point?
> 

- Raw text -


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