Re: 4.8 cross compiler help needed

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

 



On 04/16/2013 01:48 PM, NeonJohn wrote:


On 04/16/2013 02:26 AM, Ian Lance Taylor wrote:
On Mon, Apr 15, 2013 at 4:05 PM, NeonJohn <jgd@xxxxxxxxxxxxx> wrote:

I have successfully compiled 4.8 for my native system, Ubuntu Linux.
Now I'm trying to build a cross compiler to generate ARM code for the
Beagle Bone.  Having a few problems.

Thank you for including the config.log file.  The relevant error is:

/usr/bin/as: unrecognized option '-meabi=5'

Before building a cross-compiler, you need to build a cross-assembler.
  It looks like you have not done that.

Thanks for your reply, Ian.  I have the binaries for the 4.6 ARM
cross-compiler on this machine.  There is a arm-linux-gnueabi-as file in
/usr/bin.  Can I not use that assembler?  If so, how to tell configure?

If that doesn't work could you point me in the right direction for
building the assembler?  That's totally uncharted waters for me.
Googling didn't help much.

Thanks
John



You use this configure command for GCC:

./configure  --build=arm-angstrom-linux-gnueabi
--host=arm-angstrom-linux-gnueabi --prefix=/usr/arm-linux-gnueabi-4.8
-bindir=/usr/local/bin --disable-fortran --disable-java --disable-lto
--disable-objc -enable-neon

For a cross-compiler you normally specify a --target. So maybe the command should look like this:

path/to/gcc/source/configure --target=arm-angstrom-linux-gnueabi --prefix=/opt/arm-linux-gnueabi-4.8 --disable-fortran --disable-java --disable-lto --disable-objc -enable-neon

Do not build in the source tree.

To build the Binutils you may use this:

path/to/binutils/source/configure --target=arm-angstrom-linux-gnueabi --disable-werror --prefix=/opt/arm-linux-gnueabi-4.8

Make sure that the new Binutils are in your path before you build GCC.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@xxxxxxxxxxxxxxxxxx
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




[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