Bug 2958

Summary: sudoku-savant configuration failure using ppc toolchain
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Laurentiu Serban <laurentiu.serban>
Component: devtools / tool chainAssignee: Constantin Musca <constantinx.musca>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, alexandru.damian, jessica.zhang, laurentiu.palcu, liang.li2, meta.mr.watcher, meta.watcher, poky.adt.watcher, poky.watcher, yi.zhao
Version: 1.3   
Target Milestone: 1.3 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
config.log none

Description Laurentiu Serban 2012-08-16 20:44:09 UTC
Created attachment 693 [details]
config.log

Using 
http://autobuilder.yoctoproject.org/pub/nightly/20120810-2/toolchain/x86_64/poky-eglibc-x86_64-powerpc-toolchain-gmae-1.2+snapshot-20120810.sh 
to build:
 http://sourceforge.net/projects/sudoku-savant/files/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2/download 

got an error at configuration step.

checking for style of include used by make... GNU
checking for C++ compiler default output file name...
configure: error: in `/home/lserban/toolchain_ppc/sysroots/ppc603e-poky-linux/sudoku-savant-1.3':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

config.log attached
Comment 1 liang li 2012-08-20 07:02:18 UTC
(In reply to comment #0)
> Created attachment 693 [details]
> config.log
> 
> Using 
> http://autobuilder.yoctoproject.org/pub/nightly/20120810-2/toolchain/x86_64/
> poky-eglibc-x86_64-powerpc-toolchain-gmae-1.2+snapshot-20120810.sh 
> to build:
>  http://sourceforge.net/projects/sudoku-savant/files/sudoku-savant/sudoku-
> savant-1.3/sudoku-savant-1.3.tar.bz2/download 
> 
> got an error at configuration step.
> 
> checking for style of include used by make... GNU
> checking for C++ compiler default output file name...
> configure: error: in
> `/home/lserban/toolchain_ppc/sysroots/ppc603e-poky-linux/sudoku-savant-1.3':
> configure: error: C++ compiler cannot create executables
> See `config.log' for more details.
> 
> config.log attached

this not met,following is the output :

 ./configure ${CONFIGURE_FLAGS}
configure: WARNING: unrecognized options: --with-libtool-sysroot
configure: loading site script /opt/poky/1.2+snapshot/site-config-ppc603e-poky-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-poky-linux-strip... powerpc-poky-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux accepts -g... yes
checking dependency style of powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux... gcc3
checking for library containing strerror... none required
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux accepts -g... (cached) yes
checking dependency style of powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux... (cached) gcc3
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux
checking whether we are using the GNU C compiler... yes
checking whether powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux accepts -g... yes
checking for powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux option to accept ISO C89... none needed
checking dependency style of powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux... gcc3
checking how to run the C++ preprocessor... powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... (cached) yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... x86_64-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for ld used by GCC... powerpc-poky-linux-ld  --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux
checking if the linker (powerpc-poky-linux-ld  --sysroot=/opt/poky/1.2+snapshot/sysroots/ppc603e-poky-linux) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for powerpc-poky-linux-pkg-config... no
checking for pkg-config... /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... yes
checking for working g++ template repository... yes
checking whether compiler understands -Wextra... yes
checking whether compiler understands --param max-inline-insns-single... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating sudoku-savant.desktop
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure: WARNING: unrecognized options: --with-libtool-sysroot

------------------------

steps:
1.run "sudo ./poky-eglibc-x86_64-powerpc-toolchain-gmae-1.2+snapshot-20120810.sh".
2.run "source /opt/poky/1.2+snapshot/environment-setup-ppc603e-poky-linux".
3. in sudoku dir, run "./configure ${CONFIGURE_FLAGS}".
Comment 2 Jessica 2012-09-14 14:27:38 UTC
Bump to medium+ since it falls into the general toolchain issus in 1.3 that must be fixed
Comment 3 Laurentiu Palcu 2012-09-20 14:45:22 UTC
Some symlinks were not relocated. The fixes for #3090 fix this too.

*** This bug has been marked as a duplicate of bug 3090 ***
Comment 4 Alexandru Georgescu 2012-10-15 08:01:03 UTC
Couldn't reproduce anymore with RC4: c9de24d3f4845251b01e2eab0aeeb7472badc5bb