Re: Need help building combined gcc/binutils/newlib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 <URL:http://gcc.gnu.org/ml/gcc-help/2007-06/msg00230.html >. When running the "ln -s" commands, you want to start with the newest of the packages; perhaps check the file "configure" in each package, because the
packages gcc, binutils, newlib, gdb, etc. keep the common files and
directories in sync. In this particular case, I think the order 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 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 you're desparate enough to get the combination of binutils-2.18, gcc-4.2.1 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 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 ‘%’ 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 file. However, this file does not look like Objective-C to me. Not sure what it's supposed to be. There is a .c file with the same name in the same dir.

I ran configure with:

$ ../combined/configure --prefix=/usr/local/xscale-gcc-test -- target=xscale-elf --enable-languages=c,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- checking -enable-werror --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ $/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- host=i686-apple-darwin9 --target=i686-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 <tromey@xxxxxxxxxx>
       and Alexandre Duret-Lutz <adl@xxxxxxx>.

Copyright 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 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 terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
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!

--
Rick




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux