Message-ID: <3e979062@news.starhub.net.sg> From: Rob Kramer Subject: Building a gcc 3.2.2 cross compiler.. Newsgroups: comp.os.msdos.djgpp Date: Sat, 12 Apr 2003 12:05:06 +0800 Lines: 39 User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Host: 202.156.76.168 X-Trace: 12 Apr 2003 12:04:50 +0800, 202.156.76.168 Organization: StarHub Internet Pte Ltd To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hey, I'm trying to build a gcc 3.2.2 linux to dos crosscompiler (using 2.04 alpha, but that's not really relevant here). I'm using gcc322s2.zip. The unpack_gcc script doesn't seem to work for me due to autoconf trouble. The major part of gcc requires autoconf 2.13. This is upgraded to 2.5 for gcc HEAD, but didn't get into 3.2.2. The libstdc++-v3 needs 2.52 however, and autoconf will abort if 2.13 is used. The usual tip on the gcc mailing list is not to attempt recreating the configures, but that doesn't work here since the configure.ins are patched by gcc322s2.zip. Some questions: - Why are all the patches in gcc322s2.zip required? I thought all modifications required for djgpp were merged into gcc mainline ages ago..? - How could this script have worked for others, if 2 autoconf versions are required. Am I missing something (again)? Main reason for compiling the thing myself is that I want to install it in a different place. Even when using autoconf 2.13 there's a problem: (unpack output) ----------- Running aclocal in /home/rob/djgpp/cross/gnu/gcc-3.22/libstdc++-v3... Running autoconf in /home/rob/djgpp/cross/gnu/gcc-3.22/gcc ... /usr/bin/m4: configure.in: 2133: ERROR: Recursion limit of 1024 exceeded, use -L to change it autoconf failed in directory /home/rob/djgpp/cross/gnu/gcc-3.22/gcc ----------- The M4 recursion limit can be fixed by removing some changequotes and escaping a few brackets in gcc/configure.in, but at that point I've already lost trust that this will be a flawless crosscompiler :) Cheers! Rob