Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

2023-06-26 Thread Jesus Jimenez Sanchez via lists.yoctoproject.org
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 
Sent: Tuesday 20 June 2023 14:52
To: Jesus Jimenez Sanchez 
Cc: Sumit Garg ; yocto@lists.yoctoproject.org 

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

> On 20 Jun 2023, at 14:44, Jesus Jimenez Sanchez 
>  wrote:
>
> 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 
> Sent: Tuesday 20 June 2023 14:18
> To: Ross Burton 
> Cc: Jesus Jimenez Sanchez ; 
> yocto@lists.yoctoproject.org 
> Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
>  [You don't often get email from sumit.g...@linaro.org. 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.
>
>
> On Tue, 20 Jun 2023 at 18:06, Ross Burton  wrote:
> >
> > On 20 Jun 2023, at 13:08, Sumit Garg via lists.yoctoproject.org 
> >  wrote:
> > >
> > > On Mon, 19 Jun 2023 at 22:03, Jesus.JimenezSanchez via
> > > lists.yoctoproject.org
> > >  wrote:
> > >>
> > >> 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.
> >
> > 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=05%7C01%7CJesus.JimenezSanchez%40verifone.com%7C8fdf8d44005f462cd9b208db71959a89%7C611a22d68c40495884e3ce47d8205d98%7C0%7C0%7C638228659596378789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=c%2Fd7LXNot1v%2Bmy%2BU6ioRDcoot2Qb2wXgN5PlDGHEe6I%3D=0
>
> -Sumit
>
> > Ross
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60447): https://lists.yoctoproject.org/g/yocto/message/60447
Mute This Topic: https://lists.yoctoproject.org/mt/99626981/21656
Mute #toolchain:https://lists.yoctoproject.org/g/yocto/mutehashtag/toolchain
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

2023-06-21 Thread Jesus Jimenez Sanchez via lists.yoctoproject.org
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 
Sent: Tuesday 20 June 2023 14:52
To: Jesus Jimenez Sanchez 
Cc: Sumit Garg ; yocto@lists.yoctoproject.org 

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

> On 20 Jun 2023, at 14:44, Jesus Jimenez Sanchez 
>  wrote:
>
> 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 
> Sent: Tuesday 20 June 2023 14:18
> To: Ross Burton 
> Cc: Jesus Jimenez Sanchez ; 
> yocto@lists.yoctoproject.org 
> Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
>  [You don't often get email from sumit.g...@linaro.org. 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.
>
>
> On Tue, 20 Jun 2023 at 18:06, Ross Burton  wrote:
> >
> > On 20 Jun 2023, at 13:08, Sumit Garg via lists.yoctoproject.org 
> >  wrote:
> > >
> > > On Mon, 19 Jun 2023 at 22:03, Jesus.JimenezSanchez via
> > > lists.yoctoproject.org
> > >  wrote:
> > >>
> > >> 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.
> >
> > 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=05%7C01%7CJesus.JimenezSanchez%40verifone.com%7C8fdf8d44005f462cd9b208db71959a89%7C611a22d68c40495884e3ce47d8205d98%7C0%7C0%7C638228659596378789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=c%2Fd7LXNot1v%2Bmy%2BU6ioRDcoot2Qb2wXgN5PlDGHEe6I%3D=0
>
> -Sumit
>
> > Ross
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60377): https://lists.yoctoproject.org/g/yocto/message/60377
Mute This Topic: https://lists.yoctoproject.org/mt/99626981/21656
Mute #toolchain:https://lists.yoctoproject.org/g/yocto/mutehashtag/toolchain
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

2023-06-20 Thread Jesus Jimenez Sanchez via lists.yoctoproject.org
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 
Sent: Tuesday 20 June 2023 14:18
To: Ross Burton 
Cc: Jesus Jimenez Sanchez ; 
yocto@lists.yoctoproject.org 
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

[You don't often get email from sumit.g...@linaro.org. 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.


On Tue, 20 Jun 2023 at 18:06, Ross Burton  wrote:
>
> On 20 Jun 2023, at 13:08, Sumit Garg via lists.yoctoproject.org 
>  wrote:
> >
> > On Mon, 19 Jun 2023 at 22:03, Jesus.JimenezSanchez via
> > lists.yoctoproject.org
> >  wrote:
> >>
> >> 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.
>
> 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=05%7C01%7CJesus.JimenezSanchez%40verifone.com%7C973f208b0af44819944408db7190e99c%7C611a22d68c40495884e3ce47d8205d98%7C0%7C0%7C638228639435319950%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=F7k3iyXYd8FFpc%2FMk2cPW3fKzKxIS44htt85A3liStA%3D=0

-Sumit

> Ross


local.conf.sample
Description: local.conf.sample

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60363): https://lists.yoctoproject.org/g/yocto/message/60363
Mute This Topic: https://lists.yoctoproject.org/mt/99626981/21656
Mute #toolchain:https://lists.yoctoproject.org/g/yocto/mutehashtag/toolchain
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

2023-06-20 Thread Jesus Jimenez Sanchez via lists.yoctoproject.org
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 
Sent: Tuesday 20 June 2023 10:11
To: Jesus Jimenez Sanchez 
Cc: Yocto-mailing-list ; 
meta-...@lists.yoctoproject.org 
Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

[You don't often get email from ross.bur...@arm.com. 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.


> On 19 Jun 2023, at 17:33, Jesus.JimenezSanchez via lists.yoctoproject.org 
>  wrote:
>
> 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"
> ```

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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60358): https://lists.yoctoproject.org/g/yocto/message/60358
Mute This Topic: https://lists.yoctoproject.org/mt/99626981/21656
Mute #toolchain:https://lists.yoctoproject.org/g/yocto/mutehashtag/toolchain
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-