[yocto] poky/bernard: gcc-4.5.1 configure: error: cannot compute suffix of object files: cannot compile
Khem Raj
raj.khem at gmail.com
Wed Aug 8 14:23:35 PDT 2012
Elvis
I think gcc 4.6 is retired in toolchain-layer in meta-openembedded
repo. I think first thing
I would suggest is use that layer and use gcc 4.6 this might work
better. I think 4.6 should still
work with master or we can kind of fix it if need be.
Then if you are still unlucky then use 4.5.1
Thanks
-Khem
On Wed, Aug 8, 2012 at 1:24 PM, Elvis Dowson <elvis.dowson at gmail.com> wrote:
> 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
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
More information about the yocto
mailing list