From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21732 invoked by alias); 4 Dec 2007 22:12:51 -0000 Received: (qmail 21723 invoked by uid 22791); 4 Dec 2007 22:12:50 -0000 X-Spam-Check-By: sourceware.org Received: from secure.latencyzero.com (HELO mail.latencyzero.com) (64.71.153.217) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Dec 2007 22:12:42 +0000 Received: (qmail 14801 invoked from network); 4 Dec 2007 22:12:38 -0000 Received: from unknown (HELO rmann1.internal.xbow.com) (rmann@63.64.55.212) by 0 with ESMTPA; 4 Dec 2007 22:12:38 -0000 Cc: gcc-help@gcc.gnu.org Message-Id: From: Rick Mann To: Rask Ingemann Lambertsen In-Reply-To: <20071202144507.GW17368@sygehus.dk> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: Need help building combined gcc/binutils/newlib Date: Tue, 04 Dec 2007 22:12:00 -0000 References: <8BD833AA-8B16-4B4E-B9E7-49D6670E68C4@latencyzero.com> <20071202144507.GW17368@sygehus.dk> X-Mailer: Apple Mail (2.915) X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00102.txt.bz2 On Dec 2, 2007, at 6:45 AM, Rask Ingemann Lambertsen wrote: > On Fri, Nov 30, 2007 at 06:14:05PM -0800, Rick Mann wrote: >> I've looked at several archive messages, and many OLD instructions, >> and I still can't quite figure out how to do a combined build of GCC >> targeting xscale-elf. >> >> I need to do this from release tars. I downloaded gcc-4.2.1, >> binutils-2.18, and newlib-1.15. > > First, read >. > When running the "ln -s" commands, you want to start with the newest=20=20 > of the > packages; perhaps check the file "configure" in each package,=20=20 > because the > packages gcc, binutils, newlib, gdb, etc. keep the common files and > directories in sync. In this particular case, I think the order=20=20 > should be > binutils-2.18, gcc-4.2.1 and newlib-1.15. Thank you, seeing that message was very helpful. > The files related to libtool were upgraded between binutils-2.17 and > binutils-2.18, but the change first appears in GCC in 4.3.0 (which=20=20 > has not > been released yet). You may have to try with binutils-2.17 instead. > Alternatively, use a GCC 4.3 snapshot. If none of the above works or=20=20 > you're > desparate enough to get the combination of binutils-2.18, gcc-4.2.1=20=20 > and > newlib-1.15 working, it is necessary to use the libtool version from > gcc-4.2.1 and the libiberty version from binutils-2.18. I.e. binutils-2.17 is fine. So, I downloaded that and tried again, and got=20=20 MUCH farther, but still ran into some errors: gcc -g -O2 -c -o flat_bl.o ../../combined/gprof/flat_bl.m ../../combined/gprof/flat_bl.m:2: error: syntax error before =91%=92 token make[4]: *** [flat_bl.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-gprof] Error 2 make: *** [all] Error 2 I'm not sure what a .m file is. For Mac OS X, .m is an Objective-C=20=20 file. However, this file does not look like Objective-C to me. Not=20=20 sure what it's supposed to be. There is a .c file with the same name=20=20 in the same dir. I ran configure with: $ ../combined/configure --prefix=3D/usr/local/xscale-gcc-test --=20 target=3Dxscale-elf --enable-languages=3Dc,c++ --disable-nls --with-newlib My tools' versions (Mac OS X's Xcode 3.0): $ gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-=20 checking -enable-werror --prefix=3D/usr --mandir=3D/share/man --enable-=20 languages=3Dc,objc,c++,obj-c++ --program-transform-name=3D/^[cg][^.-]*$/s/= =20 $/-4.0/ --with-gxx-include-dir=3D/include/c++/4.0.0 --with-slibdir=3D/usr/= =20 lib --build=3Di686-apple-darwin9 --with-arch=3Dapple --with-tune=3Dgeneric = --=20 host=3Di686-apple-darwin9 --target=3Di686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5465) $ automake --version automake (GNU automake) 1.10 Written by Tom Tromey and Alexandre Duret-Lutz . Copyright 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There=20=20 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR=20=20 PURPOSE. $ autoconf --version autoconf (GNU Autoconf) 2.61 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the=20=20 terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. Thanks again for all your help so far! --=20 Rick