[U-Boot] [PATCH] tools: build some commands without -pedantic

Mike Frysinger vapier at gentoo.org
Tue Jul 12 20:57:21 CEST 2011


On Tue, Jul 12, 2011 at 14:48, Linus Walleij wrote:
> On Tue, Jul 12, 2011 at 5:49 PM, Mike Frysinger wrote:
>> On Tue, Jul 12, 2011 at 11:24, Linus Walleij wrote:
>>> I do this, first I apply the patches I sent for Integrator support, then
>>> I apply this patch to test with network support:
>>
>> no changes at all should be necessary to include/configs/.  build the
>> tools in an unconfigured tree to avoid any of that cruft.
>>
>> $ git clean -x -d
>> $ make tools
>> $ size tools/gen_eth_addr.o
>
> If you do this gen_eth_addr.o isn't even built, since it is only built
> if you first configure a board with CONFIG_CMD_NET of some kind.

not really.  either use `make tools-all`, or `make CONFIG_CMD_NET=y
tools`.  but you figured that out already ...

> I indeed get the same error again:
> make -C tools all
> make[1]: Entering directory `/home/linus/u-boot/tools'
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter
> /home/linus/u-boot/include -idirafter /home/linus/u-boot/include2
> -idirafter /home/linus/u-boot/include -I /home/linus/u-boot/lib/libfdt
> -I /home/linus/u-boot/tools -DCONFIG_SYS_TEXT_BASE= -DUSE_HOSTCC
> -D__KERNEL_STRICT_NAMES -pedantic   -o gen_eth_addr.o gen_eth_addr.c
> -c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter
> /home/linus/u-boot/include -idirafter /home/linus/u-boot/include2
> -idirafter /home/linus/u-boot/include -I /home/linus/u-boot/lib/libfdt
> -I /home/linus/u-boot/tools -DCONFIG_SYS_TEXT_BASE= -DUSE_HOSTCC
> -D__KERNEL_STRICT_NAMES -pedantic  -o gen_eth_addr gen_eth_addr.o
> gen_eth_addr.o: file not recognized: File truncated
> collect2: ld returned 1 exit status
> make[1]: *** [gen_eth_addr] Error 1
> make[1]: Leaving directory `/home/linus/u-boot/tools'
> make: *** [tools] Error 2
>
> So yes, I can positively repeat this on a clean tree. It's still -pendantic that
> is the culprit, if I copy the above and run manually without -pedantic
> it compiles fine.

are you using ccache ?
-mike


More information about the U-Boot mailing list