Angstrom linux kernel build fails at setup

After OE is updated, it is found that Angstrom OE build system is completely reorganized. I followed http://www.angstrom-distribution.org/building-angstrom steps from scratch, but it fails in step 2 in fedora 16 environments.
MACHINE=beagleboard ./oebb.sh bitbake virtual/kernel

ccache gcc -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2 -isystem/home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,-rpath-link,…/libelf:…/libdw -L/home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/lib -L/home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath,/home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 -o elflint elflint.o …/libebl/libebl.a …/libelf/libelf.so …/lib/libeu.a -ldl
./ld: unrecognized option ‘–no-add-needed’
Try ld --help' or ld --usage’ for more information.
collect2: ld returned 64 exit status
make[2]: *** [elflint] Error 1
make[2]: *** Waiting for unfinished jobs…
rm i386_ld.o
make[2]: Leaving directory /home/tang/ProjERROR: Function failed: do_compile (see /home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/x86_64-linux/elfutils-native-0.148-r7/temp/log.do_compile.4480 for further information) ects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/x86_64-linux/elfutils-native-0.148-r7/elfutils-0.148/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/x86_64-linux/elfutils-native-0.148-r7/elfutils-0.148’
make: *** [all] Error 2
ERROR: oe_runmake failed
NOTE: package elfutils-native-0.148-r7: task do_compile: Failed
ERROR: Task 461 (virtual:native:/home/tang/Projects/OE/setup-scripts/sources/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.148.bb, do_compile) failed with exit code ‘1’
Waiting for 1 running tasks to finish:
0: python-native-2.7.2-r1.3 do_configure (pid 12981)
NOTE: package python-native-2.7.2-r1.3: task do_configure: Succeeded
NOTE: Tasks Summary: Attempted 249 tasks of which 119 didn’t need to be rerun and 1 failed.

clean elfutils rebuild it and then clean virtual/kernel and build again. But I have been noticing some different ld related errors popping up and cleaning and redoing has worked for me so far.
HTH

This is in fact old issue. But it is not fixed yet, just remove ./ in your PATH.

Wait, people actually have './' in their PATH?!?!?!

Koen Kooi wrote:

Hi

Even i have been facing the same error

Processing bitbake: Fixed to revision 7e3a99949358f4362876df5a82f8aeaae72c3c97, skipping update
Processing meta-angstrom: Current branch angstrom-v2012.12-yocto1.3 is up to date.
Processing meta-openembedded: Current branch angstrom-staging-yocto1.3 is up to date.
Processing meta-beagleboard: Current branch danny is up to date.
Processing meta-ti: Current branch angstrom-staging-yocto1.3 is up to date.
Processing meta-ettus: Fixed to revision 5a6a642f6707dc42a5210dbbf01d2bdfd869d4b0, skipping update
Processing meta-efikamx: Fixed to revision 07f2a5c777b4f866985735303bc6d696592760a9, skipping update
Processing meta-nslu2: Fixed to revision 8948458fe3ec2b3c713b2a13a87123b64e22b0d9, skipping update
Processing meta-smartphone: Current branch danny is up to date.
Processing meta-intel: Fixed to revision 98342e9e685ac8066f7fe2517fd382127a286648, skipping update
Processing meta-xilinx: Fixed to revision d196fa93c7ff5e080d4c44e2b83aed472f32b2c7, skipping update
Processing meta-openpandora: Fixed to revision bdd973321efabf9da4ac7bbc5e18ecab257841a3, skipping update
Processing meta-raspberrypi: Current branch danny is up to date.
Processing meta-handheld: Current branch danny is up to date.
Processing meta-opie: Fixed to revision c242efc6ca55772a88602f1f8f94dff697b38430, skipping update
Processing meta-java: Fixed to revision 75dee76c7cfbf1418e5c581f50bb57b3282013f7, skipping update
Processing meta-browser: Current branch angstrom-staging-yocto1.3 is up to date.
Processing meta-mono: Fixed to revision adf47f078dbf788a80ff1398a15a4fd5a334d320, skipping update
Processing meta-kde: Fixed to revision 316d9c27e72cfebc7618268f8766624ee3f5e18e, skipping update
Processing meta-linaro: Current branch danny is up to date.
Processing meta-minnow: Current branch danny is up to date.
Processing meta-allwinner: Current branch danny is up to date.
Processing meta-ros: Fixed to revision 1a6a63ef2316a45a2fa07e00907a73d33aeeb7d7, skipping update
Processing openembedded-core: Using /home/chaitra32bit/.oe/environment-angstromv2012.12 to setup needed variables. It is recommended to do ‘. /home/chaitra32bit/.oe/environment-angstromv2012.12’ and run ‘bitbake something’ without using ./oebb.sh as wrapper
Executing: MACHINE=beagleboard bitbake virtual/kernel
Loading cache…done.
Loaded 3162 entries from dependency cache.
Parsing recipes…done.
Parsing of 2649 .bb files complete (2645 cached, 4 parsed). 3168 targets, 120 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/chaitra32bit/bb/sources/meta-handheld/recipes-core/udev/udev_164.bbappend
/home/chaitra32bit/bb/sources/meta-intel/meta-fri2/recipes-core/tiny-init/tiny-init.bbappend

Build Configuration:
BB_VERSION = “1.17.0”
TARGET_ARCH = “arm”
TARGET_OS = “linux-gnueabi”
MACHINE = “beagleboard”
DISTRO = “angstrom”
DISTRO_VERSION = “v2012.12”
TUNE_FEATURES = “armv7a vfp neon cortexa8”
TARGET_FPU = “vfp-neon”
meta-angstrom = “angstrom-v2012.12-yocto1.3:b7f8207b94d9a0ece73ad212a193cb2c95bd17ee”
meta-oe
meta-systemd
meta-efl
meta-gpe
meta-gnome
meta-xfce
meta-initramfs
toolchain-layer
meta-multimedia
meta-networking
meta-webserver
meta-ruby = “angstrom-staging-yocto1.3:c24d2b6dfd00724b3182977e19a153492afe9343”
meta-kde = “master:316d9c27e72cfebc7618268f8766624ee3f5e18e”
meta-opie = “master:c242efc6ca55772a88602f1f8f94dff697b38430”
meta-java = “master:75dee76c7cfbf1418e5c581f50bb57b3282013f7”
meta-browser = “angstrom-staging-yocto1.3:011dbb273ac725e5a9e62ae36b8e538b2e9eb09c”
meta-mono = “master:adf47f078dbf788a80ff1398a15a4fd5a334d320”
meta-ros = “master:1a6a63ef2316a45a2fa07e00907a73d33aeeb7d7”
common-bsp = “danny:136a28e4d16a03ee9a5e51d6e378f1b80c618b28”
meta-ti = “angstrom-staging-yocto1.3:69132771c1332951f424beeeb54dcb70a8a73541”
meta-efikamx = “master:07f2a5c777b4f866985735303bc6d696592760a9”
meta-nslu2 = “master:8948458fe3ec2b3c713b2a13a87123b64e22b0d9”
meta-htc
meta-nokia
meta-openmoko
meta-palm = “danny:924338ee2d44987da71088da31e1cd31d3a9dfa9”
meta-handheld = “danny:d641e71a7c09cd24c72e690ad1981e49da612bcd”
meta-intel
meta-sugarbay
meta-crownbay
meta-emenlow
meta-fri2
meta-jasperforest
meta-n450 = “danny:98342e9e685ac8066f7fe2517fd382127a286648”
meta-allwinner = “danny:3603ce61c075d2f6a23dbe0bd71ee604f7eb24ea”
meta-raspberrypi = “danny:1ad98cf651054982c1a69576c1663285f0090034”
meta-minnow = “danny:182ae8dca4e29cfc9335e19a4d4c5a8511c9fcf6”
meta-linaro = “danny:e6f8003b039335f7ec75edf9a9b7a84d2d1b911a”
meta = “angstrom-staging-yocto1.3:845fa230a19c835cdb5d886b75c03df88ca30987”

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 572 of 1074 (ID: 664, /home/chaitra32bit/bb/sources/openembedded-core/meta/recipes-core/eglibc/eglibc-initial_2.16.bb, do_compile)
NOTE: Running task 599 of 1074 (ID: 494, virtual:native:/home/chaitra32bit/bb/sources/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.148.bb, do_compile)
NOTE: recipe eglibc-initial-2.16-r15+svnr20393: task do_compile: Started
NOTE: recipe elfutils-native-0.148-r11: task do_compile: Started
NOTE: recipe eglibc-initial-2.16-r15+svnr20393: task do_compile: Succeeded
NOTE: Running task 600 of 1074 (ID: 660, /home/chaitra32bit/bb/sources/openembedded-core/meta/recipes-core/eglibc/eglibc-initial_2.16.bb, do_install)
ERROR: Function failed: do_compile (see /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/temp/log.do_compile.3249 for further information)
ERROR: Logfile of failure stored in: /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/temp/log.do_compile.3249
Log data follows:

DEBUG: Executing shell function do_compile
NOTE: make -j2
make all-recursive
make[1]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148' Making all in config make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/config’
make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/config’
Making all in m4
make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/m4' make[2]: Nothing to be done for all’.
make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/m4' Making all in lib make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/lib’
make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/lib’
Making all in libelf
make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libelf' make[2]: Nothing to be done for all’.
make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libelf' Making all in libebl make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libebl’
make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libebl’
Making all in libdwfl
make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libdwfl' make[2]: Nothing to be done for all’.
make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libdwfl' Making all in libdw make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libdw’
make all-am
make[3]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libdw' make[3]: Nothing to be done for all-am’.
make[3]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libdw' make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libdw’
Making all in libcpu
make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libcpu' make[2]: Nothing to be done for all’.
make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libcpu' Making all in libasm make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libasm’
make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/libasm’
Making all in backends
make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/backends' make[2]: Nothing to be done for all’.
make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/backends' Making all in src make[2]: Entering directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/src’
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR=‘“/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/share/locale”’ -DDEBUGPRED=0 -DSRCDIR="/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/src" -DOBJDIR="/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/src" -I. -I… -I. -I. -I…/lib -I… -I./…/libelf -I./…/libebl -I./…/libdw -I./…/libdwfl -I./…/libasm -isystem/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/include -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2 -isystem/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/include -O2 -pipe -c i386_ld.c
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR=‘“/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/share/locale”’ -DDEBUGPRED=0 -DSRCDIR="/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/src" -DOBJDIR="/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/src" -I. -I… -I. -I. -I…/lib -I… -I./…/libelf -I./…/libebl -I./…/libdw -I./…/libdwfl -I./…/libasm -isystem/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/include -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wno-format -isystem/home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/include -O2 -pipe -c addr2line.c
addr2line.c: In function ‘handle_address’:
addr2line.c:450:7: error: format ‘%a’ expects argument of type ‘float *’, but argument 3 has type ‘char **’ [-Werror=format=]
if (sscanf (string, “(%a[^)])%” PRIiMAX “%n”, &name, &addr, &i) == 2
^
addr2line.c:453:7: error: format ‘%a’ expects argument of type ‘float *’, but argument 3 has type ‘char **’ [-Werror=format=]
switch (sscanf (string, “%a[^-+]%n%” PRIiMAX “%n”, &name, &i, &addr, &j))
^
cc1: all warnings being treated as errors
make[2]: *** [addr2line.o] Error 1
make[2]: *** Waiting for unfinished jobs…
rm i386_ld.o
make[2]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148’
make: *** [all] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (see /home/chaitra32bit/bb/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/temp/log.do_compile.3249 for further information)
NOTE: recipe elfutils-native-0.148-r11: task do_compile: Failed
NOTE: recipe eglibc-initial-2.16-r15+svnr20393: task do_install: Started
ERROR: Task 494 (virtual:native:/home/chaitra32bit/bb/sources/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.148.bb, do_compile) failed with exit code ‘1’
NOTE: recipe eglibc-initial-2.16-r15+svnr20393: task do_install: Succeeded
NOTE: Tasks Summary: Attempted 600 tasks of which 597 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
virtual:native:/home/chaitra32bit/bb/sources/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.148.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Any solution to this problem?

Hi,

I’m experiencing the same problem with elfutils… Any solution so far?

Cheers,
Luis