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 3BE4AE77188 for ; Tue, 24 Dec 2024 11:18:53 +0000 (UTC) Subject: Issue with meta-toolchain: Adding GCC plugins To: openembedded-core@lists.openembedded.org From: Pratik.Pingate@einfochips.com X-Originating-Location: Delhi, National Capital Territory of Delhi, IN (182.76.141.106) X-Originating-Platform: Windows Chrome 131 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 24 Dec 2024 03:18:44 -0800 Message-ID: Content-Type: multipart/alternative; boundary="wge86hAe2YFAUyA1VvVR" 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 ; Tue, 24 Dec 2024 11:18:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209067 --wge86hAe2YFAUyA1VvVR Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I am currently working on a Yocto Project build for the AM335X-EVM machine = using the kirkstone release. My goal is to include GCC plugins in the gener= ated meta-toolchain. However, I am encountering some challenges and would a= ppreciate guidance from the community. Here are the steps I have tried so far: 1) Added EXTRA_OECONF:append =3D " --enable-plugins" in recipes-core/meta/m= eta-toolchain.bb Steps for Toolchain Relocation: einfochips@VM2568:~/work/tisdk/build/deploy-ti/sdk$ ls arago-2023.10-toolchain-2023.10.host.manifest =C2=A0arago-2023.10-toolchain= -2023.10.target.manifest arago-2023.10-toolchain-2023.10.sh =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 arago-2023.10-toolchain-2023.10.testdata.json einfochips@VM2568:~/work/tisdk/build/deploy-ti/sdk$ ./arago-2023.10-toolcha= in-2023.10.sh Arago SDK installer version 2023.10 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Enter target directory for SDK (default: /opt/arago-2023.10): /home/einfoch= ips/work/toolchain/ You are about to install the SDK to "/home/einfochips/work/toolchain". Proc= eed [Y/n]? Y Extracting SDK.............................................................= ...........................................................................= .......done Setting it up...done SDK has been successfully set up and is ready to be used. Each time you wish to use the SDK in a new shell session, you need to sourc= e the environment setup script e.g. =C2=A0$ . /home/einfochips/work/toolchain/environment-setup-armv7at2hf-neon= -oe-linux-gnueabi einfochips@VM2568:~/work/tisdk/build/deploy-ti/sdk$ cd /home/einfochips/wor= k/toolchain/ einfochips@VM2568:~/work/toolchain$ source environment-setup-armv7at2hf-neo= n-oe-linux-gnueabi Steps for Cross compilation of Driver: MY_KERNEL=3D/home/einfochips/work/tisdk/build/arago-tmp-default-glibc/work/= am335x_evm-oe-linux-gnueabi/linux-ti-staging/6.1.46+gitAUTOINC+247b2535b2-r= 22b.arago5.1_tisdk_2_edgeai_0_edgeai_7/build/ make clean make KLIB=3D$MY_KERNEL KLIB_BUILD=3D$MY_KERNEL defconfig-brcmfmac make KLIB=3D$MY_KERNEL KLIB_BUILD=3D$MY_KERNEL ARCH=3Darm CROSS_COMPILE=3D/= home/einfochips/work/toolchain/sysroots/x86_64-arago-linux/usr/bin/arm-oe-l= inux-gnueabi/arm-oe-linux-gnueabi- modules Error: make[4]: ./lxdialog/check-lxdialog.sh: Permission denied make[4]: ./lxdialog/check-lxdialog.sh: Permission denied make[4]: 'conf' is up to date. # # configuration written to .config # Building backport-include/backport/autoconf.h ... done. CC [M]=C2=A0 /home/einfochips/work/WiFi/v6.1.97-backports/compat/main.o *cc1: error: cannot load plugin ./scripts/gcc-plugins/arm_ssp_per_task_plug= in.so: ./scripts/gcc-* plugins/arm_ssp_per_task_plugin.so: undefined symbol= : _ZN8opt_pass14set_pass_paramEjb make[5]: *** [/home/einfochips/work/tisdk/build/arago-tmp-default-glibc/wor= k-shared/am335x-evm/kernel-source/scripts/Makefile.build:250: /home/einfoch= ips/work/WiFi/v6.1.97-backports/compat/main.o] Error 1 make[4]: *** [/home/einfochips/work/tisdk/build/arago-tmp-default-glibc/wor= k-shared/am335x-evm/kernel-source/scripts/Makefile.build:502: /home/einfoch= ips/work/WiFi/v6.1.97-backports/compat] Error 2 make[3]: *** [/home/einfochips/work/tisdk/build/arago-tmp-default-glibc/wor= k-shared/am335x-evm/kernel-source/Makefile:2012: /home/einfochips/work/WiFi= /v6.1.97-backports] Error 2 make[2]: *** [Makefile.build:13: modules] Error 2 make[1]: *** [Makefile.real:88: modules] Error 2 make: *** [Makefile:43: modules] Error 2 einfochips@VM2568:~/work/WiFi/v6.1.97-backports Best Regards, Pratik Pingate. --wge86hAe2YFAUyA1VvVR Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi,
 
I am currently working on a Yocto Project build for the AM335X-EVM mac= hine using the kirkstone release. My goal is to include GCC plugins in the = generated meta-toolchain. However, I am encountering some challenges and wo= uld appreciate guidance from the community.
 
Here are the steps I have tried so far:
    1) Added EXTRA_OECONF:append =3D " --enable-plugins" in = recipes-core/meta/meta-toolchain.bb
 

 

Steps for Toolchain Relocation:
einf= ochips@VM2568:~/work/tisdk/build/deploy-ti/sdk$ ls
arago-2023.10-toolc= hain-2023.10.host.manifest  arago-2023.10-toolchain-2023.10.target.man= ifest
arago-2023.10-toolchain-2023.10.sh         &= nbsp;   arago-2023.10-toolchain-2023.10.testdata.json
einfochips@= VM2568:~/work/tisdk/build/deploy-ti/sdk$ ./arago-2023.10-toolchain-2023.10.= sh
Arago SDK installer version 2023.10
=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
Enter target directory for SDK (default: /opt/arago-2023.10): /= home/einfochips/work/toolchain/
You are about to install the SDK to "/= home/einfochips/work/toolchain". Proceed [Y/n]? Y
Extracting SDK......= ...........................................................................= ..............................................................done
Set= ting it up...done
SDK has been successfully set up and is ready to be = used.
Each time you wish to use the SDK in a new shell session, you ne= ed to source the environment setup script e.g.
 $ . /home/einfoch= ips/work/toolchain/environment-setup-armv7at2hf-neon-oe-linux-gnueabi
= einfochips@VM2568:~/work/tisdk/build/deploy-ti/sdk$ cd /home/einfochips/wor= k/toolchain/
einfochips@VM2568:~/work/toolchain$ source environment-se= tup-armv7at2hf-neon-oe-linux-gnueabi
 
Steps for Cross compilation of Driv=
er:
MY_KERNEL=3D/home/einfochips/work/tisdk/build/arago-tmp-default-gl= ibc/work/am335x_evm-oe-linux-gnueabi/linux-ti-staging/6.1.46+gitAUTOINC+247= b2535b2-r22b.arago5.1_tisdk_2_edgeai_0_edgeai_7/build/
make clean
make KLIB=3D$MY_KERNEL KLIB_BUILD=3D$MY_KERNEL defconfig-brcmfmac
mak= e KLIB=3D$MY_KERNEL KLIB_BUILD=3D$MY_KERNEL ARCH=3Darm CROSS_COMPILE=3D/hom= e/einfochips/work/toolchain/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linu= x-gnueabi/arm-oe-linux-gnueabi- modules

Error:
make[4]: ./l= xdialog/check-lxdialog.sh: Permission denied
make[4]: ./lxdialog/check= -lxdialog.sh: Permission denied
make[4]: 'conf' is up to date.
#<= br /># configuration written to .config
#
Building backport-inclu= de/backport/autoconf.h ... done.
CC [M]  /home/einfochips/work/= WiFi/v6.1.97-backports/compat/main.o
cc1: error: cannot load p= lugin ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: undefined symbol: _ZN8opt_pass14set= _pass_paramEjb
make[5]: *** [/home/einfochips/work/tisdk/build/arago-t= mp-default-glibc/work-shared/am335x-evm/kernel-source/scripts/Makefile.buil= d:250: /home/einfochips/work/WiFi/v6.1.97-backports/compat/main.o] Error 1<= br />make[4]: *** [/home/einfochips/work/tisdk/build/arago-tmp-default-glib= c/work-shared/am335x-evm/kernel-source/scripts/Makefile.build:502: /home/ei= nfochips/work/WiFi/v6.1.97-backports/compat] Error 2
make[3]: *** [/ho= me/einfochips/work/tisdk/build/arago-tmp-default-glibc/work-shared/am335x-e= vm/kernel-source/Makefile:2012: /home/einfochips/work/WiFi/v6.1.97-backport= s] Error 2
make[2]: *** [Makefile.build:13: modules] Error 2
make= [1]: *** [Makefile.real:88: modules] Error 2
make: *** [Makefile:43: m= odules] Error 2
einfochips@VM2568:~/work/WiFi/v6.1.97-backports
=
 
Best Regards,
Pratik Pingate.
--wge86hAe2YFAUyA1VvVR--