Bug 6302 - core-image-minimal build failure on qemu mips, eglibc-2.19-r0 link error
Summary: core-image-minimal build failure on qemu mips, eglibc-2.19-r0 link error
Status: RESOLVED WORKSFORME
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 mips
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact: Costin
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-05-09 18:01 UTC by Dennis Lan
Modified: 2014-05-22 14:34 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
eglibc build full log (2.36 KB, application/x-bzip2)
2014-05-09 18:01 UTC, Dennis Lan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Lan 2014-05-09 18:01:56 UTC
Created attachment 1939 [details]
eglibc build full log

dennis@ ~/yocto/poky/build $ bitbake -c fetchall core-image-minimal
WARNING: Host distribution "Unknown" has not been validated with this version of the build system; you may possibly experience unexpected fa
ilures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |#####################################################################################################| Time: 00:01:14
Parsing of 874 .bb files complete (0 cached, 874 parsed). 1240 targets, 66 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.23.1"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Unknown"
TARGET_SYS        = "mips-poky-linux"
MACHINE           = "qemumips"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6+snapshot-20140509"
TUNE_FEATURES     = "o32 bigendian fpu-hard mips32"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:646b089c38623cebe4a6b22c6798d21453fe5257"

NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks



mips-poky-linux-gcc -meb -mabi=32 -mhard-float --sysroot=/home/dennis/yocto/poky/build/tmp/sysroots/qemumips-tcbootstrap   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld.so.1  -B/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/csu/  -Wl,--version-script=/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/libc.map -Wl,-soname=libc.so.6 -Wl,-z,relro -nostdlib -nostartfiles -e __libc_main -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/math -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/elf -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/dlfcn -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/nss -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/nis -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/rt -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/resolv -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/crypt -L/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/nptl -Wl,-rpath-link=/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/math:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/elf:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/dlfcn:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/nss:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/nis:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/rt:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/resolv:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/crypt:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/nptl -o /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/libc.so -T /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/shlib.lds /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/csu/abi-note.o /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/elf/soinit.os /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/libc_pic.os /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/elf/sofini.os /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/elf/interp.os /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/elf/ld.so -lgcc
/home/dennis/yocto/poky/build/tmp/sysroots/i686-linux/usr/libexec/mips-poky-linux.gcc-cross-initial-mips/gcc/mips-poky-linux/4.8.2/ld:/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/shlib.lds:157: syntax error
collect2: error: ld returned 1 exit status
make[2]: *** [/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/libc.so] Error 1
make[2]: Leaving directory `/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/eglibc-2.19/libc/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/eglibc-2.19/libc'
make: *** [all] Error 2
ERROR: oe_runmake failed
WARNING: /home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/temp/run.do_compile.20625:1 exit 1 from
  exit 1
Comment 1 Dennis Lan 2014-05-09 19:28:00 UTC
try to build for mips32el (little endian), passed successfully

Build Configuration:
BB_VERSION        = "1.23.1"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Unknown"
TARGET_SYS        = "mipsel-poky-linux"
MACHINE           = "qemumipsel"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6+snapshot-20140509"
TUNE_FEATURES     = "o32 fpu-hard mips32"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:646b089c38623cebe4a6b22c6798d21453fe5257"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently 4 running tasks (678 of 1820):
0: eglibc-2.19-r0 do_populate_sysroot (pid 11645)


dennis@ ~/yocto/poky/build.mipsel/tmp/work/mips32el-poky-linux/eglibc/2.19-r0 $ <master> file build-mipsel-poky-linux/libc.so               
build-mipsel-poky-linux/libc.so: ELF 32-bit LSB shared object, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x1040000, not stripped
Comment 2 Richard Purdie 2014-05-13 07:16:22 UTC
Its hard to know why this is failing. We installed a 32 bit VM and tested a build of qemumips within that and it did not fail in this way :(.

Which distribution (name/version) are you running this on? I note the build is saying its not a tested combination.

Could you also share the contents of the failing file:

/home/dennis/yocto/poky/build/tmp/work/mips32-poky-linux/eglibc/2.19-r0/build-mips-poky-linux/shlib.lds please?
Comment 3 Jessica 2014-05-22 14:34:40 UTC
Close due to lack of info.