From owner-freebsd-arm@FreeBSD.ORG Thu Apr 17 07:23:13 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D6C47674 for ; Thu, 17 Apr 2014 07:23:13 +0000 (UTC) Received: from gromit.grondar.org (grandfather.grondar.org [IPv6:2a01:348:0:15:5d59:5c20:0:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9BE7712B7 for ; Thu, 17 Apr 2014 07:23:13 +0000 (UTC) Received: from [2001:470:9174:1:f8c1:b412:e2cf:d4d8] by gromit.grondar.org with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1Wagf4-0007jK-GB; Thu, 17 Apr 2014 08:23:10 +0100 Subject: Re: Building an ARM/RPI-B release (hacked) on CURRENT/AMD64. Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/signed; boundary="Apple-Mail=_75E63320-1399-4E3C-A0F3-2331E2FAADB4"; protocol="application/pgp-signature"; micalg=pgp-sha512 From: Mark R V Murray In-Reply-To: Date: Thu, 17 Apr 2014 08:23:28 +0100 Message-Id: <4B9FEF94-9912-4861-9FE2-E8EC7BE3509C@grondar.org> References: <9FDD6F0E-B2A9-48D9-A3E4-181868995FDA@grondar.org> To: Tim Kientzle X-Mailer: Apple Mail (2.1874) X-SA-Score: -1.0 Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 07:23:14 -0000 --Apple-Mail=_75E63320-1399-4E3C-A0F3-2331E2FAADB4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 17 Apr 2014, at 02:25, Tim Kientzle wrote: >> The problem is that during the u-boot build, a CLANG-based xdev build = is used, and this has no *-gcc, only a *-cc. If I fix that with a = symlink, clang then objects to the -ffixed-r8 option. Clang has an = equivalent -ffixed-r9, but the u-boot that is mandated for = FreeBSD/Arm/RPI use doesn=92t have the R9 fix. >>=20 >> Questions: >>=20 >> 1) Are you aware of any of this? >=20 > Yes. >=20 >>=20 >> 2) Do you have a quick fix idea (preferably not involving GCC)? >=20 > No. >=20 > Right now, the =93get it working=94 answer is to install GCC XDEV = tools. Even that was broken, but I have it fixed now, locally. I=92ll tidy up = the patches and send them all out later. > Though I tried that on a clean system last weekend and it > still failed to build. Haven=92t tracked down why. src/release/arm/release.sh needs this: @@ -96,27 +96,27 @@ # This is not '-j'-safe, so force '-j1' to allow using # additional, non-'-j' options specified in WORLD_FLAGS. eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/cc \ - WITH_GCC=3D1 ${WORLD_FLAGS} -j1 obj depend all install + WITH_GCC=3D1 WITH_GNUXX=3D1 ${WORLD_FLAGS} -j1 obj = depend all install # Build the 'xdev' target for crochet. - eval chroot ${CHROOTDIR} make -C /usr/src WITHOUT_CLANG_IS_CC=3D1 = \ - XDEV=3D${XDEV} XDEV_ARCH=3D${XDEV_ARCH} WITH_GCC=3D1 \ + eval chroot ${CHROOTDIR} make -C /usr/src WITHOUT_CLANG_IS_CC=3D1 = WITHOUT_CLANG=3D1 \ + XDEV=3D${XDEV} XDEV_ARCH=3D${XDEV_ARCH} WITH_GCC=3D1 = WITH_GNUXX=3D1 \ ${WORLD_FLAGS} xdev =20 # Run the ldconfig(8) startup script so = /var/run/ld-elf*.so.hints # is created. >> I=92m rather short of time right now, but may be able to get to this = over Easter. >=20 > Long-term, we=92d all like to see U-Boot build with clang. >=20 > No idea yet whether that=92s hard or not. No idea if > I=92ll have time to work on it in the near future. How much hacking does u-boot need for 1) FreeBSD and 2) RPI? Should its head-of-trunk =93just work=94? They have apparently sorted = out the R8/R9 business which should make it CLANG-ready, IIUC. M --=20 Mark R V Murray --Apple-Mail=_75E63320-1399-4E3C-A0F3-2331E2FAADB4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - http://gpgtools.org iQCVAwUBU0+BcN58vKOKE6LNAQotqgP+M/dMc1VRs6ViyKmpE6PRr+O1GCp36fbD RcF+dhGN1mGik6GP/apsveev9prBfNlddzp61596XQKytBF8vjGvMcXLrTDQkqyX I54bBzGrAhu6VAUHDwXwcCYX170SraQDrZvLGaU6YWZbqyjIn9FafaQYxh6M1kqO AtVWiY0xS78= =U0fj -----END PGP SIGNATURE----- --Apple-Mail=_75E63320-1399-4E3C-A0F3-2331E2FAADB4--