Skip to contentSkip to conversation

U-boot UBI breaks build with -O0

U-Boot Kevin Smith 2 participants 2 messages Sep 16, 2015 – Sep 17, 2015

lore
Share & tools
lore
#0 lore raw

Some of the debug functions for UBI are preprocessed out for U-boot (ifndef __UBOOT__), but their calls are optimized out at higher optimization levels, so this does not cause a problem. When building with -O0, the linker gives an error:

fs/ubifs/io.c:162: undefined reference to `dbg_leb_unmap'

This function is in a #ifndef __UBOOT__ section.

Kevin Smith

#1 lore raw

Hello Kevin,

Am 16.09.2015 um 22:58 schrieb Kevin Smith:

Quoted 8 lines

Some of the debug functions for UBI are preprocessed out for U-boot (ifndef __UBOOT__), but their calls are optimized out at higher optimization levels, so this does not cause a problem. When building with -O0, the linker gives an error:

fs/ubifs/io.c:162: undefined reference to `dbg_leb_unmap'

This function is in a #ifndef __UBOOT__ section.

Good catch. Could you provide a patch?

Thanks!

bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany