[BUG] sandbox_defconfig fails to build with origin/master dadc1e38306b1c3

Tom Rini trini at konsulko.com
Sat Oct 17 14:15:27 CEST 2020


On Sat, Oct 17, 2020 at 01:43:25PM +0200, Heinrich Schuchardt wrote:
> Hello Tom, hello Simon,
> 
> make sandbox_defconfig
> make V=1
> 
> yields:
> 
> make -f ./scripts/Makefile.build obj=test/log
>   gcc -Wp,-MD,test/log/.syslog_test.o.d -nostdinc -isystem
> /usr/lib/gcc/x86_64-linux-gnu/10/include -Iinclude
> -I./arch/sandbox/include -include ./include/linux/kconfig.h -D__KERNEL__
> -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin
> -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE
> -Os -fno-stack-protector -fno-delete-null-pointer-checks
> -Wno-stringop-truncation -Wno-maybe-uninitialized -fmacro-prefix-map=./=
> -g -fstack-usage -Wno-format-nonliteral -Wno-address-of-packed-member
> -Wno-unused-but-set-variable -Werror=date-time -Werror -D__SANDBOX__
> -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -fPIC -I/usr/include/SDL2
> -D_REENTRANT -pipe    -DKBUILD_BASENAME='"syslog_test"'
> -DKBUILD_MODNAME='"syslog_test"' -c -o test/log/syslog_test.o
> test/log/syslog_test.c
> test/log/syslog_test.c:21:10: fatal error: syslog_test.h: No such file
> or directory
>    21 | #include <syslog_test.h>
>       |          ^~~~~~~~~~~~~~~
> compilation terminated.
> 
> git bisect:
> 
> 52d3df7fefe30b05677db9055e68c666a071d89a is the first bad commit
> commit 52d3df7fefe30b05677db9055e68c666a071d89a
> Author: Simon Glass <sjg at chromium.org>
> Date:   Sat Sep 12 11:13:34 2020 -0600
> 
>     log: Allow LOG_DEBUG to always enable log output
> 
> @Tom:
> Why are such build failures not detected before merging?

I think because we have no tests for building in the source directory.
I'll pick up the fix for this today.

-- 
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/20201017/bf314410/attachment.sig>


More information about the U-Boot mailing list