From owner-freebsd-toolchain@FreeBSD.ORG Sat Mar 28 23:34:08 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 560DAF15; Sat, 28 Mar 2015 23:34:08 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 106CBB77; Sat, 28 Mar 2015 23:34:08 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::81a8:baf0:98fb:d610] (unknown [IPv6:2001:7b8:3a7:0:81a8:baf0:98fb:d610]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 6EF6F5C2E; Sun, 29 Mar 2015 00:34:00 +0100 (CET) Subject: Re: Fails to build sys/i386/boot2 with gcc 4.9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_7FBCFB16-3962-4838-B230-2ABD3225C862"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b6 From: Dimitry Andric In-Reply-To: Date: Sun, 29 Mar 2015 00:33:54 +0100 Message-Id: <20683705-0EBA-4B8F-A0CE-9C06B8003BBE@FreeBSD.org> References: To: Craig Rodrigues X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-testing@freebsd.org" , FreeBSD Toolchain X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2015 23:34:08 -0000 --Apple-Mail=_7FBCFB16-3962-4838-B230-2ABD3225C862 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 29 Mar 2015, at 00:05, Craig Rodrigues wrote: >=20 > To work around the problems build rescue, this time I used a build = host > running FreeBSD-CURRENT at svn revision r280353 >=20 > I took this patch for libc++ and applied it to my tree: >=20 > http://reviews.llvm.org/D8461 I've only got one minor remark left on that fix, which is that it doesn't work for gcc 4.7. Once we either say that version of gcc is just buggy and can't be helped, or have some other way of fixing the original problem, I'll import it. > I used this script to build with gcc 4.9: >=20 > = https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-buil= d.sh >=20 > Buildling sys/i386/boot2 failed: ... > output: fmt=3Dbin size=3D21ef text=3D200 data=3D1fef org=3D0 entry=3D0 > -1007 bytes available > *** Error code 1 Oof, this is going to be hard to fix. For some reason, boot2 is one of those programs that keeps getting worse (i.e. larger) with *each* new compiler version, be it gcc or clang! The last few times when we imported a new clang version, we had to jump through several hoops, and attempted to shrink the code again with various cleanups. Even then, we don't have a lot of headroom. If it is now also becoming a problem with gcc 4.9, we should really start looking for a more permanent solution, e.g.: * Getting rid of the 7680 byte limit (seems to be impossible?) * Rewrite most of (or all of) boot2 in assembly -Dimitry --Apple-Mail=_7FBCFB16-3962-4838-B230-2ABD3225C862 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.27 iEYEARECAAYFAlUXOmcACgkQsF6jCi4glqOMOgCfZVgxqN6KtSCY0LxCHNtlSpfd pCkAn0jJHcKrPrKJ8l3n8MVC6dbFX+OW =ZNCv -----END PGP SIGNATURE----- --Apple-Mail=_7FBCFB16-3962-4838-B230-2ABD3225C862--