All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!
@ 2015-03-31  7:21 ad me
  2015-03-31 12:19 ` Matt Madison
  0 siblings, 1 reply; 7+ messages in thread
From: ad me @ 2015-03-31  7:21 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 6583 bytes --]

All,

We have been observing this bug for many weeks now, hoping the dizzy build
will be updated to fix this. It looks like it is not getting any attention.
Please help!
Any quick solution while waiting for a git repository fix?

There is a problem with this “dizzy” toolchain. though the environment
above shows this board used hard-float VFP, it looks like soft float is
used somewhere and __ARM_PCS_VFP is not defined.

Here is the version of gcc set up by the environment above:

+++++++++++++++++++++++++++++++++OUTPUT+++++++++++++++++++++++++++++++++++++

aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
arm-poky-linux-gnueabi-gcc -v

Using built-in specs.

COLLECT_GCC=arm-poky-linux-gnueabi-gcc

COLLECT_LTO_WRAPPER=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/lto-wrapper

Target: arm-poky-linux-gnueabi

Configured with:
/home/aseema/myyocto/fsl-community-bsp/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/configure
--build=x86_64-linux --host=x86_64-pokysdk-linux
--target=arm-poky-linux-gnueabi
--prefix=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr
--exec_prefix=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr
--bindir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
--sbindir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
--libexecdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi
--datadir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share
--sysconfdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/etc
--sharedstatedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/com
--localstatedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/var
--libdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi
--includedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/include
--oldincludedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/include
--infodir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share/info
--mandir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share/man
--disable-silent-rules --disable-dependency-tracking
--with-libtool-sysroot=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux
--with-gnu-ld --enable-shared --enable-languages=c,c++
--enable-threads=posix --enable-multilib --enable-c99 --enable-long-long
--enable-symvers=gnu --enable-libstdcxx-pch
--program-prefix=arm-poky-linux-gnueabi- --without-local-prefix
--enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap
--disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu
--enable-linker-build-id --with-ppl=no --with-cloog=no
--enable-checking=release --enable-cheaders=c_global
--with-gxx-include-dir=/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/c++/4.9.1
--with-build-time-tools=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin
--with-sysroot=/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
--with-build-sysroot=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual
--enable-poison-system-directories
--with-mpfr=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux
--with-mpc=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux
--enable-nls --with-arch=armv7-a

Thread model: posix

gcc version 4.9.1 (GCC)

aseema@en4078926linux
:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Now trying to compile the simple “Hello World!” above I get:

+++++++++++++++++++++++++++++++++OUTPUT+++++++++++++++++++++++++++++++++++++

aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
ls -l

total 4

-rw-rw-r-- 1 aseema aseema 80 Mar 30 22:36 hello_arm_world.c

aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
arm-poky-linux-gnueabi-gcc hello_arm_world.c

In file included from
/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/features.h:389:0,

                from
/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdio.h:27,

                from hello_arm_world.c:1:

/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29:
fatal error: gnu/stubs-soft.h: No such file or directory

# include <gnu/stubs-soft.h>

                            ^

compilation terminated.

aseema@en4078926linux
:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

If you go to , you will notice that it is checking for “#if !defined
__ARM_PCS_VFP”.

This somehow is not defined.

Even when I try to hack it by putting “#define  __ARM_PCS_VFP 1” at the top
of my , I get the linker error below, which implies intermediate files were
built with __ARM_PCS_VFP not defined.

+++++++++++++++++++++++++++++++++OUTPUT+++++++++++++++++++++++++++++++++++++

aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
arm-poky-linux-gnueabi-gcc hello_arm_world.c

/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld:
error: a.out uses VFP register arguments, /tmp/ccKo5YRb.o does not

/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld:
failed to merge target specific data of file /tmp/ccKo5YRb.o

collect2: error: ld returned 1 exit status

aseema@en4078926linux
:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

We have been observing this bug for many weeks now, hoping the dizzy build
will be updated to fix this. It looks like it is not getting any attention.
Please help!

Any quick solution while waiting for a git repository fix?

Full step by step document to reproduce this here.
<https://docs.google.com/document/d/1GP1X2MatDEZIDo0uHK6jAfD_jiPgLVkTXNAMCkwCDyA/edit?usp=sharing>
+++++++++++++++++END OF DOCUMENT++++++++++++++++

Thanks,

Ad.
.........................

[-- Attachment #2: Type: text/html, Size: 15608 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!
  2015-03-31  7:21 Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now! ad me
@ 2015-03-31 12:19 ` Matt Madison
  2015-03-31 14:26   ` ad me
  0 siblings, 1 reply; 7+ messages in thread
From: Matt Madison @ 2015-03-31 12:19 UTC (permalink / raw)
  To: ad me; +Cc: meta-freescale

On Tue, 2015-03-31 at 00:21 -0700, ad me wrote:
> All,
> 
> 
> We have been observing this bug for many weeks now, hoping the dizzy
> build will be updated to fix this. It looks like it is not getting any
> attention. Please help! 
> 
> Any quick solution while waiting for a git repository fix?
> 
> 
> 
> There is a problem with this “dizzy” toolchain. though the environment
> above shows this board used hard-float VFP, it looks like soft float
> is used somewhere and __ARM_PCS_VFP is not defined.

You probably aren't invoking the compiler with the set of command-line
options you need to get the desired output.  See the definition of the
CC environment variable in the environment-setup script in the SDK, and
make sure you use the same set of flags to invoke gcc.

-Matt


> 
> 
> Here is the version of gcc set up by the environment above:
> 
> 
> +++++++++++++++++++++++++++++++++OUTPUT
> +++++++++++++++++++++++++++++++++++++
> 
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$ arm-poky-linux-gnueabi-gcc -v
> 
> Using built-in specs.
> 
> COLLECT_GCC=arm-poky-linux-gnueabi-gcc
> 
> COLLECT_LTO_WRAPPER=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/lto-wrapper
> 
> Target: arm-poky-linux-gnueabi
> 
> Configured
> with: /home/aseema/myyocto/fsl-community-bsp/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi --prefix=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --sbindir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --libexecdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi --datadir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi --includedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-gxx-include-dir=/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/c++/4.9.1 --with-build-time-tools=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin --with-sysroot=/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi --with-build-sysroot=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual --enable-poison-system-directories --with-mpfr=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --enable-nls --with-arch=armv7-a
> 
> Thread model: posix
> 
> gcc version 4.9.1 (GCC) 
> 
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> Now trying to compile the simple “Hello World!” above I get:
> 
> 
> +++++++++++++++++++++++++++++++++OUTPUT
> +++++++++++++++++++++++++++++++++++++
> 
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$ ls -l
> 
> total 4
> 
> -rw-rw-r-- 1 aseema aseema 80 Mar 30 22:36 hello_arm_world.c
> 
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$ arm-poky-linux-gnueabi-gcc hello_arm_world.c
> 
> In file included
> from /opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/features.h:389:0,
> 
>                 from /opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdio.h:27,
> 
>                 from hello_arm_world.c:1:
> 
> /opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
> 
> # include <gnu/stubs-soft.h>
> 
>                             ^
> 
> compilation terminated.
> 
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> If you go to , you will notice that it is checking for “#if !defined
> __ARM_PCS_VFP”.
> 
> This somehow is not defined. 
> 
> Even when I try to hack it by putting “#define  __ARM_PCS_VFP 1” at
> the top of my , I get the linker error below, which implies
> intermediate files were built with __ARM_PCS_VFP not defined.
> 
> 
> +++++++++++++++++++++++++++++++++OUTPUT
> +++++++++++++++++++++++++++++++++++++
> 
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$ arm-poky-linux-gnueabi-gcc hello_arm_world.c
> 
> /opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: error: a.out uses VFP register arguments, /tmp/ccKo5YRb.o does not
> 
> /opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: failed to merge target specific data of file /tmp/ccKo5YRb.o
> 
> collect2: error: ld returned 1 exit status
> 
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> We have been observing this bug for many weeks now, hoping the dizzy
> build will be updated to fix this. It looks like it is not getting any
> attention. Please help! 
> 
> Any quick solution while waiting for a git repository fix?
> 
> 
> 
> Full step by step document to reproduce this here.
> +++++++++++++++++END OF DOCUMENT++++++++++++++++
> 
> 
> 
> Thanks,
> 
> 
> Ad.
> .........................
> 
> 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!
  2015-03-31 12:19 ` Matt Madison
@ 2015-03-31 14:26   ` ad me
  2015-03-31 14:46     ` Matt Madison
  0 siblings, 1 reply; 7+ messages in thread
From: ad me @ 2015-03-31 14:26 UTC (permalink / raw)
  To: Matt Madison; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 7854 bytes --]

On Mar 31, 2015 5:19 AM, "Matt Madison" <matt@madison.systems> wrote:
>
> On Tue, 2015-03-31 at 00:21 -0700, ad me wrote:
> > All,
> >
> >
> > We have been observing this bug for many weeks now, hoping the dizzy
> > build will be updated to fix this. It looks like it is not getting any
> > attention. Please help!
> >
> > Any quick solution while waiting for a git repository fix?
> >
> >
> >
> > There is a problem with this “dizzy” toolchain. though the environment
> > above shows this board used hard-float VFP, it looks like soft float
> > is used somewhere and __ARM_PCS_VFP is not defined.
>
> You probably aren't invoking the compiler with the set of command-line
> options you need to get the desired output.  See the definition of the
> CC environment variable in the environment-setup script in the SDK, and
> make sure you use the same set of flags to invoke gcc.
>
> -Matt

Please see the step by step in the document attached/linked.
The same one you highlighted on.

I source this script just before invoking the compiler. Which means the CC
parameters are passed in as shown.

Unless if you are suggesting that doing a "source" of the environment
script is not enough?

If so, then I would not be able to invoke the correct compiler as the PATH
to it is setup by the same environment script I source.

-Ad.

>
>
> >
> >
> > Here is the version of gcc set up by the environment above:
> >
> >
> > +++++++++++++++++++++++++++++++++OUTPUT
> > +++++++++++++++++++++++++++++++++++++
> >
> > aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
arm-poky-linux-gnueabi-gcc -v
> >
> > Using built-in specs.
> >
> > COLLECT_GCC=arm-poky-linux-gnueabi-gcc
> >
> >
COLLECT_LTO_WRAPPER=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/lto-wrapper
> >
> > Target: arm-poky-linux-gnueabi
> >
> > Configured
> > with:
/home/aseema/myyocto/fsl-community-bsp/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/configure
--build=x86_64-linux --host=x86_64-pokysdk-linux
--target=arm-poky-linux-gnueabi
--prefix=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr
--exec_prefix=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr
--bindir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
--sbindir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
--libexecdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi
--datadir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share
--sysconfdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/etc
--sharedstatedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/com
--localstatedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/var
--libdir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi
--includedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/include
--oldincludedir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/include
--infodir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share/info
--mandir=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share/man
--disable-silent-rules --disable-dependency-tracking
--with-libtool-sysroot=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux
--with-gnu-ld --enable-shared --enable-languages=c,c++
--enable-threads=posix --enable-multilib --enable-c99 --enable-long-long
--enable-symvers=gnu --enable-libstdcxx-pch
--program-prefix=arm-poky-linux-gnueabi- --without-local-prefix
--enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap
--disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu
--enable-linker-build-id --with-ppl=no --with-cloog=no
--enable-checking=release --enable-cheaders=c_global
--with-gxx-include-dir=/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/c++/4.9.1
--with-build-time-tools=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin
--with-sysroot=/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
--with-build-sysroot=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual
--enable-poison-system-directories
--with-mpfr=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux
--with-mpc=/home/aseema/myyocto/fsl-community-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux
--enable-nls --with-arch=armv7-a
> >
> > Thread model: posix
> >
> > gcc version 4.9.1 (GCC)
> >
> > aseema@en4078926linux
:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> >
> >
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> >
> > Now trying to compile the simple “Hello World!” above I get:
> >
> >
> > +++++++++++++++++++++++++++++++++OUTPUT
> > +++++++++++++++++++++++++++++++++++++
> >
> > aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
ls -l
> >
> > total 4
> >
> > -rw-rw-r-- 1 aseema aseema 80 Mar 30 22:36 hello_arm_world.c
> >
> > aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
arm-poky-linux-gnueabi-gcc hello_arm_world.c
> >
> > In file included
> > from
/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/features.h:389:0,
> >
> >                 from
/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdio.h:27,
> >
> >                 from hello_arm_world.c:1:
> >
> >
/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29:
fatal error: gnu/stubs-soft.h: No such file or directory
> >
> > # include <gnu/stubs-soft.h>
> >
> >                             ^
> >
> > compilation terminated.
> >
> > aseema@en4078926linux
:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> >
> >
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> >
> > If you go to , you will notice that it is checking for “#if !defined
> > __ARM_PCS_VFP”.
> >
> > This somehow is not defined.
> >
> > Even when I try to hack it by putting “#define  __ARM_PCS_VFP 1” at
> > the top of my , I get the linker error below, which implies
> > intermediate files were built with __ARM_PCS_VFP not defined.
> >
> >
> > +++++++++++++++++++++++++++++++++OUTPUT
> > +++++++++++++++++++++++++++++++++++++
> >
> > aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
arm-poky-linux-gnueabi-gcc hello_arm_world.c
> >
> >
/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld:
error: a.out uses VFP register arguments, /tmp/ccKo5YRb.o does not
> >
> >
/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld:
failed to merge target specific data of file /tmp/ccKo5YRb.o
> >
> > collect2: error: ld returned 1 exit status
> >
> > aseema@en4078926linux
:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> >
> >
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> >
> > We have been observing this bug for many weeks now, hoping the dizzy
> > build will be updated to fix this. It looks like it is not getting any
> > attention. Please help!
> >
> > Any quick solution while waiting for a git repository fix?
> >
> >
> >
> > Full step by step document to reproduce this here.
> > +++++++++++++++++END OF DOCUMENT++++++++++++++++
> >
> >
> >
> > Thanks,
> >
> >
> > Ad.
> > .........................
> >
> >
>
>

[-- Attachment #2: Type: text/html, Size: 9315 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!
  2015-03-31 14:26   ` ad me
@ 2015-03-31 14:46     ` Matt Madison
  2015-03-31 15:02       ` ad me
  2015-03-31 15:40       ` Nikolay Dimitrov
  0 siblings, 2 replies; 7+ messages in thread
From: Matt Madison @ 2015-03-31 14:46 UTC (permalink / raw)
  To: ad me; +Cc: meta-freescale

On Tue, Mar 31, 2015 at 7:26 AM, ad me <adolphs@gmail.com> wrote:
>
> On Mar 31, 2015 5:19 AM, "Matt Madison" <matt@madison.systems> wrote:
[...]
>> You probably aren't invoking the compiler with the set of command-line
>> options you need to get the desired output.  See the definition of the
>> CC environment variable in the environment-setup script in the SDK, and
>> make sure you use the same set of flags to invoke gcc.
>>
>> -Matt
>
> Please see the step by step in the document attached/linked.
> The same one you highlighted on.
>
> I source this script just before invoking the compiler. Which means the CC
> parameters are passed in as shown.
>
> Unless if you are suggesting that doing a "source" of the environment script
> is not enough?
>
> If so, then I would not be able to invoke the correct compiler as the PATH
> to it is setup by the same environment script I source.


Sourcing the environment script is not enough; as I said, you have to
run the compiler with the right set of options.

So instead of:

arm-poky-linux-gnueabi-gcc hello_arm_world.c

You could do:

$CC hello_arm_world.c

to use the CC environment variable directly to invoke the compiler
with the options you need.

-Matt


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!
  2015-03-31 14:46     ` Matt Madison
@ 2015-03-31 15:02       ` ad me
  2015-03-31 15:26         ` ad me
  2015-03-31 15:40       ` Nikolay Dimitrov
  1 sibling, 1 reply; 7+ messages in thread
From: ad me @ 2015-03-31 15:02 UTC (permalink / raw)
  To: Matt Madison; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2005 bytes --]

Matt,

Thanks!
I overlooked the fact that the compiler is also part of the $CC variable.

Correct usage:

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

aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
./a.out
bash: ./a.out: cannot execute binary file: Exec format error
aseema@en4078926linux
:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$

-----------------------------------------------------
Obviously not an x86 executable :)

Thanks a million for pointer!
Ad.
.......................

On Tue, Mar 31, 2015 at 7:46 AM, Matt Madison <matt@madison.systems> wrote:

> On Tue, Mar 31, 2015 at 7:26 AM, ad me <adolphs@gmail.com> wrote:
> >
> > On Mar 31, 2015 5:19 AM, "Matt Madison" <matt@madison.systems> wrote:
> [...]
> >> You probably aren't invoking the compiler with the set of command-line
> >> options you need to get the desired output.  See the definition of the
> >> CC environment variable in the environment-setup script in the SDK, and
> >> make sure you use the same set of flags to invoke gcc.
> >>
> >> -Matt
> >
> > Please see the step by step in the document attached/linked.
> > The same one you highlighted on.
> >
> > I source this script just before invoking the compiler. Which means the
> CC
> > parameters are passed in as shown.
> >
> > Unless if you are suggesting that doing a "source" of the environment
> script
> > is not enough?
> >
> > If so, then I would not be able to invoke the correct compiler as the
> PATH
> > to it is setup by the same environment script I source.
>
>
> Sourcing the environment script is not enough; as I said, you have to
> run the compiler with the right set of options.
>
> So instead of:
>
> arm-poky-linux-gnueabi-gcc hello_arm_world.c
>
> You could do:
>
> $CC hello_arm_world.c
>
> to use the CC environment variable directly to invoke the compiler
> with the options you need.
>
> -Matt
>

[-- Attachment #2: Type: text/html, Size: 2821 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!
  2015-03-31 15:02       ` ad me
@ 2015-03-31 15:26         ` ad me
  0 siblings, 0 replies; 7+ messages in thread
From: ad me @ 2015-03-31 15:26 UTC (permalink / raw)
  To: Matt Madison; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2286 bytes --]

On Tue, Mar 31, 2015 at 8:02 AM, ad me <adolphs@gmail.com> wrote:

> Matt,
>
> Thanks!
> I overlooked the fact that the compiler is also part of the $CC variable.
>
> Correct usage:
>
> ---------------------------------------------------
>
> aseema@en4078926linux:~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
> ./a.out
> bash: ./a.out: cannot execute binary file: Exec format error
> aseema@en4078926linux
> :~/myyocto/fsl-community-bsp/build/tmp/sysroots/wandboard-dual/home/xuser$
>
> -----------------------------------------------------
> Obviously not an x86 executable :)
>
> Thanks a million for pointer!
> Ad.
> .......................
>

I also updated the community discussion I created:

https://community.freescale.com/message/500065#500065



>
> On Tue, Mar 31, 2015 at 7:46 AM, Matt Madison <matt@madison.systems>
> wrote:
>
>> On Tue, Mar 31, 2015 at 7:26 AM, ad me <adolphs@gmail.com> wrote:
>> >
>> > On Mar 31, 2015 5:19 AM, "Matt Madison" <matt@madison.systems> wrote:
>> [...]
>> >> You probably aren't invoking the compiler with the set of command-line
>> >> options you need to get the desired output.  See the definition of the
>> >> CC environment variable in the environment-setup script in the SDK, and
>> >> make sure you use the same set of flags to invoke gcc.
>> >>
>> >> -Matt
>> >
>> > Please see the step by step in the document attached/linked.
>> > The same one you highlighted on.
>> >
>> > I source this script just before invoking the compiler. Which means the
>> CC
>> > parameters are passed in as shown.
>> >
>> > Unless if you are suggesting that doing a "source" of the environment
>> script
>> > is not enough?
>> >
>> > If so, then I would not be able to invoke the correct compiler as the
>> PATH
>> > to it is setup by the same environment script I source.
>>
>>
>> Sourcing the environment script is not enough; as I said, you have to
>> run the compiler with the right set of options.
>>
>> So instead of:
>>
>> arm-poky-linux-gnueabi-gcc hello_arm_world.c
>>
>> You could do:
>>
>> $CC hello_arm_world.c
>>
>> to use the CC environment variable directly to invoke the compiler
>> with the options you need.
>>
>> -Matt
>>
>
>

[-- Attachment #2: Type: text/html, Size: 3764 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now!
  2015-03-31 14:46     ` Matt Madison
  2015-03-31 15:02       ` ad me
@ 2015-03-31 15:40       ` Nikolay Dimitrov
  1 sibling, 0 replies; 7+ messages in thread
From: Nikolay Dimitrov @ 2015-03-31 15:40 UTC (permalink / raw)
  To: Matt Madison; +Cc: meta-freescale, ad me

Hi Matt, others,

On 03/31/2015 05:46 PM, Matt Madison wrote:
> On Tue, Mar 31, 2015 at 7:26 AM, ad me <adolphs@gmail.com> wrote:
>>
>> On Mar 31, 2015 5:19 AM, "Matt Madison" <matt@madison.systems> wrote:
> [...]
>>> You probably aren't invoking the compiler with the set of command-line
>>> options you need to get the desired output.  See the definition of the
>>> CC environment variable in the environment-setup script in the SDK, and
>>> make sure you use the same set of flags to invoke gcc.
>>>
>>> -Matt
>>
>> Please see the step by step in the document attached/linked.
>> The same one you highlighted on.
>>
>> I source this script just before invoking the compiler. Which means the CC
>> parameters are passed in as shown.
>>
>> Unless if you are suggesting that doing a "source" of the environment script
>> is not enough?
>>
>> If so, then I would not be able to invoke the correct compiler as the PATH
>> to it is setup by the same environment script I source.
>
>
> Sourcing the environment script is not enough; as I said, you have to
> run the compiler with the right set of options.
>
> So instead of:
>
> arm-poky-linux-gnueabi-gcc hello_arm_world.c
>
> You could do:
>
> $CC hello_arm_world.c
>
> to use the CC environment variable directly to invoke the compiler
> with the options you need.
>
> -Matt

That was a good remark. I just checked a Makefile I've written for a 
customer project, here's how I use gcc for the cross-compiled recipe:

CC=$(CROSS_COMPILE)gcc

This works for me both in Yocto builds and during stand-alone 
development with "whatever cross-toolchain is around".

Regards,
Nikolay


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-31 15:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-31  7:21 Yocto dizzy version 1.7.1 cross compiling meta-toolchain BROKEN for weeks now! ad me
2015-03-31 12:19 ` Matt Madison
2015-03-31 14:26   ` ad me
2015-03-31 14:46     ` Matt Madison
2015-03-31 15:02       ` ad me
2015-03-31 15:26         ` ad me
2015-03-31 15:40       ` Nikolay Dimitrov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.