u-boot compilation failure for Sifive unmatched board

Fabio Estevam festevam at gmail.com
Fri Jun 30 20:49:47 CEST 2023


Hi Satish,

On Fri, Jun 30, 2023 at 3:21 PM satish kumar <gsatish.ldd at gmail.com> wrote:
>
> Hi all
> This is Satish, compiling u-boot code based on the reference page:
> https://github.com/carlosedp/riscv-bringup/blob/master/unmatched/Readme.md#install-toolchain-to-build-kernel
>
> u-boot is failing with following commit id & its tag is
> commit d637294e264adfeb29f390dfc393106fd4d41b17 (HEAD, tag: v2022.01)
>
> Last tag working is:
> commit b46dd116ce03e235f2a7d4843c6278e1da44b5e1 (HEAD, tag: v2021.04)

Please try mainline U-Boot instead and follow the instructions at:
doc/board/sifive/unmatched.rst

> Error log is:
> scripts/dtc/pylibfdt/libfdt_wrap.c:149:11: fatal error: Python.h: No
> such file or directory
>  # include <Python.h>
>            ^~~~~~~~~~
> compilation terminated.

You need to install python package in your host.

For example, on Debian: sudo apt-get install python3-dev


More information about the U-Boot mailing list