[yocto] poky/bernard: gcc-4.5.1 configure: error: cannot compute suffix of object files: cannot compile

Elvis Dowson elvis.dowson at gmail.com
Wed Aug 8 13:24:11 PDT 2012


Hi,
      I'm trying to get build using the bernard branch, for a PowerPC440 target, and I get a build failure for gcc-4.5.1:

NOTE: Running task 500 of 1502 (ID: 590, virtual:native:/tool/yocto/poky/meta/recipes-core/readline/readline_6.1.bb, do_install)
ERROR: Function 'do_compile' failed (see /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/temp/log.do_compile.9332 for further information)
ERROR: Logfile of failure stored in: /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/temp/log.do_compile.9332
Log data follows:
| NOTE: make -j 6 ARCH_FLAGS_FOR_TARGET=-m32 -mcpu=440  -mfpu-soft -isystem/tool/yocto/poky/build/tmp/sysroots/virtex5/usr/include
| make[1]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libdecnumber'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libdecnumber'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/zlib'
| true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-isystem/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2" "CXXFLAGS=-isystem/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2" "CFLAGS_FOR_BUILD=-isystem/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2" "CFLAGS_FOR_TARGET=-g -isystem/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-L/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-O1" "LIBCFLAGS=-isystem/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2" "LIBCFLAGS_FOR_TARGET=-g -isystem/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr" "infodir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/share/info" "libdir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib/ppc440-poky-linux.gcc-cross-initial" "prefix=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr" "tooldir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/powerpc-poky-linux" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=ld" "LIBCFLAGS=-isystem/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/zlib'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libiberty'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/intl'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/intl'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/build-x86_64-linux/libiberty'
| make[3]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/build-x86_64-linux/libiberty/testsuite'
| make[3]: Nothing to be done for `all'.
| make[3]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/build-x86_64-linux/libiberty/testsuite'
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/build-x86_64-linux/libiberty'
| make[3]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libiberty/testsuite'
| make[3]: Nothing to be done for `all'.
| make[3]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libiberty/testsuite'
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libiberty'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/build-x86_64-linux/fixincludes'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/build-x86_64-linux/fixincludes'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libcpp'
| test -f config.h || (rm -f stamp-h1 && make stamp-h1)
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/libcpp'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/fixincludes'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/fixincludes'
| make[2]: Entering directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/gcc'
| make[2]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/gcc'
| Checking multilib configuration for libgcc...
| Configuring in powerpc-poky-linux/libgcc
| configure: loading cache ./config.cache
| checking for --enable-version-specific-runtime-libs... no
| checking for a BSD-compatible install... /usr/bin/install -c
| checking for gawk... gawk
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... powerpc-poky-linux-gnu
| checking for powerpc-poky-linux-ar... powerpc-poky-linux-ar
| checking for powerpc-poky-linux-lipo... powerpc-poky-linux-lipo
| checking for powerpc-poky-linux-nm... /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/./gcc/nm
| checking for powerpc-poky-linux-ranlib... powerpc-poky-linux-ranlib
| checking for powerpc-poky-linux-strip... powerpc-poky-linux-strip
| checking whether ln -s works... yes
| checking for powerpc-poky-linux-gcc... /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/./gcc/xgcc -B/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/./gcc/ -m32 -mcpu=440  -mfpu-soft -isystem/tool/yocto/poky/build/tmp/sysroots/virtex5/usr/include -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/powerpc-poky-linux/bin/ -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/powerpc-poky-linux/lib/ -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/powerpc-poky-linux/include -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/powerpc-poky-linux/sys-include --sysroot=/tool/yocto/poky/build/tmp/sysroots/virtex5
| checking for suffix of object files... configure: error: in `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux/powerpc-poky-linux/libgcc':
| configure: error: cannot compute suffix of object files: cannot compile
| See `config.log' for more details.
| make[1]: *** [configure-target-libgcc] Error 1
| make[1]: Leaving directory `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.powerpc-poky-linux'
| make: *** [all] Error 2
| FATAL: oe_runmake failed
| ERROR: Function 'do_compile' failed (see /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1-r4/temp/log.do_compile.9332 for further information)
NOTE: package gcc-cross-initial-4.5.1-r4: task do_compile: Failed
ERROR: Task 1112 (/tool/yocto/poky/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb, do_compile) failed with exit code '1'

What should I do to get past this error?

Best regards,

Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120809/81c6ebc6/attachment.html>


More information about the yocto mailing list