Bug 3694 - gcc-cross-initial do_compile fails
Summary: gcc-cross-initial do_compile fails
Status: RESOLVED NOTABUG
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.2.2
Hardware: x86 x86_64
: Medium normal
Target Milestone: 1.2.2
Assignee: Scott Garman
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-01-09 12:17 UTC by Alexandru Palalau
Modified: 2013-01-14 17:10 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
compile log for gcc-cross-initial (7.37 KB, application/octet-stream)
2013-01-09 12:17 UTC, Alexandru Palalau
no flags Details
poky/denzil/tmp/work/x86_64_x32-poky-linux-gnux32/gcc-cross-initial-4.6.3+svnr184847-r29/gcc-4_6-branch/build.x86_64-linux.x86_64-poky-linux-gnux32/x86_64-poky-linux-gnux32/libgcc/config.log (23.36 KB, text/x-log)
2013-01-09 14:26 UTC, Alexandru Palalau
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Palalau 2013-01-09 12:17:02 UTC
Created attachment 1002 [details]
compile log for gcc-cross-initial

/poky/meta/recipes-devtools/gcc/gcc-cross-initial_4.6.bb, do_compile) failed with exit code '1'
Branch: denzil
Commit ID: 3456295898bf157e40ea1f8c335f0b7285d3d8a7
Extra local.conf atributes:
MACHINE ??= "qemux86-64"
DEFAULTTUNE = "x86-64-x32"
---------------------------

OE Build Configuration:
BB_VERSION        = "1.15.2"
TARGET_ARCH       = "x86_64"
TARGET_OS         = "linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.2.2"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta              
meta-yocto        = "(nobranch):3456295898bf157e40ea1f8c335f0b7285d3d8a7"


Attached, the error log file.
Comment 1 Richard Purdie 2013-01-09 13:42:22 UTC
The log says "See `config.log' for more details." Could you include the failed config.log please?
Comment 2 Alexandru Palalau 2013-01-09 14:26:01 UTC
Created attachment 1003 [details]
poky/denzil/tmp/work/x86_64_x32-poky-linux-gnux32/gcc-cross-initial-4.6.3+svnr184847-r29/gcc-4_6-branch/build.x86_64-linux.x86_64-poky-linux-gnux32/x86_64-poky-linux-gnux32/libgcc/config.log
Comment 3 Richard Purdie 2013-01-09 14:55:55 UTC
So to summarise, the failed command is:

configure:3268: /home/zeeblex/poky/denzil/tmp/work/x86_64_x32-poky-linux-gnux32/gcc-cross-initial-4.6.3+svnr184847-r29/gcc-4_6-branch/build.x86_64-linux.x86_64-poky-linux-gnux32/./gcc/xgcc -B/home/zeeblex/poky/denzil/tmp/work/x86_64_x32-poky-linux-gnux32/gcc-cross-initial-4.6.3+svnr184847-r29/gcc-4_6-branch/build.x86_64-linux.x86_64-poky-linux-gnux32/./gcc/ -mx32  -isystem/home/zeeblex/poky/denzil/tmp/sysroots/qemux86-64/usr/include -B/home/zeeblex/poky/denzil/tmp/sysroots/x86_64-linux/usr/x86_64-poky-linux-gnux32/bin/ -B/home/zeeblex/poky/denzil/tmp/sysroots/x86_64-linux/usr/x86_64-poky-linux-gnux32/lib/ -isystem /home/zeeblex/poky/denzil/tmp/sysroots/x86_64-linux/usr/x86_64-poky-linux-gnux32/include -isystem /home/zeeblex/poky/denzil/tmp/sysroots/x86_64-linux/usr/x86_64-poky-linux-gnux32/sys-include --sysroot=/home/zeeblex/poky/denzil/tmp/sysroots/qemux86-64   -c -g -Os  conftest.c >&5

With the error:

cc1: error: unrecognized command line option '-mx32'

Which tests are you running for this and was x32 designed to run on denzil without the x32 layer? I think later releases of the project removed the need for the layer but this one might need it?
Comment 4 Saul Wold 2013-01-10 15:46:00 UTC
Please add meta-x32 to your bblayers and try this test again, as Richard points out you are not using the correct layer which was still required in 1.2
Comment 5 Alexandru Palalau 2013-01-14 10:20:22 UTC
Added the meta-x32 layer.
The behavior cannot be reproduced.
Comment 6 Scott Garman 2013-01-14 17:10:31 UTC
Sounds like this is NOTABUG then. If the issue can be demonstrated to happen again when using the meta-x32 layer, feel free to reopen this bug.