Building gcc using OpenEmbedded problems

Trevor Hickey trevorhickey3@gmail.com
Fri Jan 13 10:02:00 GMT 2012


Hello,

I am using OpenEmbedded to build a toolchain for an embedded system
and am running into trouble when it comes to building gcc.

Bitbake/OpenEmbedded config:
BB_VERSION        = "1.10.2"
METADATA_BRANCH   = "master"
METADATA_REVISION = "8e7ed36"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "mini6410"
DISTRO            = "angstrom"
DISTRO_VERSION    = "v2012.01"
TARGET_FPU        = "hard"

I followed the instructions on
http://www.openembedded.org/wiki/Getting_started to set up my
OpenEmbedded environment.

Here is the error output:

/home/balute/tmp/sysroots/i686-linux/usr/armv6/arm-angstrom-linux-gnueabi/bin/ld:
error: emutls_s.o uses VFP register arguments, ./libgcc_s.so.1.tmp
does not

/home/balute/tmp/sysroots/i686-linux/usr/armv6/arm-angstrom-linux-gnueabi/bin/ld:
failed to merge target specific data of file emutls_s.o

/home/balute/tmp/sysroots/i686-linux/usr/armv6/arm-angstrom-linux-gnueabi/bin/ld:
error: /home/balute/tmp/work/i686-armv6-sdk-angstrom-linux-gnueabi/gcc-cross-sdk-4.5-r38.2+svnr170880/gcc-4_5-branch/build.i686-linux.arm-angstrom-linux-gnueabi/./gcc/crtendS.o
uses VFP register arguments, ./libgcc_s.so.1.tmp does not

/home/balute/tmp/sysroots/i686-linux/usr/armv6/arm-angstrom-linux-gnueabi/bin/ld:
failed to merge target specific data of file
/home/balute/tmp/work/i686-armv6-sdk-angstrom-linux-gnueabi/gcc-cross-sdk-4.5-r38.2+svnr170880/gcc-4_5-branch/build.i686-linux.arm-angstrom-linux-gnueabi/./gcc/crtendS.o

collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory
`/home/balute/tmp/work/i686-armv6-sdk-angstrom-linux-gnueabi/gcc-cross-sdk-4.5-r38.2+svnr170880/gcc-4_5-branch/build.i686-linux.arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory
`/home/balute/tmp/work/i686-armv6-sdk-angstrom-linux-gnueabi/gcc-cross-sdk-4.5-r38.2+svnr170880/gcc-4_5-branch/build.i686-linux.arm-angstrom-linux-gnueabi'
make: *** [all] Error 2
FATAL: oe_runmake failed
ERROR: Function do_compile failed

Full output is here: http://pastebin.com/bbZtFQkp

The "VFP register arguments" and "failed to merge target" errors occur
repeatedly.

I have been unsuccessful trying to solve this problem so far, so if
anyone knows what could be causing it, any help would be appreciated.
I'm sorry if this is not the place to be asking this, but it looks
like a gcc compilation issue rather than an OpenEmbedded/Bitbake
issue.

Trevor Hickey



More information about the Gcc-help mailing list