public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Build error: caused by CONFIG_SPL_LOG_CONSOLE
@ 2019-04-12 23:01 U.Mutlu
  2019-04-24 13:21 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: U.Mutlu @ 2019-04-12 23:01 UTC (permalink / raw)
  To: u-boot

If I activate "Enable logging support in SPL" (ie. CONFIG_SPL_LOG_CONSOLE),
ie. the following window in make menuconfig:

   Logging  --->

     [*] Enable logging support
     [*]   Enable logging support in SPL
     [*]   Enable logging support in TPL
     (5)   Maximum log level to record
     (3) Maximum log level to record in SPL (NEW)
     (3) Maximum log level to record in TPL
     (6) Default logging level to display
     [*] Allow log output to the console
     [*] Allow log output to the console in SPL (NEW)
     [*] Allow log output to the console in SPL
     [ ] Provide a test for logging
     [*] Log all functions which return an error

then the build fails as follows (paths sanitized):

arm-linux-gnueabihf-ld.bfd: common/built-in.o: in function `log_get_cat_name':
/.../u-boot/common/log.c:48: undefined reference to `uclass_get_name'
arm-linux-gnueabihf-ld.bfd: common/built-in.o: in function `_log':
/.../u-boot/common/log.c:212: undefined reference to `vsnprintf'
scripts/Makefile.spl:384: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1664: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2


Deactivating "Enable logging support in SPL" builds ok.


Version:
U-Boot 2019.04-00077-g48ff1bc4f0
(using stock git source tree w/o any own modifications)

Platform:
CONFIG_ARM=y
CONFIG_SYS_ARCH="arm"
CONFIG_SYS_CPU="armv7"
CONFIG_SYS_SOC="sunxi"
CONFIG_SYS_BOARD="sunxi"
CONFIG_SYS_CONFIG_NAME="sun7i"
CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-lamobo-r1"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Build error: caused by CONFIG_SPL_LOG_CONSOLE
  2019-04-12 23:01 [U-Boot] Build error: caused by CONFIG_SPL_LOG_CONSOLE U.Mutlu
@ 2019-04-24 13:21 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-04-24 13:21 UTC (permalink / raw)
  To: u-boot

On Sat, Apr 13, 2019 at 01:01:52AM +0200, U.Mutlu wrote:

> If I activate "Enable logging support in SPL" (ie. CONFIG_SPL_LOG_CONSOLE),
> ie. the following window in make menuconfig:
> 
>   Logging  --->
> 
>     [*] Enable logging support
>     [*]   Enable logging support in SPL
>     [*]   Enable logging support in TPL
>     (5)   Maximum log level to record
>     (3) Maximum log level to record in SPL (NEW)
>     (3) Maximum log level to record in TPL
>     (6) Default logging level to display
>     [*] Allow log output to the console
>     [*] Allow log output to the console in SPL (NEW)
>     [*] Allow log output to the console in SPL
>     [ ] Provide a test for logging
>     [*] Log all functions which return an error
> 
> then the build fails as follows (paths sanitized):
> 
> arm-linux-gnueabihf-ld.bfd: common/built-in.o: in function `log_get_cat_name':
> /.../u-boot/common/log.c:48: undefined reference to `uclass_get_name'
> arm-linux-gnueabihf-ld.bfd: common/built-in.o: in function `_log':
> /.../u-boot/common/log.c:212: undefined reference to `vsnprintf'
> scripts/Makefile.spl:384: recipe for target 'spl/u-boot-spl' failed
> make[1]: *** [spl/u-boot-spl] Error 1
> Makefile:1664: recipe for target 'spl/u-boot-spl' failed
> make: *** [spl/u-boot-spl] Error 2
> 
> 
> Deactivating "Enable logging support in SPL" builds ok.

Sounds like the Kconfig option is missing a depends on line.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190424/3b1c89a2/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-24 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-12 23:01 [U-Boot] Build error: caused by CONFIG_SPL_LOG_CONSOLE U.Mutlu
2019-04-24 13:21 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox