[OE-core] [PATCH 3/3] gcc: enable multilib for target gcc

Richard Purdie richard.purdie at linuxfoundation.org
Fri Jan 11 15:26:59 UTC 2013


On Fri, 2013-01-11 at 15:20 +0000, Richard Purdie wrote:
> On Wed, 2013-01-09 at 11:00 +0200, Constantin Musca wrote:
> > - add a task to setup multilib configuration for target gcc
> > - this commit adapts Nitin Kamble's work to gcc 4.7
> > 
> > Tests:
> > root at qemux86-64:~# gcc -m64 t.c -o t
> > root at qemux86-64:~# file t
> > t: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
> > root at qemux86-64:~# ./t
> > Hello World !
> > root at qemux86-64:~# gcc -m32 t.c -o t
> > root at qemux86-64:~# file t
> > t: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
> > root at qemux86-64:~# ./t
> > Hello World !
> > 
> > [YOCTO #1369]
> > 
> > Signed-off-by: Constantin Musca <constantinx.musca at intel.com>
> > ---
> >  meta/recipes-devtools/gcc/gcc-4.7.inc              |   2 +-
> >  meta/recipes-devtools/gcc/gcc-common.inc           |  23 ++++
> >  meta/recipes-devtools/gcc/gcc-configure-common.inc |   2 +-
> >  meta/recipes-devtools/gcc/gcc-configure-target.inc |   1 +
> >  meta/recipes-devtools/gcc/gcc-multilib-config.inc  | 132 +++++++++++++++++++++
> >  meta/recipes-devtools/gcc/libgcc_4.7.bb            |  44 +++++++
> >  6 files changed, 202 insertions(+), 2 deletions(-)
> >  create mode 100644 meta/recipes-devtools/gcc/gcc-multilib-config.inc
> 
> This triggered some build failures:
> 
> http://autobuilder.yoctoproject.org:8010/builders/nightly-mips/builds/769/steps/shell_29/logs/stdio

and a different more subtle issue in:

http://autobuilder.yoctoproject.org:8010/builders/nightly-x86-64-lsb/builds/191/steps/shell_29/logs/stdio

which I suspect is related since a build of master just before this
without the patch worked.

Cheers,

Richard





More information about the Openembedded-core mailing list