All of lore.kernel.org
 help / color / mirror / Atom feed
* #uboot Problem compiling u-boot with bitbake
@ 2020-12-05  0:08 ajellisuk
  2020-12-05 18:54 ` [yocto] " Randy MacLeod
  0 siblings, 1 reply; 7+ messages in thread
From: ajellisuk @ 2020-12-05  0:08 UTC (permalink / raw)
  To: yocto

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

Hi

I'm trying to compile u-boot for an iMX6 board (iMX6-Q7_Plus from MSC technologies), but the compile process fails with the following output:

> 
> ERROR: Unable to start bitbake server
> ERROR: Last 10 lines of server log for this session
> (/home/user/msc-yocto-140/msc-ldk/build/1006/bitbake-cookerdaemon.log):
> self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset)
> File
> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py",
> line 197, in __init__
> self.initConfigurationData()
> File
> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py",
> line 356, in initConfigurationData
> self.databuilder.parseBaseConfiguration()
> File
> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cookerdata.py",
> line 317, in parseBaseConfiguration
> raise bb.BBHandledException
> bb.BBHandledException
> ERROR: The following required tools (as specified by HOSTTOOLS) appear to
> be unavailable in PATH, please install them in order to proceed:
> test
> 
> ERROR: bitbake u-boot-imx -c compile –f

I have had errors like this before, and have been to resolve by installing the missing tools indicated. The problem that I've got here is that I'm not sure what "test" is referring to. using, "sudo apt-get install test", doesn't work.

Can someone please give me a hint as to what the problem is here.

Thanks in advance

Andrew

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

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

* Re: [yocto] #uboot Problem compiling u-boot with bitbake
  2020-12-05  0:08 #uboot Problem compiling u-boot with bitbake ajellisuk
@ 2020-12-05 18:54 ` Randy MacLeod
  2020-12-05 19:59   ` ajellisuk
  0 siblings, 1 reply; 7+ messages in thread
From: Randy MacLeod @ 2020-12-05 18:54 UTC (permalink / raw)
  To: ajellisuk, yocto

On 2020-12-04 7:08 p.m., ajellisuk via lists.yoctoproject.org wrote:
> Hi
> 
> I'm trying to compile u-boot for an iMX6 board (iMX6-Q7_Plus from MSC 
> technologies), but the compile process fails with the following output:
> 
>     ERROR: Unable to start bitbake server
>     ERROR: Last 10 lines of server log for this session
>     (/home/user/msc-yocto-140/msc-ldk/build/1006/bitbake-cookerdaemon.log):
>          self.cooker = bb.cooker.BBCooker(self.configuration,
>     self.featureset)
>        File
>     "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py",
>     line 197, in __init__
>          self.initConfigurationData()
>        File
>     "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py",
>     line 356, in initConfigurationData
>          self.databuilder.parseBaseConfiguration()
>        File
>     "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cookerdata.py",
>     line 317, in parseBaseConfiguration
>          raise bb.BBHandledException
>     bb.BBHandledException
>     ERROR: The following required tools (as specified by HOSTTOOLS)
>     appear to be unavailable in PATH, please install them in order to
>     proceed:
>        test
> 
>     ERROR: bitbake u-boot-imx -c compile –f
> 
> I have had errors like this before, and have been to resolve by 
> installing the missing tools indicated. The problem that I've got here 
> is that I'm not sure what "test" is referring to. using, "sudo apt-get 
> install test", doesn't work.
> 
> Can someone please give me a hint as to what the problem is here.

Hi Andrew,

It seems odd that you don't have coreutils/test already...
Test is part of coreutils on Ubuntu-20.04:

$ which test
/usr/bin/test
$ dpkg -S /usr/bin/test
coreutils: /usr/bin/test

What distro are you using for your build machine and
have you installed the suggested packages?
See the quick start guide and links therein:

https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html

https://docs.yoctoproject.org/ref-manual/ref-system-requirements.html#supported-linux-distributions

Also, if you could mention the layers and version of YP code
that you are using that could be helpful in general although
for this issue it shouldn't matter.


../Randy


> 
> Thanks in advance
> 
> Andrew
> 
> 
> 
> 


-- 
# Randy MacLeod
# Wind River Linux

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

* Re: [yocto] #uboot Problem compiling u-boot with bitbake
  2020-12-05 18:54 ` [yocto] " Randy MacLeod
@ 2020-12-05 19:59   ` ajellisuk
  2020-12-05 20:27     ` Randy MacLeod
  0 siblings, 1 reply; 7+ messages in thread
From: ajellisuk @ 2020-12-05 19:59 UTC (permalink / raw)
  To: Randy MacLeod, yocto

Hi Randy

Thank you for your reply.

I'm using Ubuntu 14.04 .

After reading what you said about coreutils in your last message, I 
tried installing coreutils and got a message saying the latest version 
is installed. Doing "which test" doesn't yield anything. I've looked in 
/usr/bin/ and there is no sign of test in there.

The version of Yocto Project I'm using is 2.5 "poky"

Andrew

On 05/12/2020 18:54, Randy MacLeod wrote:
> On 2020-12-04 7:08 p.m., ajellisuk via lists.yoctoproject.org wrote:
>> Hi
>>
>> I'm trying to compile u-boot for an iMX6 board (iMX6-Q7_Plus from MSC 
>> technologies), but the compile process fails with the following output:
>>
>>     ERROR: Unable to start bitbake server
>>     ERROR: Last 10 lines of server log for this session
>> (/home/user/msc-yocto-140/msc-ldk/build/1006/bitbake-cookerdaemon.log):
>>          self.cooker = bb.cooker.BBCooker(self.configuration,
>>     self.featureset)
>>        File
>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py",
>>     line 197, in __init__
>>          self.initConfigurationData()
>>        File
>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py",
>>     line 356, in initConfigurationData
>>          self.databuilder.parseBaseConfiguration()
>>        File
>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cookerdata.py",
>>     line 317, in parseBaseConfiguration
>>          raise bb.BBHandledException
>>     bb.BBHandledException
>>     ERROR: The following required tools (as specified by HOSTTOOLS)
>>     appear to be unavailable in PATH, please install them in order to
>>     proceed:
>>        test
>>
>>     ERROR: bitbake u-boot-imx -c compile –f
>>
>> I have had errors like this before, and have been to resolve by 
>> installing the missing tools indicated. The problem that I've got 
>> here is that I'm not sure what "test" is referring to. using, "sudo 
>> apt-get install test", doesn't work.
>>
>> Can someone please give me a hint as to what the problem is here.
>
> Hi Andrew,
>
> It seems odd that you don't have coreutils/test already...
> Test is part of coreutils on Ubuntu-20.04:
>
> $ which test
> /usr/bin/test
> $ dpkg -S /usr/bin/test
> coreutils: /usr/bin/test
>
> What distro are you using for your build machine and
> have you installed the suggested packages?
> See the quick start guide and links therein:
>
> https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html 
>
>
> https://docs.yoctoproject.org/ref-manual/ref-system-requirements.html#supported-linux-distributions 
>
>
> Also, if you could mention the layers and version of YP code
> that you are using that could be helpful in general although
> for this issue it shouldn't matter.
>
>
> ../Randy
>
>
>>
>> Thanks in advance
>>
>> Andrew
>>
>>
>> 
>>
>
>


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

* Re: [yocto] #uboot Problem compiling u-boot with bitbake
  2020-12-05 19:59   ` ajellisuk
@ 2020-12-05 20:27     ` Randy MacLeod
  2020-12-05 23:20       ` Andrew Ellis
  0 siblings, 1 reply; 7+ messages in thread
From: Randy MacLeod @ 2020-12-05 20:27 UTC (permalink / raw)
  To: Andrew Ellis, yocto

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

On 2020-12-05 2:59 p.m., Andrew Ellis wrote:
> Hi Randy
>
> Thank you for your reply.
>
> I'm using Ubuntu 14.04 .
>
> After reading what you said about coreutils in your last message, I 
> tried installing coreutils and got a message saying the latest version 
> is installed. Doing "which test" doesn't yield anything. I've looked 
> in /usr/bin/ and there is no sign of test in there.
>
> The version of Yocto Project I'm using is 2.5 "poky"
>
> Andrew

Andrew,

Thanks for the info about your distro and YP version.

It's odd that 'test' isn't part of your coreutils install.
    https://launchpad.net/ubuntu/trusty/+package/coreutils

Is it possible that you have removed it somehow?
If so you could try:

$ sudo apt install --reinstall coreutils
or
$ sudo apt-get install --reinstall coreutils

../Randy

||

>
> On 05/12/2020 18:54, Randy MacLeod wrote:
>> On 2020-12-04 7:08 p.m., ajellisuk via lists.yoctoproject.org wrote:
>>> Hi
>>>
>>> I'm trying to compile u-boot for an iMX6 board (iMX6-Q7_Plus from 
>>> MSC technologies), but the compile process fails with the following 
>>> output:
>>>
>>>     ERROR: Unable to start bitbake server
>>>     ERROR: Last 10 lines of server log for this session
>>> (/home/user/msc-yocto-140/msc-ldk/build/1006/bitbake-cookerdaemon.log):
>>>          self.cooker = bb.cooker.BBCooker(self.configuration,
>>>     self.featureset)
>>>        File
>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>
>>>     line 197, in __init__
>>>          self.initConfigurationData()
>>>        File
>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>
>>>     line 356, in initConfigurationData
>>>          self.databuilder.parseBaseConfiguration()
>>>        File
>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cookerdata.py", 
>>>
>>>     line 317, in parseBaseConfiguration
>>>          raise bb.BBHandledException
>>>     bb.BBHandledException
>>>     ERROR: The following required tools (as specified by HOSTTOOLS)
>>>     appear to be unavailable in PATH, please install them in order to
>>>     proceed:
>>>        test
>>>
>>>     ERROR: bitbake u-boot-imx -c compile –f
>>>
>>> I have had errors like this before, and have been to resolve by 
>>> installing the missing tools indicated. The problem that I've got 
>>> here is that I'm not sure what "test" is referring to. using, "sudo 
>>> apt-get install test", doesn't work.
>>>
>>> Can someone please give me a hint as to what the problem is here.
>>
>> Hi Andrew,
>>
>> It seems odd that you don't have coreutils/test already...
>> Test is part of coreutils on Ubuntu-20.04:
>>
>> $ which test
>> /usr/bin/test
>> $ dpkg -S /usr/bin/test
>> coreutils: /usr/bin/test
>>
>> What distro are you using for your build machine and
>> have you installed the suggested packages?
>> See the quick start guide and links therein:
>>
>> https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html 
>>
>>
>> https://docs.yoctoproject.org/ref-manual/ref-system-requirements.html#supported-linux-distributions 
>>
>>
>> Also, if you could mention the layers and version of YP code
>> that you are using that could be helpful in general although
>> for this issue it shouldn't matter.
>>
>>
>> ../Randy
>>
>>
>>>
>>> Thanks in advance
>>>
>>> Andrew
>>>
>>>
>>> 
>>>
>>
>>
>

-- 
# Randy MacLeod
# Wind River Linux


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

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

* Re: [yocto] #uboot Problem compiling u-boot with bitbake
  2020-12-05 20:27     ` Randy MacLeod
@ 2020-12-05 23:20       ` Andrew Ellis
  2020-12-06 16:56         ` Randy MacLeod
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Ellis @ 2020-12-05 23:20 UTC (permalink / raw)
  To: Randy MacLeod, yocto

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

Hi Randy

Thank you for your reply.

Doing, "sudo apt install --reinstall coreutils" fixed the problem with 
test not being found. I'm not sure why it was not on the system, but 
that error is fixed.

Unfortunately I've run into another problem when I try and run bitbake, 
the process fails witht he following error:

/ ports/linux/pseudo_wrappers.c:68:16: error: ‘__NR_renameat2’ 
undeclared (first use in this function)/
/
/

I'll take another look at that issue in the morning.


Andrew


On 05/12/2020 20:27, Randy MacLeod wrote:
> On 2020-12-05 2:59 p.m., Andrew Ellis wrote:
>> Hi Randy
>>
>> Thank you for your reply.
>>
>> I'm using Ubuntu 14.04 .
>>
>> After reading what you said about coreutils in your last message, I 
>> tried installing coreutils and got a message saying the latest 
>> version is installed. Doing "which test" doesn't yield anything. I've 
>> looked in /usr/bin/ and there is no sign of test in there.
>>
>> The version of Yocto Project I'm using is 2.5 "poky"
>>
>> Andrew
>
> Andrew,
>
> Thanks for the info about your distro and YP version.
>
> It's odd that 'test' isn't part of your coreutils install.
> https://launchpad.net/ubuntu/trusty/+package/coreutils
>
> Is it possible that you have removed it somehow?
> If so you could try:
>
> $ sudo apt install --reinstall coreutils
> or
> $ sudo apt-get install --reinstall coreutils
>
> ../Randy
>
> ||
>>
>> On 05/12/2020 18:54, Randy MacLeod wrote:
>>> On 2020-12-04 7:08 p.m., ajellisuk via lists.yoctoproject.org wrote:
>>>> Hi
>>>>
>>>> I'm trying to compile u-boot for an iMX6 board (iMX6-Q7_Plus from 
>>>> MSC technologies), but the compile process fails with the following 
>>>> output:
>>>>
>>>>     ERROR: Unable to start bitbake server
>>>>     ERROR: Last 10 lines of server log for this session
>>>> (/home/user/msc-yocto-140/msc-ldk/build/1006/bitbake-cookerdaemon.log): 
>>>>
>>>>          self.cooker = bb.cooker.BBCooker(self.configuration,
>>>>     self.featureset)
>>>>        File
>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>>
>>>>     line 197, in __init__
>>>>          self.initConfigurationData()
>>>>        File
>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>>
>>>>     line 356, in initConfigurationData
>>>>          self.databuilder.parseBaseConfiguration()
>>>>        File
>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cookerdata.py", 
>>>>
>>>>     line 317, in parseBaseConfiguration
>>>>          raise bb.BBHandledException
>>>>     bb.BBHandledException
>>>>     ERROR: The following required tools (as specified by HOSTTOOLS)
>>>>     appear to be unavailable in PATH, please install them in order to
>>>>     proceed:
>>>>        test
>>>>
>>>>     ERROR: bitbake u-boot-imx -c compile –f
>>>>
>>>> I have had errors like this before, and have been to resolve by 
>>>> installing the missing tools indicated. The problem that I've got 
>>>> here is that I'm not sure what "test" is referring to. using, "sudo 
>>>> apt-get install test", doesn't work.
>>>>
>>>> Can someone please give me a hint as to what the problem is here.
>>>
>>> Hi Andrew,
>>>
>>> It seems odd that you don't have coreutils/test already...
>>> Test is part of coreutils on Ubuntu-20.04:
>>>
>>> $ which test
>>> /usr/bin/test
>>> $ dpkg -S /usr/bin/test
>>> coreutils: /usr/bin/test
>>>
>>> What distro are you using for your build machine and
>>> have you installed the suggested packages?
>>> See the quick start guide and links therein:
>>>
>>> https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html 
>>>
>>>
>>> https://docs.yoctoproject.org/ref-manual/ref-system-requirements.html#supported-linux-distributions 
>>>
>>>
>>> Also, if you could mention the layers and version of YP code
>>> that you are using that could be helpful in general although
>>> for this issue it shouldn't matter.
>>>
>>>
>>> ../Randy
>>>
>>>
>>>>
>>>> Thanks in advance
>>>>
>>>> Andrew
>>>>
>>>>
>>>> 
>>>>
>>>
>>>
>>
>
> -- 
> # Randy MacLeod
> # Wind River Linux



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

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

* Re: [yocto] #uboot Problem compiling u-boot with bitbake
  2020-12-05 23:20       ` Andrew Ellis
@ 2020-12-06 16:56         ` Randy MacLeod
  2020-12-07 22:05           ` Andrew Ellis
  0 siblings, 1 reply; 7+ messages in thread
From: Randy MacLeod @ 2020-12-06 16:56 UTC (permalink / raw)
  To: Andrew Ellis, yocto

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

On 2020-12-05 6:20 p.m., Andrew Ellis wrote:
> Hi Randy
>
> Thank you for your reply.
>
> Doing, "sudo apt install --reinstall coreutils" fixed the problem with 
> test not being found. I'm not sure why it was not on the system, but 
> that error is fixed.

Ah, good.


>
> Unfortunately I've run into another problem when I try and run 
> bitbake, the process fails witht he following error:
>
> / ports/linux/pseudo_wrappers.c:68:16: error: ‘__NR_renameat2’ 
> undeclared (first use in this function)/
> /
> /
>
> I'll take another look at that issue in the morning.
>

You'll need to upgrade to a newer yocto release or cherry-pick:

$ cd ../oe-core.git

$ git log -1 --stat 0fb257121b68f38b40c078150db8f7d0979b7ea5
commit 0fb257121b68f38b40c078150db8f7d0979b7ea5
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Wed Apr 10 19:07:02 2019

     pseudo: Update to gain key bugfixes

     Newer distros are using new versions of glibc and coreutils which 
use the new glibc
     renameat2 function. We need to intercept this for correct 
functioning of pseudo. This
     is essential to ensure new distros continue to work with the project.

     Also, this version has a fix for path/inode cross corruption 
problems which
     may explain our mysterious locale permissions issues.

     Many thanks to Otavio and Peter Seebach for the help in figuring 
this out and
     fixing it.

     Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

  meta/recipes-devtools/pseudo/pseudo_git.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)


$ git tag --contains 0fb257121b68f38b40c078150db8f7d0979b7ea5
2019-04
2019-04-warrior
2019-04.2-warrior
2019-04.3-warrior
2019-04.4-warrior
2019-10
2019-10-zeus
2019-10.1-zeus
2019-10.2-zeus
2019-10.3-zeus
2019-10.4-zeus
2020-04
2020-04-dunfell
2020-04.1-dunfell
2020-04.2-dunfell
2020-04.3-dunfell
2020-10
2020-10-gatesgarth
uninative-2.5
uninative-2.6
uninative-2.7
uninative-2.8
uninative-2.9
yocto-2.7
yocto-3.0
yocto-3.1
yocto-3.2


../Randy


>
> Andrew
>
>
> On 05/12/2020 20:27, Randy MacLeod wrote:
>> On 2020-12-05 2:59 p.m., Andrew Ellis wrote:
>>> Hi Randy
>>>
>>> Thank you for your reply.
>>>
>>> I'm using Ubuntu 14.04 .
>>>
>>> After reading what you said about coreutils in your last message, I 
>>> tried installing coreutils and got a message saying the latest 
>>> version is installed. Doing "which test" doesn't yield anything. 
>>> I've looked in /usr/bin/ and there is no sign of test in there.
>>>
>>> The version of Yocto Project I'm using is 2.5 "poky"
>>>
>>> Andrew
>>
>> Andrew,
>>
>> Thanks for the info about your distro and YP version.
>>
>> It's odd that 'test' isn't part of your coreutils install.
>> https://launchpad.net/ubuntu/trusty/+package/coreutils
>>
>> Is it possible that you have removed it somehow?
>> If so you could try:
>>
>> $ sudo apt install --reinstall coreutils
>> or
>> $ sudo apt-get install --reinstall coreutils
>>
>> ../Randy
>>
>> ||
>>>
>>> On 05/12/2020 18:54, Randy MacLeod wrote:
>>>> On 2020-12-04 7:08 p.m., ajellisuk via lists.yoctoproject.org wrote:
>>>>> Hi
>>>>>
>>>>> I'm trying to compile u-boot for an iMX6 board (iMX6-Q7_Plus from 
>>>>> MSC technologies), but the compile process fails with the 
>>>>> following output:
>>>>>
>>>>>     ERROR: Unable to start bitbake server
>>>>>     ERROR: Last 10 lines of server log for this session
>>>>> (/home/user/msc-yocto-140/msc-ldk/build/1006/bitbake-cookerdaemon.log): 
>>>>>
>>>>>          self.cooker = bb.cooker.BBCooker(self.configuration,
>>>>>     self.featureset)
>>>>>        File
>>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>>>
>>>>>     line 197, in __init__
>>>>>          self.initConfigurationData()
>>>>>        File
>>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>>>
>>>>>     line 356, in initConfigurationData
>>>>>          self.databuilder.parseBaseConfiguration()
>>>>>        File
>>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cookerdata.py", 
>>>>>
>>>>>     line 317, in parseBaseConfiguration
>>>>>          raise bb.BBHandledException
>>>>>     bb.BBHandledException
>>>>>     ERROR: The following required tools (as specified by HOSTTOOLS)
>>>>>     appear to be unavailable in PATH, please install them in order to
>>>>>     proceed:
>>>>>        test
>>>>>
>>>>>     ERROR: bitbake u-boot-imx -c compile –f
>>>>>
>>>>> I have had errors like this before, and have been to resolve by 
>>>>> installing the missing tools indicated. The problem that I've got 
>>>>> here is that I'm not sure what "test" is referring to. using, 
>>>>> "sudo apt-get install test", doesn't work.
>>>>>
>>>>> Can someone please give me a hint as to what the problem is here.
>>>>
>>>> Hi Andrew,
>>>>
>>>> It seems odd that you don't have coreutils/test already...
>>>> Test is part of coreutils on Ubuntu-20.04:
>>>>
>>>> $ which test
>>>> /usr/bin/test
>>>> $ dpkg -S /usr/bin/test
>>>> coreutils: /usr/bin/test
>>>>
>>>> What distro are you using for your build machine and
>>>> have you installed the suggested packages?
>>>> See the quick start guide and links therein:
>>>>
>>>> https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html 
>>>>
>>>>
>>>> https://docs.yoctoproject.org/ref-manual/ref-system-requirements.html#supported-linux-distributions 
>>>>
>>>>
>>>> Also, if you could mention the layers and version of YP code
>>>> that you are using that could be helpful in general although
>>>> for this issue it shouldn't matter.
>>>>
>>>>
>>>> ../Randy
>>>>
>>>>
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Andrew
>>>>>
>>>>>
>>>>> 
>>>>>
>>>>
>>>>
>>>
>>
>> -- 
>> # Randy MacLeod
>> # Wind River Linux
>
>

-- 
# Randy MacLeod
# Wind River Linux


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

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

* Re: [yocto] #uboot Problem compiling u-boot with bitbake
  2020-12-06 16:56         ` Randy MacLeod
@ 2020-12-07 22:05           ` Andrew Ellis
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Ellis @ 2020-12-07 22:05 UTC (permalink / raw)
  To: yocto

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

Hi Randy

Thanks again for you help.

I upgraded my build system to Ubuntu 16.04, and this resolved the build 
errors I was having. There were historical reasons for the build drive 
being installed with 14.04, but that is no longer necessary. Upgrading 
to 16.04 cured the build problem.

Kind regards

Andrew

On 06/12/2020 16:56, Randy MacLeod wrote:
> On 2020-12-05 6:20 p.m., Andrew Ellis wrote:
>> Hi Randy
>>
>> Thank you for your reply.
>>
>> Doing, "sudo apt install --reinstall coreutils" fixed the problem 
>> with test not being found. I'm not sure why it was not on the system, 
>> but that error is fixed.
>
> Ah, good.
>
>
>>
>> Unfortunately I've run into another problem when I try and run 
>> bitbake, the process fails witht he following error:
>>
>> / ports/linux/pseudo_wrappers.c:68:16: error: ‘__NR_renameat2’ 
>> undeclared (first use in this function)/
>> /
>> /
>>
>> I'll take another look at that issue in the morning.
>>
>
> You'll need to upgrade to a newer yocto release or cherry-pick:
>
> $ cd ../oe-core.git
>
> $ git log -1 --stat 0fb257121b68f38b40c078150db8f7d0979b7ea5
> commit 0fb257121b68f38b40c078150db8f7d0979b7ea5
> Author: Richard Purdie <richard.purdie@linuxfoundation.org>
> Date:   Wed Apr 10 19:07:02 2019
>
>     pseudo: Update to gain key bugfixes
>
>     Newer distros are using new versions of glibc and coreutils which 
> use the new glibc
>     renameat2 function. We need to intercept this for correct 
> functioning of pseudo. This
>     is essential to ensure new distros continue to work with the project.
>
>     Also, this version has a fix for path/inode cross corruption 
> problems which
>     may explain our mysterious locale permissions issues.
>
>     Many thanks to Otavio and Peter Seebach for the help in figuring 
> this out and
>     fixing it.
>
>     Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
>  meta/recipes-devtools/pseudo/pseudo_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> $ git tag --contains 0fb257121b68f38b40c078150db8f7d0979b7ea5
> 2019-04
> 2019-04-warrior
> 2019-04.2-warrior
> 2019-04.3-warrior
> 2019-04.4-warrior
> 2019-10
> 2019-10-zeus
> 2019-10.1-zeus
> 2019-10.2-zeus
> 2019-10.3-zeus
> 2019-10.4-zeus
> 2020-04
> 2020-04-dunfell
> 2020-04.1-dunfell
> 2020-04.2-dunfell
> 2020-04.3-dunfell
> 2020-10
> 2020-10-gatesgarth
> uninative-2.5
> uninative-2.6
> uninative-2.7
> uninative-2.8
> uninative-2.9
> yocto-2.7
> yocto-3.0
> yocto-3.1
> yocto-3.2
>
>
> ../Randy
>
>
>>
>> Andrew
>>
>>
>> On 05/12/2020 20:27, Randy MacLeod wrote:
>>> On 2020-12-05 2:59 p.m., Andrew Ellis wrote:
>>>> Hi Randy
>>>>
>>>> Thank you for your reply.
>>>>
>>>> I'm using Ubuntu 14.04 .
>>>>
>>>> After reading what you said about coreutils in your last message, I 
>>>> tried installing coreutils and got a message saying the latest 
>>>> version is installed. Doing "which test" doesn't yield anything. 
>>>> I've looked in /usr/bin/ and there is no sign of test in there.
>>>>
>>>> The version of Yocto Project I'm using is 2.5 "poky"
>>>>
>>>> Andrew
>>>
>>> Andrew,
>>>
>>> Thanks for the info about your distro and YP version.
>>>
>>> It's odd that 'test' isn't part of your coreutils install.
>>> https://launchpad.net/ubuntu/trusty/+package/coreutils
>>>
>>> Is it possible that you have removed it somehow?
>>> If so you could try:
>>>
>>> $ sudo apt install --reinstall coreutils
>>> or
>>> $ sudo apt-get install --reinstall coreutils
>>>
>>> ../Randy
>>>
>>> ||
>>>>
>>>> On 05/12/2020 18:54, Randy MacLeod wrote:
>>>>> On 2020-12-04 7:08 p.m., ajellisuk via lists.yoctoproject.org wrote:
>>>>>> Hi
>>>>>>
>>>>>> I'm trying to compile u-boot for an iMX6 board (iMX6-Q7_Plus from 
>>>>>> MSC technologies), but the compile process fails with the 
>>>>>> following output:
>>>>>>
>>>>>>     ERROR: Unable to start bitbake server
>>>>>>     ERROR: Last 10 lines of server log for this session
>>>>>> (/home/user/msc-yocto-140/msc-ldk/build/1006/bitbake-cookerdaemon.log): 
>>>>>>
>>>>>>          self.cooker = bb.cooker.BBCooker(self.configuration,
>>>>>>     self.featureset)
>>>>>>        File
>>>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>>>>
>>>>>>     line 197, in __init__
>>>>>>          self.initConfigurationData()
>>>>>>        File
>>>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cooker.py", 
>>>>>>
>>>>>>     line 356, in initConfigurationData
>>>>>>          self.databuilder.parseBaseConfiguration()
>>>>>>        File
>>>>>> "/home/user/msc-yocto-140/msc-ldk/sources/yocto.git/bitbake/lib/bb/cookerdata.py", 
>>>>>>
>>>>>>     line 317, in parseBaseConfiguration
>>>>>>          raise bb.BBHandledException
>>>>>>     bb.BBHandledException
>>>>>>     ERROR: The following required tools (as specified by HOSTTOOLS)
>>>>>>     appear to be unavailable in PATH, please install them in 
>>>>>> order to
>>>>>>     proceed:
>>>>>>        test
>>>>>>
>>>>>>     ERROR: bitbake u-boot-imx -c compile –f
>>>>>>
>>>>>> I have had errors like this before, and have been to resolve by 
>>>>>> installing the missing tools indicated. The problem that I've got 
>>>>>> here is that I'm not sure what "test" is referring to. using, 
>>>>>> "sudo apt-get install test", doesn't work.
>>>>>>
>>>>>> Can someone please give me a hint as to what the problem is here.
>>>>>
>>>>> Hi Andrew,
>>>>>
>>>>> It seems odd that you don't have coreutils/test already...
>>>>> Test is part of coreutils on Ubuntu-20.04:
>>>>>
>>>>> $ which test
>>>>> /usr/bin/test
>>>>> $ dpkg -S /usr/bin/test
>>>>> coreutils: /usr/bin/test
>>>>>
>>>>> What distro are you using for your build machine and
>>>>> have you installed the suggested packages?
>>>>> See the quick start guide and links therein:
>>>>>
>>>>> https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html 
>>>>>
>>>>>
>>>>> https://docs.yoctoproject.org/ref-manual/ref-system-requirements.html#supported-linux-distributions 
>>>>>
>>>>>
>>>>> Also, if you could mention the layers and version of YP code
>>>>> that you are using that could be helpful in general although
>>>>> for this issue it shouldn't matter.
>>>>>
>>>>>
>>>>> ../Randy
>>>>>
>>>>>
>>>>>>
>>>>>> Thanks in advance
>>>>>>
>>>>>> Andrew
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> -- 
>>> # Randy MacLeod
>>> # Wind River Linux
>>
>>
>
> -- 
> # Randy MacLeod
> # Wind River Linux
>
> 
>


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

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

end of thread, other threads:[~2020-12-07 22:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-05  0:08 #uboot Problem compiling u-boot with bitbake ajellisuk
2020-12-05 18:54 ` [yocto] " Randy MacLeod
2020-12-05 19:59   ` ajellisuk
2020-12-05 20:27     ` Randy MacLeod
2020-12-05 23:20       ` Andrew Ellis
2020-12-06 16:56         ` Randy MacLeod
2020-12-07 22:05           ` Andrew Ellis

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.