Trouble building sandbox
Tom Rini
trini at konsulko.com
Mon Jun 12 18:37:22 CEST 2023
On Mon, Jun 12, 2023 at 01:56:07PM +0300, Sergei Antonov wrote:
> 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?
This is because you don't have SDL support packages installed. Please
submit a patch. I think the answer is that we need to move that
function prototype over to arch/sandbox/include/asm/sdl.h and make
test/dm/video.c include <asm/sdl.h>, FWIW.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230612/b392afe1/attachment.sig>
More information about the U-Boot
mailing list