public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rick Mann <rmann@latencyzero.com>
To: Rask Ingemann Lambertsen <rask@sygehus.dk>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Need help building combined gcc/binutils/newlib
Date: Tue, 04 Dec 2007 22:12:00 -0000	[thread overview]
Message-ID: <C08359D2-FEEE-4061-9901-0002E9167204@latencyzero.com> (raw)
In-Reply-To: <20071202144507.GW17368@sygehus.dk>


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@redhat.com>
        and Alexandre Duret-Lutz <adl@gnu.org>.

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


  reply	other threads:[~2007-12-04 22:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-01  2:14 Rick Mann
2007-12-02 14:45 ` Rask Ingemann Lambertsen
2007-12-04 22:12   ` Rick Mann [this message]
2007-12-04 23:55     ` Rask Ingemann Lambertsen
2007-12-05  0:02       ` Rick Mann
2007-12-05  0:39         ` Rask Ingemann Lambertsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C08359D2-FEEE-4061-9901-0002E9167204@latencyzero.com \
    --to=rmann@latencyzero.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=rask@sygehus.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).