Trouble building sandbox

Sergei Antonov saproj at gmail.com
Mon Jun 12 12:56:07 CEST 2023


Hello!
I get a build error with sandbox and sandbox64 configurations in the
latest master. Using gcc version 12.2.0 (Ubuntu 12.2.0-3ubuntu1).

In file included from .../u-Boot-Zlib/u-boot/include/test/test.h:156,
                 from .../u-boot/include/test/lib.h:9,
                 from .../u-boot/test/lib/test_crc8.c:8:
.../u-boot/arch/sandbox/include/asm/test.h: In function ‘sandbox_sdl_set_bpp’:
.../u-boot/arch/sandbox/include/asm/test.h:323:17: error: ‘ENOSYS’
undeclared (first use in this function)
  323 |         return -ENOSYS;
      |                 ^~~~~~

It is fixed by adding
#include <errno.h>
to arch/sandbox/include/asm/test.h
Should I submit a patch? Or is it fixed somewhere else?


More information about the U-Boot mailing list