Bug 6608 - wrong SDKTARGETSYSROOT for ppce500v2 cross toolchain
Summary: wrong SDKTARGETSYSROOT for ppce500v2 cross toolchain
Status: CLOSED DUPLICATE of bug 6766
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.7
Assignee: Richard Purdie
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-08-04 16:11 UTC by Alexandru Georgescu
Modified: 2014-09-29 13:04 UTC (History)
4 users (show)

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


Attachments
config log (33.24 KB, application/octet-stream)
2014-08-04 16:17 UTC, Alexandru Georgescu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2014-08-04 16:11:48 UTC
poky: 2d1660112e54653f7bb763939d0416472c49fe01
cross TC used: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7_M2.rc1/toolchain/x86_64/poky-eglibc-x86_64-core-image-sato-ppce500v2-toolchain-1.6+snapshot.sh


When configuring sudoku-savant: http://sourceforge.net/projects/sudoku-savant/files/sudoku-savant/sudoku-savant-1.3/ I have the following err when doing configure:

configure:2605: powerpc-poky-linux-g++  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=##SDKTARGETSYSROOT## -V >&5
powerpc-poky-linux-g++: error: unrecognized command line option '-V'
powerpc-poky-linux-g++: fatal error: no input files

Detailed log here: http://pastebin.com/nB5WNKXq


STEPS TO REPRODUCE
1. download sudoku and extract it.
2. download cross tc for ppce500v2, extract and source the env
3. build sudoku:


[fed@fed sudoku-savant-1.3]$ source ../sdk-ppc5/environment-setup-ppce500v2-poky-linux
[fed@fed sudoku-savant-1.3]$ ./configure $CONFIGURE_FLAGS
configure: WARNING: unrecognized options: --with-libtool-sysroot
configure: loading site script /run/media/fed/big/work/7m2rc1/tc/sdk-ppc5/site-config-ppce500v2-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... /usr/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... 
configure: error: in `/run/media/fed/big/work/7m2rc1/tc/sudoku-savant-1.3':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
[fed@fed sudoku-savant-1.3]$


OTHER COMMENTS
The export in environment-setup-ppce500v2-poky-linux file is wrong for the SDKTARGETSYSROOT variable. There should be a real link to the sysroot:

export SDKTARGETSYSROOT=##SDKTARGETSYSROOT##
Comment 1 Alexandru Georgescu 2014-08-04 16:17:39 UTC
Created attachment 2071 [details]
config log
Comment 3 Alexandru Georgescu 2014-09-24 10:59:15 UTC
Mihai,
Can you verify this on the current weekly build?
Comment 4 Mihail Stanciu 2014-09-29 13:03:52 UTC
Bug is present. Ke Zou has submitted a new bug that includes this one's problems (bug 6766).
Marking this as duplicate.

*** This bug has been marked as a duplicate of bug 6766 ***
Comment 5 Mihail Stanciu 2014-09-29 13:04:17 UTC
Closing.