From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BD4AC433FE for ; Wed, 16 Mar 2022 16:29:57 +0000 (UTC) Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) by mx.groups.io with SMTP id smtpd.web12.27163.1647448196197994218 for ; Wed, 16 Mar 2022 09:29:56 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.81, mailfrom: f_l_k@t-online.de) Received: from fwd84.dcpf.telekom.de (fwd84.aul.t-online.de [10.223.144.110]) by mailout03.t-online.de (Postfix) with SMTP id 501185241 for ; Wed, 16 Mar 2022 17:29:54 +0100 (CET) Received: from [192.168.178.83] ([84.163.47.155]) by fwd84.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1nUWX4-0Ffmq10; Wed, 16 Mar 2022 17:29:54 +0100 Content-Type: multipart/alternative; boundary="------------1hLl9ligFioFmnHTBAMR0kdE" Message-ID: Date: Wed, 16 Mar 2022 17:29:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0 Content-Language: en-US To: openembedded-core@lists.openembedded.org References: <16DCCE8EC93DCD97.17060@lists.openembedded.org> <33fa836d-4905-b46a-4a72-31ccef03693e@t-online.de> <16DCD0A1D561F84D.17060@lists.openembedded.org> From: Markus Volk In-Reply-To: X-TOI-EXPURGATEID: 150726::1647448194-00009E39-534B8EBB/0/0 CLEAN NORMAL X-TOI-MSGID: a5b7b1c0-e903-4de0-bca8-0155336aed11 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 16 Mar 2022 16:29:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/163340 This is a multi-part message in MIME format. --------------1hLl9ligFioFmnHTBAMR0kdE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Matthias, I created a patchset to align mesa PACKAGECONFIG for native and target=20 builds. I tried compiling my own images and core-image-sato with this patchset=20 and had no problems. Hopefully this will fix your problem as well. This change seems much cleaner to me, but maybe I'm missing some=20 context. I will send the patches to the mailing list and wait for comment= s. Markus Am 16.03.22 um 17:19 schrieb Matthias Klein: > > Hello Markus, > > both variants work. I then used the latter one: > > PACKAGECONFIG:append:class-native =3D " dri3" > > PACKAGECONFIG:append:class-nativesdk =3D " dri3" > > I have successfully built small QML (Qt 6.2.4) test programs with the=20 > SDK, which also run nicely on the hardware (i.MX6 DualLite with kernel=20 > 5.10 / etnaviv). > > Many greetings, > > Matthias > > *Von:* openembedded-core@lists.openembedded.org=20 > *Im Auftrag von *Matthias=20 > Klein via lists.openembedded.org > *Gesendet:* Mittwoch, 16. M=C3=A4rz 2022 09:56 > *An:* f_l_k@t-online.de; openembedded-core@lists.openembedded.org > *Betreff:* Re: [OE-core] nativesdk-mesa fails to build since upgrade=20 > to version 22.0.0 > > Hello Markus, > > Thanks for the quick help! > > The variant " to remove x11 " seems to build (incrementally). However,=20 > the SDK is still building. > > After that I will test the variant regarding dri3. After that I will=20 > also do a full/clean build. > > Afterwards I will report. But it will take a few hours ... > > Many greetings, > > Matthias > > *Von:* openembedded-core@lists.openembedded.org=20 > *Im Auftrag von *Markus=20 > Volk via lists.openembedded.org > *Gesendet:* Mittwoch, 16. M=C3=A4rz 2022 09:35 > *An:* openembedded-core@lists.openembedded.org > *Betreff:* Re: [OE-core] nativesdk-mesa fails to build since upgrade=20 > to version 22.0.0 > > What does happen, if adding dri3 like this? > > PACKAGECONFIG:append:class-native =3D " dri3" > PACKAGECONFIG:append:class-nativesdk =3D "dri3" > > Am 16.03.22 um 09:17 schrieb Markus Volk: > > Hi Matthias, > > since you have disabled x11 for target ... does it help to also > remove it from native and nativesdk ? > > PACKAGECONFIG:remove:class-native =3D " x11" > > PACKAGECONFIG:remove:class-nativesdk =3D " x11" > > Regards, > > Markus > > Am 16.03.22 um 08:40 schrieb Matthias Klein: > > Hello, > > I am using mesa in conjunction with meta-qt6 without > X11/wayland on an iMX6 with etnaviv. > > So in a bbappend I have: PACKAGECONFIG:append =3D " etnaviv". > > I use poky with the following DISTRO_FEATURES: > DISTRO_FEATURES:remove =3D "x11 wayland vulkan 3g nfc nfs zeroc= onf" > DISTRO_FEATURES:append =3D " directfb opengl" > > Unfortunately, nativesdk-mesa now no longer builds on build > via "-c populate_sdk". However, the package for the target > still builds. > > | ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect > -mtls-dialect when cross-compiling, using compiler default > | > | ../mesa-22.0.0/meson.build:614:2: ERROR: Problem > encountered: kmsro requires dri3 for X11 support > > I compared the meson calls on the target and SDK builds: > NOTE: Executing meson -Dshared-glapi=3Denabled > -Dgallium-opencl=3Ddisabled -Dglx-read-only-text=3Dtrue > -Dplatforms=3D -Ddri3=3Ddisabled -Degl=3Denabled -Delf-tls=3Dtr= ue > -Dgallium-drivers=3Dswrast,etnaviv, virgl -Dllvm=3Ddisabled > -Dgbm=3Denabled -Dgles1=3Denabled -Dgles2=3Denabled > -Dlmsensors=3Ddisabled -Dopengl=3Dtrue - > Dosmesa=3Dfalse -Dlibunwind=3Ddisabled -Dgallium-va=3Ddisabled > -Dgallium-vdpau=3Ddisabled -Dvulkan-drivers=3D -Dglx=3Ddisabled > -Dgallium-xa=3Ddisabled -Dgallium-xvmc=3Ddisabled. .. > > NOTE: Executing meson -Dshared-glapi=3Denabled > -Dgallium-opencl=3Ddisabled -Dglx-read-only-text=3Dtrue > -Dplatforms=3Dx11 -Ddri3=3Ddisabled -Degl=3Denabled -Delf-tls=3D= true > -Dgallium-drivers=3Dswrast, etnaviv -Dllvm=3Ddisabled > -Dgbm=3Denabled -Dgles1=3Ddisabled -Dgles2=3Ddisabled > -Dlmsensors=3Ddisabled -Dopengl=3Dtrue -Dosmesa=3Dfalse > -Dlibunwind=3Ddisabled -Dgallium-va=3Ddisabled > -Dgallium-vdpau=3Ddisabled -Dvulkan-drivers=3D > -Dgallium-xa=3Ddisabled -Dgallium-xvmc=3Ddisabled. .. > > Does anyone have any idea what I could do to get the SDK built? > > Many greetings, > Matthias > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#163339):https://lists.openembedded.org/g/openembedd= ed-core/message/163339 > Mute This Topic:https://lists.openembedded.org/mt/89817006/3618223 > Group Owner:openembedded-core+owner@lists.openembedded.org > Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [= f_l_k@t-online.de] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > --------------1hLl9ligFioFmnHTBAMR0kdE Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi Matthias,

I created a patchset to align mesa PACKAGECONFIG for native and target builds.
I tried compiling my own images and core-image-sato with this patchset and had no problems.
Hopefully this will fix your problem as well.

This change seems much cleaner to me, but maybe I'm missing some context. I will send the patches to the mailing list and wait for comments.

Markus

Am 16.03.22 um 17:19 schrieb Matthias Klein:

Hello Markus,

=C2=A0

both variants work. I then used the latter one:<= /p>

PACKAGECONFIG:append:class-native =3D " dri3"

PACKAGECONFIG:append:class-nativesdk =3D " dri3"

=C2=A0

I have successfully built small QML (Qt 6.2.4) test programs with the SDK, which also run nicely on the hardware (i.MX6 DualLite with kernel 5.10 / etnaviv).

=C2=A0

Many greetings,

Matthias

=C2=A0

Von: openembedded-core@lists.openembedded.= org <openembedded-core@lists.openembedded= .org> Im Auftrag von Matthias Klein via lists.openembedded.org
Gesendet: Mittwoch, 16. M=C3=A4rz 2022 09:56
An: f_l_k@t-online.de; openembedded-core@lists.openembedded.= org
Betreff: Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

=C2=A0

Hello Markus,

=C2=A0

Thanks for the quick help!

=C2=A0

The variant " to remove x11 " seems to build (incrementally). However, the SDK is still building.

After that I will test the variant regarding dri3. After that I will also do a full/clean build.

=C2=A0

Afterwards I will report. But it will take a few hours ...

=C2=A0

Many greetings,

Matthias

=C2=A0

Von: openembedded-core@lists.openembedded.org <= openembedded-core@lists.openembedded.org> Im Auftrag von Markus Volk via lists.openembedded.org
Gesendet: Mittwoch, 16. M=C3=A4rz 2022 09:35
An: = openembedded-core@lists.openembedded.org
Betreff: Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

=C2=A0

What does happen, if adding dri3 like this?

PACKAGECONFIG:<=
/span>append:class-native =3D " dri3"
PACKAGECONFIG:a=
ppend:class-nativesdk =3D "dri3"
=C2=A0
=C2=A0

Am 16.03.22 um 09:17 schrieb Markus Volk= :

Hi Matthi= as,

since you have disabled x11 for target ... does it help to also remove it from native and nativesdk ?

PACKAGECONFIG:remove:class-native =3D " x11"

PACKAGECONFIG:remove:class-nativesdk =3D " x11"

Regards,

Markus

Am 16.03.22 um 08:40 schrieb Matthias Klein:

Hello, =

I am using mesa in conjunction with meta-qt6 without X11/wayland on an iMX6 with etnaviv.

So in a bbappend I have: PACKAGECONFIG:append =3D " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove =3D "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append =3D " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build via "-c populate_sdk". However, the package for the target still builds.

| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect -mtls-dialect when cross-compiling, using compiler default
|
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem encountered: kmsro requires dri3 for X11 support

I compared the meson calls on the target and SDK builds: NOTE: Executing meson -Dshared-glapi=3Denabled -Dgallium-opencl=3Ddisabled -Dglx-read-only-text=3Dtrue -Dplatforms=3D -Ddri3=3Ddisabled -Degl=3Denabled -Delf-tls=3D= true -Dgallium-drivers=3Dswrast,etnaviv, virgl -Dllvm=3Ddisabled -Dgbm=3Denabled -Dgles1=3Denabled -Dgles2=3Denabled -Dlmsensors=3Ddisabled -Dopengl=3Dtrue -
Dosmesa=3Dfalse -Dlibunwind=3Ddisabled -Dgallium-va=3Ddisab= led -Dgallium-vdpau=3Ddisabled -Dvulkan-drivers=3D -Dglx=3Ddisa= bled -Dgallium-xa=3Ddisabled -Dgallium-xvmc=3Ddisabled. ..

NOTE: Executing meson -Dshared-glapi=3Denabled -Dgallium-opencl=3Ddisabled -Dglx-read-only-text=3Dtrue -Dplatforms=3Dx11 -Ddri3=3Ddisabled -Degl=3Denabled -Delf-tls=3Dtrue -Dgallium-drivers=3Dswrast, etnaviv -Dllvm=3Ddisabled -Dgbm=3Denabled -Dgles1=3Ddisabled -Dgles2=3Ddisabled -Dlmsensors=3Ddisabled -Dopengl=3Dtrue -Dosmesa=3Dfalse -Dlibunwind=3Ddisabled -Dgallium-va=3Ddisa= bled -Dgallium-vdpau=3Ddisabled -Dvulkan-drivers=3D -Dgallium-xa=3Ddisabled -Dgallium-xvmc=3Ddisabled. ..

Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias

=C2=A0=

=C2=A0
=C2=A0
=C2=A0

-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
Links: You receive all messages sent to this group.
View/Reply Online (#163339): https:/=
/lists.openembedded.org/g/openembedded-core/message/163339
Mute This Topic: https://lists.openembedded.org/mt/=
89817006/3618223
Group Owner: openembedded-core+owner@lists.op=
enembedded.org
Unsubscribe: https://lists.openembedded.org/g=
/openembedded-core/unsub [f_l_k@t-online.de]
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-

--------------1hLl9ligFioFmnHTBAMR0kdE--