meta-arm-toolchain: SUPPORTED file not found #toolchain
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```
I have added this to the bblayers.conf:
```
BBLAYERS += "${OEROOT}/layers/meta-arm/meta-arm-toolchain"
```And that's it, I think. Have I missed any steps?
Copying meta-arm, as that’s the best place to discuss this.
Quoted 13 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```
Quoted 4 lines
I have added this to the
bblayers.conf:``` BBLAYERS += "${OEROOT}/layers/meta-arm/meta-arm-toolchain" ```
Can you share the full logs, instead of just one line?
Also replicating with just poky+meta-arm and a brand new build tree (so no local configuration or layers) would help debug.
Ross
Hello,
This is the complete output from yocto:
```
NOTE: Executing Tasks
ERROR: external-arm-toolchain-2022.02-r0 do_stash_locale: ExecutionError('.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/temp/run.do_stash_locale.449', 1, None, None)
ERROR: Logfile of failure stored in: .../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/temp/log.do_stash_locale.449
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing shell function do_stash_locale
| cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory
| WARNING: .../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/temp/run.do_stash_locale.449:165 exit 1 from 'cp -fpPR .../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED $dest'
| WARNING: Backtrace (BB generated script):
| #1: do_stash_locale, .../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/temp/run.do_stash_locale.449, line 165
| #2: main, .../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/temp/run.do_stash_locale.449, line 177
ERROR: Task (.../layers/meta-arm/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb:do_stash_locale) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2402 tasks of which 2396 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
Summary: 1 task failed:
.../layers/meta-arm/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb:do_stash_locale
Summary: There was 1 ERROR message, returning a non-zero exit code.
```Best regards,
Jesús Jiménez Sánchez
________________________________
From: Ross Burton <[email protected]>
Sent: Tuesday 20 June 2023 10:11
To: Jesus Jimenez Sanchez <[email protected]>
Cc: Yocto-mailing-list <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Copying meta-arm, as that’s the best place to discuss this.
Quoted 13 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```
Quoted 4 lines
I have added this to the
bblayers.conf:``` BBLAYERS += "${OEROOT}/layers/meta-arm/meta-arm-toolchain" ```
Can you share the full logs, instead of just one line?
Also replicating with just poky+meta-arm and a brand new build tree (so no local configuration or layers) would help debug.
Ross
Quoted 2 lines · Jesus Jimenez Sanchez
| cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory
That’s the line which confuses me.
My line is:
cp -fpPR /yocto/ross/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/external-arm-toolchain/12.2.Rel1-r0/SUPPORTED $dest
Do you have local configuration? I just grabbed poky and meta-arm kirkstone, set the two variables, and it built fine.
Ross
Quoted 12 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```
Don't provide a relative path here. It should be an absolute path to your external toolchain install directory. This should resolve your issue.
-Sumit
Quoted 15 lines
I have added this to the
bblayers.conf:``` BBLAYERS += "${OEROOT}/layers/meta-arm/meta-arm-toolchain" ```And that's it, I think. Have I missed any steps?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60349): https://lists.yoctoproject.org/g/yocto/message/60349
Mute This Topic: https://lists.yoctoproject.org/mt/99626981/1777089
Mute #toolchain:https://lists.yoctoproject.org/g/yocto/mutehashtag/toolchain Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 13 lines · Sumit Garg via lists.yoctoproject.org
Quoted 9 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ```It comes from the
external-arm-toolchain.bbrecipe. I've checked and theSUPPORTEDfile is in the right folder (thefilesfolder where theexternal-arm-toolchain.bbfile is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branchkirkstone. After that, I have configured my local.conf with this:
```
TCMODE = "external-arm"
Quoted 7 lines
Quoted 3 lines
EXTERNAL_TOOLCHAIN= ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```Don't provide a relative path here. It should be an absolute path to your external toolchain install directory. This should resolve your issue.
If that’s the issue, can you add a check for the path being absolute to the class?
Ross
Quoted 19 lines · Ross Burton
Quoted 17 lines · Sumit Garg via lists.yoctoproject.org
Quoted 12 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```
Quoted 6 lines
Quoted 3 lines
Don't provide a relative path here. It should be an absolute path to your external toolchain install directory. This should resolve your issue.
If that’s the issue, can you add a check for the path being absolute to the class?
Sure, see [1].
[1] https://lists.yoctoproject.org/g/meta-arm/message/4809
-Sumit
Quoted 1 line
Ross
Hello,
I am using an absolute path there; I just removed it before posting on the email thread.
I have attached my local.conf here.
Best regards,
Jesús Jiménez Sánchez
________________________________
From: Sumit Garg <[email protected]>
Sent: Tuesday 20 June 2023 14:18
To: Ross Burton <[email protected]>
Cc: Jesus Jimenez Sanchez <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Quoted 19 lines · Ross Burton
Quoted 17 lines · Sumit Garg via lists.yoctoproject.org
Quoted 12 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```
Quoted 6 lines
Quoted 3 lines
Don't provide a relative path here. It should be an absolute path to your external toolchain install directory. This should resolve your issue.
If that’s the issue, can you add a check for the path being absolute to the class?
Sure, see [1].
[1] https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fmeta-arm%2Fmessage%2F4809&data=05%7C01%7CJesus.JimenezSanchez%40verifone.com%7C973f208b0af44819944408db7190e99c%7C611a22d68c40495884e3ce47d8205d98%7C0%7C0%7C638228639435319950%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F7k3iyXYd8FFpc%2FMk2cPW3fKzKxIS44htt85A3liStA%3D&reserved=0<https://lists.yoctoproject.org/g/meta-arm/message/4809>
-Sumit
Quoted 1 line
Ross
So there’s a lot of settings in that file. Can you replicate with a default config as generated by poky?
Ross
Quoted 54 lines · Jesus Jimenez Sanchez
Hello,
I am using an absolute path there; I just removed it before posting on the email thread.
I have attached my local.conf here.
Best regards,
Jesús Jiménez SánchezFrom: Sumit Garg <[email protected]>
Sent: Tuesday 20 June 2023 14:18
To: Ross Burton <[email protected]>
Cc: Jesus Jimenez Sanchez <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Quoted 19 lines · Ross Burton
Quoted 17 lines · Sumit Garg via lists.yoctoproject.org
Quoted 12 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```Quoted 6 lines
Quoted 3 lines
Don't provide a relative path here. It should be an absolute path to your external toolchain install directory. This should resolve your issue.
If that’s the issue, can you add a check for the path being absolute to the class?
Sure, see [1].
[1] https://lists.yoctoproject.org/g/meta-arm/message/4809
-Sumit
Quoted 1 line
Ross
<local.conf.sample>
Hi,
After a few problems that took me a while to fix, I've now used a default poky with default configuration, and it builds just fine.
There must be something in one of my configuration files that appends that "image/local" at the end of WORKDIR, but I've search in entire folder and there are no references to that string.
Best regards,
Jesús Jiménez Sánchez
________________________________
From: Ross Burton <[email protected]>
Sent: Tuesday 20 June 2023 14:52
To: Jesus Jimenez Sanchez <[email protected]>
Cc: Sumit Garg <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
So there’s a lot of settings in that file. Can you replicate with a default config as generated by poky?
Ross
Quoted 54 lines · Jesus Jimenez Sanchez
Hello,
I am using an absolute path there; I just removed it before posting on the email thread.
I have attached my local.conf here.
Best regards,
Jesús Jiménez SánchezFrom: Sumit Garg <[email protected]>
Sent: Tuesday 20 June 2023 14:18
To: Ross Burton <[email protected]>
Cc: Jesus Jimenez Sanchez <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Quoted 19 lines · Ross Burton
Quoted 17 lines · Sumit Garg via lists.yoctoproject.org
Quoted 12 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```Quoted 6 lines
Quoted 3 lines
Don't provide a relative path here. It should be an absolute path to your external toolchain install directory. This should resolve your issue.
If that’s the issue, can you add a check for the path being absolute to the class?
Sure, see [1].
[1] https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fmeta-arm%2Fmessage%2F4809&data=05%7C01%7CJesus.JimenezSanchez%40verifone.com%7C8fdf8d44005f462cd9b208db71959a89%7C611a22d68c40495884e3ce47d8205d98%7C0%7C0%7C638228659596378789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=c%2Fd7LXNot1v%2Bmy%2BU6ioRDcoot2Qb2wXgN5PlDGHEe6I%3D&reserved=0<https://lists.yoctoproject.org/g/meta-arm/message/4809>
-Sumit
Quoted 1 line
Ross
<local.conf.sample>
Hi,
I kept investigating and it turns out that someone in my team had made a custom glibc-package.inc which changed the WORKDIR value, and I didn't know. That was all in the end.
I've modified this file to revert the change (we actually have both now, just in case they need it for something else) and the toolchain is working perfectly now.
Thank you very much for your help anyways.
Best regards,
Jesús Jiménez Sánchez
________________________________
From: Ross Burton <[email protected]>
Sent: Tuesday 20 June 2023 14:52
To: Jesus Jimenez Sanchez <[email protected]>
Cc: Sumit Garg <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
So there’s a lot of settings in that file. Can you replicate with a default config as generated by poky?
Ross
Quoted 54 lines · Jesus Jimenez Sanchez
Hello,
I am using an absolute path there; I just removed it before posting on the email thread.
I have attached my local.conf here.
Best regards,
Jesús Jiménez SánchezFrom: Sumit Garg <[email protected]>
Sent: Tuesday 20 June 2023 14:18
To: Ross Burton <[email protected]>
Cc: Jesus Jimenez Sanchez <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Quoted 19 lines · Ross Burton
Quoted 17 lines · Sumit Garg via lists.yoctoproject.org
Quoted 12 lines · Jesus.JimenezSanchez via lists.yoctoproject.org
Hello, I'm trying to add the arm toolchain to my yocto project but I just got this error
``` | cp: cannot stat '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED': No such file or directory ``` It comes from the `external-arm-toolchain.bb` recipe. I've checked and the `SUPPORTED` file is in the right folder (the `files` folder where the `external-arm-toolchain.bb` file is). I haven't made any modifications to the meta-arm repo. I just cloned it and changed to branch `kirkstone`. After that, I have configured my local.conf with this: ``` TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf" ```Quoted 6 lines
Quoted 3 lines
Don't provide a relative path here. It should be an absolute path to your external toolchain install directory. This should resolve your issue.
If that’s the issue, can you add a check for the path being absolute to the class?
Sure, see [1].
[1] https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fmeta-arm%2Fmessage%2F4809&data=05%7C01%7CJesus.JimenezSanchez%40verifone.com%7C8fdf8d44005f462cd9b208db71959a89%7C611a22d68c40495884e3ce47d8205d98%7C0%7C0%7C638228659596378789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=c%2Fd7LXNot1v%2Bmy%2BU6ioRDcoot2Qb2wXgN5PlDGHEe6I%3D&reserved=0<https://lists.yoctoproject.org/g/meta-arm/message/4809>
-Sumit
Quoted 1 line
Ross
<local.conf.sample>