toolchain version

241 views
Skip to first unread message

aung.opensource

unread,
Aug 14, 2008, 11:34:14 AM8/14/08
to Beagle Board
hello everybody

who could please share with me the newest toolchain version for
beagleboard ? 2007q1-21 ?

thank you
aung

Matthieu Poullet

unread,
Aug 14, 2008, 11:51:30 AM8/14/08
to beagl...@googlegroups.com
Hi,

Sourcery G++ Lite 2007q3-53 for ARM EABI should be the right one:
http://www.codesourcery.com/gnu_toolchains/arm/portal/release316

Regards,
Matthieu.

Steven King

unread,
Aug 14, 2008, 12:20:49 PM8/14/08
to beagl...@googlegroups.com
On Thursday 14 August 2008 8:51:30 Matthieu Poullet wrote:
> Hi,
>
> Sourcery G++ Lite 2007q3-53 for ARM EABI should be the right one:
> http://www.codesourcery.com/gnu_toolchains/arm/portal/release316

there is also a patch to stock gcc 4.3.1 to fix the ICE with -mfpu=neon, has
anybody given that a good workout?


--
"Because you all know we'd all fit better in a padded room than a glass
house.."
Linus Torvalds

aung.opensource

unread,
Aug 14, 2008, 10:16:31 PM8/14/08
to Beagle Board
thank you for your information , i start from 2007q3-53 .

Regards
Aung

aung.opensource

unread,
Aug 16, 2008, 12:36:13 PM8/16/08
to Beagle Board
I met some problem when i build u boot by 2007q3-53 and my uboot is u-
boot_beagle_revb[1].tar.gz

error message as below , any thing i forget to do?

--start-group lib_generic/libgeneric.a cpu/
omap3/libomap3.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/
libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/
libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a drivers/
bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/
libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/
libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/
nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/
onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/
libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/
spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/
usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/
libfdt.a api/libapi.a post/libpost.a board/omap3530beagle/
libomap3530beagle.a --end-group -L /opt/arm-2007q3/bin/../lib/gcc/arm-
none-eabi/4.2.1 -lgcc -lgcc_eh \
-Map u-boot.map -o u-boot
arm-none-eabi-ld: cannot find -lgcc_eh





On 8月15日, 上午10時16分, "aung.opensource" <aung.opensou...@gmail.com>
wrote:
> > Linus Torvalds- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

John Beetem

unread,
Aug 16, 2008, 1:25:55 PM8/16/08
to Beagle Board
I'm also a newbie as far as Sourcery is concerned (< 24 hours
experience, no kernel or Uboot builds), but this might be useful:

The linker is looking for libgcc_eh.a and is failing to find it in .../
lib/gcc/arm-none-eabi/4.2.1.

I've downloaded two versions of G++ Lite:
1. arm-none-eabi 2007q3-53 is for building low-level applications
such as Uboot and Linux Kernel image that don't have an underlying
operating system.
2. arm-none-linux-gnueabi 2007q3-51 is for building Lunix
applications such as user code that runs on Ångström. I've used this
successfully for both "Hello, world" and a simple X11 application,
running on top of Koen's Ångström demo.

arm-none-eabi 2007q3-53 does not seem to have library libgcc_eh.a.
On the other hand, arm-none-linux-gnueabi 2007q3-51 does have it in
several locations.

You might try removing "-lgcc_eh" from the gcc (ld) command and see if
it's really needed by Uboot.

John

On Aug 16, 9:36 am, "aung.opensource" <aung.opensou...@gmail.com>
wrote:

Dirk Behme

unread,
Aug 16, 2008, 2:34:47 PM8/16/08
to beagl...@googlegroups.com
aung.opensource wrote:
> I met some problem when i build u boot by 2007q3-53 and my uboot is u-
> boot_beagle_revb[1].tar.gz
>
> error message as below , any thing i forget to do?
>
> --start-group lib_generic/libgeneric.a cpu/
> omap3/libomap3.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/
> libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/
> libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a drivers/
> bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/
> libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/
> libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/
> nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/
> onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/
> libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/
> spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/
> usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/
> libfdt.a api/libapi.a post/libpost.a board/omap3530beagle/
> libomap3530beagle.a --end-group -L /opt/arm-2007q3/bin/../lib/gcc/arm-
> none-eabi/4.2.1 -lgcc -lgcc_eh \
> -Map u-boot.map -o u-boot
> arm-none-eabi-ld: cannot find -lgcc_eh

arm-none-eabi is the wrong toolchain.

Did you edit U-Boot's makefile to compile with arm-none-eabi?

Just tried it, boot_beagle_revb.tar.gz compiles fine with
arm-none-linux-gnueabi-gcc.

Correct compiler is

-- cut --
> arm-none-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/paul/lite/linux/src/gcc-4.2/configure
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap
--disable-libssp --disable-libgomp --disable-libstdcxx-pch
--with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared
--enable-symvers=gnu --enable-__cxa_atexit
--with-pkgversion=CodeSourcery Sourcery G++ Lite 2007q3-51
--with-bugurl=https://support.codesourcery.com/GNUToolchain/
--disable-nls --prefix=/opt/codesourcery
--with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc
--with-build-sysroot=/scratch/paul/lite/linux/install/arm-none-linux-gnueabi/libc
--enable-poison-system-directories
--with-build-time-tools=/scratch/paul/lite/linux/install/arm-none-linux-gnueabi/bin
--with-build-time-tools=/scratch/paul/lite/linux/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)
-- cut --

Btw, better you use Steve's U-Boot git instead of
boot_beagle_revb.tar.gz. It has some fixes.

http://www.sakoman.net/cgi-bin/gitweb.cgi?p=u-boot-omap3.git;a=shortlog;h=refs/heads/test

Dirk

Dirk Behme

unread,
Aug 16, 2008, 2:40:23 PM8/16/08
to beagl...@googlegroups.com
John Beetem wrote:
> I'm also a newbie as far as Sourcery is concerned (< 24 hours
> experience, no kernel or Uboot builds), but this might be useful:
>
> The linker is looking for libgcc_eh.a and is failing to find it in .../
> lib/gcc/arm-none-eabi/4.2.1.
>
> I've downloaded two versions of G++ Lite:
> 1. arm-none-eabi 2007q3-53 is for building low-level applications
> such as Uboot and Linux Kernel image that don't have an underlying
> operating system.

From technology point of view, this is correct. But for Beagle you
don't need this. We build everything (U-Boot, Kernel and user space)
with arm-none-linux-gnueabi and this is fine. So you don't need
arm-none-eabi.

> 2. arm-none-linux-gnueabi 2007q3-51

Use this for everything (U-Boot, kernel and apps).

> is for building Lunix
> applications such as user code that runs on Ångström. I've used this
> successfully for both "Hello, world" and a simple X11 application,
> running on top of Koen's Ångström demo.
>
> arm-none-eabi 2007q3-53 does not seem to have library libgcc_eh.a.
> On the other hand, arm-none-linux-gnueabi 2007q3-51 does have it in
> several locations.
>
> You might try removing "-lgcc_eh" from the gcc (ld) command and see if
> it's really needed by Uboot.

Better use arm-none-linux-gnueabi. Will be easier unless you are
interested in U-Boot optimization.

Dirk

John Beetem

unread,
Aug 16, 2008, 3:34:16 PM8/16/08
to Beagle Board
Dirk,

Thank you for clearing this up.

I was mislead by the 2nd post in this topic and also by the
BeagleBoard Wiki
http://elinux.org/BeagleBoard#Compiler which recommends 2007q3-53
(which is bare-metal EABI) instead of 2007q3-51 (Linux/GNU EABI).

John

Dirk Behme

unread,
Aug 16, 2008, 3:43:54 PM8/16/08
to beagl...@googlegroups.com
John Beetem wrote:
> Dirk,
>
> Thank you for clearing this up.
>
> I was mislead by the 2nd post in this topic and also by the
> BeagleBoard Wiki
> http://elinux.org/BeagleBoard#Compiler

It talks about "ARM GNU/Linux tool chain"

> which recommends 2007q3-53
> (which is bare-metal EABI) instead of 2007q3-51 (Linux/GNU EABI).

Thanks for the hint, I never looked so detailed at the 5x numbers ;)

Wiki want to say "use ARM GNU/Linux tool chain 2007q3 version".

Do you like to correct this?

Dirk

John Beetem

unread,
Aug 16, 2008, 3:49:53 PM8/16/08
to Beagle Board
I've never done Wiki updates, and I'd rather leave it to someone who
has had more than just a few hours of experience with Sourcery :-)

mpoullet

unread,
Aug 16, 2008, 7:05:11 PM8/16/08
to Beagle Board
Hi,

sorry I've made the mistake in the second post, so I've fixed the
Wiki.

Regards,
Matthieu.

opensource Aung

unread,
Aug 17, 2008, 5:16:49 AM8/17/08
to beagl...@googlegroups.com
Dear All
 
thank you , I solve it now.
 
Regards
Aung

 
2008/8/17, mpoullet <matthieu...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages