[U-Boot] Compiler error with BUILD_DIR

Wolfgang Denk wd at denx.de
Thu Apr 16 11:08:53 CEST 2009


Dear Guenter,

please STOP top posting / full quoting!!! Make sure to read
http://www.netmeister.org/news/learn2quote.html before posting again.
Thanks.

In message <D0B748CCD5DF144CA5C56A9D860A31341DE601 at men-exch1.intra.men.de> you wrote:
>
> it's the same with standard u-boot, compiling MPC8315ERDB.

Hm... I don't see this problem here:

	-> git-checkout v2009.03
	-> ./MAKEALL MPC8315ERDB
	Configuring for MPC8315ERDB board...
	   text    data     bss     dec     hex filename
	 265132   20616   33556  319304   4df48 ./u-boot
	-> BUILD_DIR=/work/wd/tmp-ppc ./MAKEALL MPC8315ERDB
	Configuring for MPC8315ERDB board...
	   text    data     bss     dec     hex filename
	 265132   20616   33556  319304   4df48 /work/wd/tmp-ppc/u-boot

> The problem is caused by the installed newer version of the dtc.

The problem? What *exactly* is your problem?

> The libfdt.h differs in the declaration of fdt_offset_ptr.
> 
> 	$diff /usr/include/../include/libfdt.h u-boot-2009.03/include/libfdt.h
> 	125c125
> 	< const void *fdt_offset_ptr(const void *fdt, int offset, int checklen);
> 	---
> 	> const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);

I don't see where this should matter? U-Boot does not reference files
from /usr/include. Also, I fail to under stand how a "Compiler error
with BUILD_DIR" should result from this - if this was a real problem,
it should definitely be independent from setting BUILD_DIR or not.

Perhaps you might be so kind as to elucidate.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"He only drinks when he gets depressed." "Why does he get depressed?"
"Sometimes it's because he hasn't had a drink."
                                     - Terry Pratchett, _Men at Arms_


More information about the U-Boot mailing list