Date: Sun, 29 Jan 2012 18:35:16 -0800 From: Tim Kientzle <tim@kientzle.com> To: Jeroen Hofstee <freebsd_arm@myspectrum.nl> Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD and BeagleBone Message-ID: <F72663A5-E7BA-43A3-9E34-F7EF7512775E@kientzle.com> In-Reply-To: <4F25D8F9.8040108@myspectrum.nl> References: <23CB6C35-9450-40BA-9FA3-37C44B328CA8@freebsd.org> <CABt%2Bj0mB4w==h_SQ4YyDM24_wGOjcdZDK9T1N3DqjSkap0VkQw@mail.gmail.com> <E8A24EBE-967D-44F8-A884-3207B3C6F0FE@bsdimp.com> <8042D895-3B3D-431E-ADCC-A150BDC838ED@kientzle.com> <CAGW5k5ahyaTest3L0NTe1t%2B%2BYBgpLMkWZNpp=GRyz%2Bg=nMcZLg@mail.gmail.com> <7E53112E-DE29-4145-B597-D39AA77252C5@kientzle.com> <E1RoGMT-000DkR-6a@groundzero.grondar.org> <AEF07CD1-6794-4F04-AF9C-938423FE919B@kientzle.com> <4F25D8F9.8040108@myspectrum.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 config.mk, remove "-nostdinc" from CPPFLAGS >> * In Makefile, add /usr/arm-freebsd/usr/lib/libc.a to = PLATFORM_LIBS >>=20 >> 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 >=20 > gcc -print-file-name=3Dinclude >=20 > (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 gcc.gnu.org (for GCC 4.6.2) only mention the -print-file-name=3D<library> form. Can you point me to docs for this option? Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F72663A5-E7BA-43A3-9E34-F7EF7512775E>