All of lore.kernel.org
 help / color / mirror / Atom feed
* meta-toolchain, gdb-cross-canadian_9.2 fails due to "no usable python" #toolchain
@ 2021-03-05 12:00 mmiguelhorta
  2021-03-05 15:51 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: mmiguelhorta @ 2021-03-05 12:00 UTC (permalink / raw)
  To: yocto

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

Hi,
I have been trying to build meta-toolchain however it fails to compile during gdb-cross-canadian. Follows the relevant output:

| checking for libmpfr... no
| configure: WARNING: MPFR is missing or unusable; some features may be unavailable.
| checking whether to use python... /home/.../workspace/gatesgarth/build/tmp/work/x86_64-nativesdk-pokysdk-linux/gdb-cross-canadian-arm/9.2-r0/python
| checking for python... no
| configure: error: no usable python found at /home/.../workspace/gatesgarth/build/tmp/work/x86_64-nativesdk-pokysdk-linux/gdb-cross-canadian-arm/9.2-r0/python
| make[1]: *** [Makefile:8866: configure-gdb] Error 1

My host is Ubuntu 20.04, and I'm using yocto/poky gatesgarth as base. Target core-image-minimal builds without issue, only meta-toolchain fails.
Normally I can get a good idea why something is failing from the logs, but this time I'm really left clueless. Any help would be appreciated.

BR,
Miguel

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

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

* Re: [yocto] meta-toolchain, gdb-cross-canadian_9.2 fails due to "no usable python" #toolchain
  2021-03-05 12:00 meta-toolchain, gdb-cross-canadian_9.2 fails due to "no usable python" #toolchain mmiguelhorta
@ 2021-03-05 15:51 ` Khem Raj
  2021-03-05 20:58   ` mmiguelhorta
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2021-03-05 15:51 UTC (permalink / raw)
  To: mmiguelhorta; +Cc: Yocto-mailing-list

On Fri, Mar 5, 2021 at 4:01 AM <mmiguelhorta@gmail.com> wrote:
>
> Hi,
> I have been trying to build meta-toolchain however it fails to compile during gdb-cross-canadian. Follows the relevant output:
>
> | checking for libmpfr... no
> | configure: WARNING: MPFR is missing or unusable; some features may be unavailable.
> | checking whether to use python... /home/.../workspace/gatesgarth/build/tmp/work/x86_64-nativesdk-pokysdk-linux/gdb-cross-canadian-arm/9.2-r0/python
> | checking for python... no
> | configure: error: no usable python found at /home/.../workspace/gatesgarth/build/tmp/work/x86_64-nativesdk-pokysdk-linux/gdb-cross-canadian-arm/9.2-r0/python
> | make[1]: *** [Makefile:8866: configure-gdb] Error 1
>

there will be a file called config.log created in gdb build dir which
will have further information as to why it thing python interpreter is
not usable

> My host is Ubuntu 20.04, and I'm using yocto/poky gatesgarth as base. Target core-image-minimal builds without issue, only meta-toolchain fails.
> Normally I can get a good idea why something is failing from the logs, but this time I'm really left clueless. Any help would be appreciated.
>
> BR,
> Miguel
> 
>

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

* Re: meta-toolchain, gdb-cross-canadian_9.2 fails due to "no usable python" #toolchain
  2021-03-05 15:51 ` [yocto] " Khem Raj
@ 2021-03-05 20:58   ` mmiguelhorta
  0 siblings, 0 replies; 3+ messages in thread
From: mmiguelhorta @ 2021-03-05 20:58 UTC (permalink / raw)
  To: yocto

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

Thanks for the tip Raj, it got me into the right track. The error was that "Python.h" missing, but the interesting bit was the path where it was looking for it.
It was searching for it within:
(...)./recipe-sysroot/opt/my-image/my-distro-version/sysroots/(...)
while in the filesystem it existed at
(...)./recipe-sysroot/opt/my-image/3.2.1/sysroots/(...)

From that I deduced that somehow it was picking conflicting values for DISTRO_VERSION, executing the follow commands confirmed my suspicion
bitbake -e gdb-cross-canadian-arm | grep "^DISTRO"; -> DISTRO_VERSION="my-distro-version"
bitbake -e nativesdk-python3| grep "^DISTRO"; -> DISTRO_VERSION="3.2.1"

After digging a bit more I figured why it was happening, "my-distro-version" was defined through an override:
MACHINEOVERRIDES="machine"
DISTRO_VERSION_machine="my-distro-version"

However for nativesdk recipes MACHINEOVERRIDES is empty so it picked up DISTRO_VERSION as defined in poky.conf file, "3.2.1".

Dropping the override and having both DISTRO_VERSION equal solved the issue. Thanks!

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

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

end of thread, other threads:[~2021-03-05 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 12:00 meta-toolchain, gdb-cross-canadian_9.2 fails due to "no usable python" #toolchain mmiguelhorta
2021-03-05 15:51 ` [yocto] " Khem Raj
2021-03-05 20:58   ` mmiguelhorta

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.