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:content-type:content-transfer-encoding; bh=usAIfPRXVZi1Jlcoj651wH7Ji/VNMA/QtU4AavZrUDk=; b=bJUqDJIjDyIVMowMUR9QT0HckPVNcKcKxIora084xS0ZkJGvy9mM2znyN8Gjxpu7xxSxVWbtdjCiQeaks/a7S7ehb7BdwYaMXfojOLmGzdj2zxJ89yDqJMyta0MkQnKz2kksIgug93Px3AyL+8frUy8uM6KjipI7Dtn7nQdBLaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=N3g9h8BF2HRLLWX8MjnZkyPw5O5gQeQog22Q6h0uumVRWnRU3NIvSiOX6owNXy7Hw2SHHbhSeAK8OpDCtKEjnZe85jcqBoPAO11vffQJWMkBgDcxpVmVwo8oulCgsP4k6tL4uDXM2LltsJl929lltMFWsEZ4YGYIzFVma9uAUeA= Message-ID: <46FF0C7E.4060104@gmail.com> Date: Sat, 29 Sep 2007 22:39:58 -0400 From: nn6eumtr User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Problem building djgpp cross compiler Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com X-No-Archive: Yes 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?