From owner-freebsd-arm@FreeBSD.ORG Mon Jan 30 02:54:30 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B8361065687 for ; Mon, 30 Jan 2012 02:54:30 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 5F4458FC16 for ; Mon, 30 Jan 2012 02:54:28 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q0U2ZJ5b044774; Mon, 30 Jan 2012 02:35:19 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.119] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 6ntkbtuhmtgmnx2vmrbp5ge78w; Mon, 30 Jan 2012 02:35:18 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Tim Kientzle In-Reply-To: <4F25D8F9.8040108@myspectrum.nl> Date: Sun, 29 Jan 2012 18:35:16 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <23CB6C35-9450-40BA-9FA3-37C44B328CA8@freebsd.org> <8042D895-3B3D-431E-ADCC-A150BDC838ED@kientzle.com> <7E53112E-DE29-4145-B597-D39AA77252C5@kientzle.com> <4F25D8F9.8040108@myspectrum.nl> To: Jeroen Hofstee X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD and BeagleBone X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 02:54:30 -0000 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 form. Can you point me to docs for this option? Tim