[U-Boot] silly error caused by /usr/local/include/config.h - STD_END_SIZE build failure

http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg07045.html
i've tracked down what the problem is, and the fix to avoid the problem occurring in the future is either:
a) do as the person says - #include "../config.h" not #include <config.h>
b) add -I. to the gcc compile options, to prioritise cwd over /usr/local/include and /usr/include.
c) create a gcc spec file (in /usr/lib/gcc/....) which doesn't have /usr/local/include or /usr/include
this latter is not a serious suggestion.
i encountered this exact same problem because i happened to have some f****g stupid package install a config.h file in /usr/local/include - but to delete that file is NOT the solution.
l.

geez, this really _isn't_ good - i've found _yet another_ identically-caused error, because i happen to have linux header files installed locally (/usr/include/linux) and the default HOST-CC setup compilation has that taking precedence over ./include/linux in the u-boot sources - so include/linux/mtd/mtd.h is never found.
what's going on??
On Tue, Nov 9, 2010 at 3:59 PM, Luke Kenneth Casson Leighton luke.leighton@gmail.com wrote:
http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg07045.html
i've tracked down what the problem is, and the fix to avoid the problem occurring in the future is either:
a) do as the person says - #include "../config.h" not #include <config.h>

On Tue, Nov 9, 2010 at 5:38 PM, Luke Kenneth Casson Leighton luke.leighton@gmail.com wrote:
geez, this really _isn't_ good - i've found _yet another_ identically-caused error, because i happen to have linux header files installed locally (/usr/include/linux) and the default HOST-CC setup compilation has that taking precedence over ./include/linux in the u-boot sources - so include/linux/mtd/mtd.h is never found.
what's going on??
*sigh* i found that latest git master u-boot has this fixed - and a boat-load of other problems fixed in tools/env - as compared to u-boot 1.2.0 which is what the customer is using argh bloody hell off we go, patch or hack.... :)
l.
participants (1)
-
Luke Kenneth Casson Leighton