* Cross canadian gcc configuration
@ 2014-12-14 7:46 Alfonso Tamés
2014-12-14 13:30 ` Jacob Kroon
0 siblings, 1 reply; 4+ messages in thread
From: Alfonso Tamés @ 2014-12-14 7:46 UTC (permalink / raw)
To: openembedded-devel
Hi,
I just bitbaked an arm based (freescale) Yocto Master image and
populated an sdk with -c populate_sdk.
When I try to compile a hello world program with the
arm-poky-linux-gnueabi-gcc compiler, first I get an error not finding
<stdio.h>, and when I pass the directory through the -I flag, I get the
classic"stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or
directory" error which I supposed is being thrown since gcc cross
canadian is not being configured by default (as my image) hard float.
I noticed in the gcc-cross-canadian.inc that the --with-gxx-include-dir
and --with-sysroot in EXTRA_OECONF_PATHS have a "/not/exist" string:
EXTRA_OECONF_PATHS = "\
--with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
--with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin
\
--with-sysroot=/not/exist \
--with-build-sysroot=${STAGING_DIR_TARGET} \
"
Shoudn't it be ${SDKPATH} instead of "/not/exist" ?
I think that would resolve not finding the include dirs. Now, for the
environment not picking a hard float image and producing a
gcc-cross-canadian accordingly, where should I be looking?
Thanks,
Alfonso
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Cross canadian gcc configuration
2014-12-14 7:46 Cross canadian gcc configuration Alfonso Tamés
@ 2014-12-14 13:30 ` Jacob Kroon
2014-12-14 17:21 ` Alfonso Tamés
0 siblings, 1 reply; 4+ messages in thread
From: Jacob Kroon @ 2014-12-14 13:30 UTC (permalink / raw)
To: openembedded-devel
Hi Alfonso,
On Sun, Dec 14, 2014 at 8:46 AM, Alfonso Tamés <alfonso@tames.com> wrote:
>
> When I try to compile a hello world program with the
> arm-poky-linux-gnueabi-gcc compiler, first I get an error not finding
> <stdio.h>, and when I pass the directory through the -I flag, I get the
> classic"stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or
> directory" error which I supposed is being thrown since gcc cross canadian
> is not being configured by default (as my image) hard float.
>
> I noticed in the gcc-cross-canadian.inc that the --with-gxx-include-dir
> and --with-sysroot in EXTRA_OECONF_PATHS have a "/not/exist" string:
>
> EXTRA_OECONF_PATHS = "\
> --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
> --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin
> \
> --with-sysroot=/not/exist \
> --with-build-sysroot=${STAGING_DIR_TARGET} \
> "
>
>
The sysroot is poisoned by intention. Try sourcing the environment script
from the SDK, and use $CC instead of invoking the compiler binary directly.
See git commit 04b725511a505c582a3abdf63d096967f0320779 in
openembedded-core.
Jacob
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Cross canadian gcc configuration
2014-12-14 13:30 ` Jacob Kroon
@ 2014-12-14 17:21 ` Alfonso Tamés
2014-12-15 8:52 ` Anders Darander
0 siblings, 1 reply; 4+ messages in thread
From: Alfonso Tamés @ 2014-12-14 17:21 UTC (permalink / raw)
To: openembedded-devel
Thanks Jakob, I am indeed sourcing the environment script. I suppose it is lacking something.
Alfonso
> On Dec 14, 2014, at 7:30 AM, Jacob Kroon <jacob.kroon@gmail.com> wrote:
>
> Hi Alfonso,
>
> On Sun, Dec 14, 2014 at 8:46 AM, Alfonso Tamés <alfonso@tames.com> wrote:
>>
>> When I try to compile a hello world program with the
>> arm-poky-linux-gnueabi-gcc compiler, first I get an error not finding
>> <stdio.h>, and when I pass the directory through the -I flag, I get the
>> classic"stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or
>> directory" error which I supposed is being thrown since gcc cross canadian
>> is not being configured by default (as my image) hard float.
>>
>> I noticed in the gcc-cross-canadian.inc that the --with-gxx-include-dir
>> and --with-sysroot in EXTRA_OECONF_PATHS have a "/not/exist" string:
>>
>> EXTRA_OECONF_PATHS = "\
>> --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
>> --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin
>> \
>> --with-sysroot=/not/exist \
>> --with-build-sysroot=${STAGING_DIR_TARGET} \
>> "
>>
>>
>
> The sysroot is poisoned by intention. Try sourcing the environment script
> from the SDK, and use $CC instead of invoking the compiler binary directly.
>
> See git commit 04b725511a505c582a3abdf63d096967f0320779 in
> openembedded-core.
>
> Jacob
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Cross canadian gcc configuration
2014-12-14 17:21 ` Alfonso Tamés
@ 2014-12-15 8:52 ` Anders Darander
0 siblings, 0 replies; 4+ messages in thread
From: Anders Darander @ 2014-12-15 8:52 UTC (permalink / raw)
To: openembedded-devel
* Alfonso Tamés <alfonso@tames.com> [141214 18:22]:
> Thanks Jakob, I am indeed sourcing the environment script. I suppose it is lacking something.
But are you calling the compiler using $CC?
Cheers,
Anders
> > On Dec 14, 2014, at 7:30 AM, Jacob Kroon <jacob.kroon@gmail.com> wrote:
> > The sysroot is poisoned by intention. Try sourcing the environment script
> > from the SDK, and use $CC instead of invoking the compiler binary directly.
> > See git commit 04b725511a505c582a3abdf63d096967f0320779 in
> > openembedded-core.
> > Jacob
--
Anders Darander
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-15 8:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-14 7:46 Cross canadian gcc configuration Alfonso Tamés
2014-12-14 13:30 ` Jacob Kroon
2014-12-14 17:21 ` Alfonso Tamés
2014-12-15 8:52 ` Anders Darander
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.