Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Cannot build core-image-base with meta-riscv: utility file is not found #57

Open
mkopec opened this issue May 16, 2023 · 6 comments
Open
Assignees

Comments

@mkopec
Copy link
Member

mkopec commented May 16, 2023

Building core-image-base for MangoPi MQ Pro using instructions from https://github.com/riscv/meta-riscv , while attempting to run docker-bake.sh, fails with the following error message:

ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
  file
@mkopec mkopec changed the title Cannot build meta-riscv: utility file is not found Cannot build core-image-base with meta-riscv: utility file is not found May 16, 2023
@mkopec mkopec changed the title Cannot build core-image-base with meta-riscv: utility file is not found Cannot build core-image-base with meta-riscv: utility file is not found May 16, 2023
@pietrushnic
Copy link
Member

@mkopec I guess we last used this container a long time ago. The preferred method is KAS: https://blog.3mdeb.com/2019/2019-02-07-kas/

@TomaszAIR
Copy link
Contributor

@pietrushnic we are still using this container in some projects or training; but as you said KAS is preferred method.

@mkopec saying so, I am not sure if docker-bake.sh was tested. Could you please provide instructions how did you prepared layers for your build? This container was tested last time on kirkstone https://github.com/3mdeb/yocto-docker/blob/master/Dockerfile#L4 From what I see, meta-riscv uses mickledore on main - https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf#L26

Could you please test on kirkstone first? There should be dedicated branch on meta-riscv

@mkopec
Copy link
Member Author

mkopec commented May 17, 2023

@TomaszAIR Thanks, here's the exact steps I followed:

mkdir riscv-yocto && cd riscv-yocto
repo init -u https://github.com/riscv/meta-riscv  -b master -m tools/manifests/riscv-yocto.xml
repo sync
repo start work --all
MACHINE=mangopi-mq-pro POKY_DIR=`realpath openembedded-core` yocto-docker/docker-bake.sh core-image-base

Will try to reproduce with kirkstone next. But it's probably preferable to use KAS from the get-go, as you and @pietrushnic said, so I'll try going in that direction first. For now I managed to build on my host system - had some issues with Arch's GCC v13 being too new for cmake-native, but worked around it by setting the CC to gcc-12 in openembedded-core/meta/conf/bitbake.conf

@pietrushnic Thanks, will check it out - I admit I saw that blogpost earlier, but assumed this repo would be easier to start with. I also saw some recent commits so I guessed it's still supported.

@TomaszAIR
Copy link
Contributor

@mkopec here https://youtu.be/PLl8jwZOpS0?t=1409 I had presentation about different layer management tools, also kas (it uses outdated kas-docker, now kas-container https://github.com/siemens/kas/blob/master/kas-container) - you can also check that out.

@pietrushnic
Copy link
Member

@pietrushnic we are still using this container in some projects or training; but as you said KAS is preferred method.

So, I guess we should get rid of this dependency.

@mkopec
Copy link
Member Author

mkopec commented May 19, 2023

Will try to reproduce with kirkstone

That won't work since support for MangoPi MQ Pro wasn't added until very recently :\

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants