FreeBSD and BeagleBone

Tim Kientzle tim at
Mon Jan 30 02:54:30 UTC 2012

On Jan 29, 2012, at 3:40 PM, Jeroen Hofstee wrote:

> On 01/21/12 07:34, Tim Kientzle wrote:
>> To actually get it to build, I've had to make two changes to U-Boot sources:
>>    * In, remove "-nostdinc" from CPPFLAGS
>>    * In Makefile, add /usr/arm-freebsd/usr/lib/libc.a to PLATFORM_LIBS
>> The first fixes missing stddef.h, stdarg.h headers.  (I'm not
>> sure why the -nostdinc works on Linux.)
> First of all, the standard c calls are excluded by u-boot on purpose since
> these might call the operating system which is not there yet...
> However some macro's, typedefs etc from the headers are of interest (like
> stdargs, types etc etc). Das U-boot resolves this by including
> gcc -print-file-name=include
> (when really needed?) The FreeBSD bootstrap gcc is simply too old to support
> this command, hence the missing includes. I don't know a workaround for it.

Thanks for the pointers, Jeroen.

I might be able to come up with a workaround if I knew
exactly what this option did.  The most recent
docs on (for GCC 4.6.2) only mention
the -print-file-name=<library> form.

Can you point me to docs for this option?


More information about the freebsd-arm mailing list