From owner-freebsd-toolchain@FreeBSD.ORG Sun Mar 29 05:05:41 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CA2B8F26 for ; Sun, 29 Mar 2015 05:05:41 +0000 (UTC) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 94152D03 for ; Sun, 29 Mar 2015 05:05:41 +0000 (UTC) Received: by pdbni2 with SMTP id ni2so139828308pdb.1 for ; Sat, 28 Mar 2015 22:05:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=6st44eeoR7OQTk82/+UBd9qIl/mqCgfYe67qhsGfV7Q=; b=EQpQd94cWS1Hpq1LDgispsVqAC2D7ehd3oA3KpyTQj8KG6psaajnXNw56i1LyMNBBV N/ahROzXEmtsRuzektz9bYbCE25OuqQR/Vg2DZTe8kTJyHuku4oIesxGI1A80uiug9C0 IKk+y0Esnhv9p2mYi1uiyrMTUlrBmYGHlo5MTRNrCMlRAMx+Zt2lsRk2P18aTuuvWLS/ e4YPMYrjtV2bZwGzy95AyGph8S+eVAzT2hF1j+N8DCc9yqMsFFyfowNxBRV4EG+32dtd jIheL8QMixBnGGJBM3W8xxOKi377TexUWQyBqLs+6Br52BhjJFCIOxCJFzVmXfGfGJao OIfQ== X-Gm-Message-State: ALoCoQnsS1Rr/tl0VABPoTUTHzKUP8K/6Lq6BRXff3o6+dGXGh37jph9EhQ4pTlkU4O+Z5d0tMiR X-Received: by 10.70.54.130 with SMTP id j2mr47858974pdp.122.1427603840010; Sat, 28 Mar 2015 21:37:20 -0700 (PDT) Received: from lgwl-achen.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id o17sm6487583pdj.26.2015.03.28.21.37.18 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Mar 2015 21:37:19 -0700 (PDT) Sender: Warner Losh 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=_0507C6D9-DC61-4DCE-A5C6-02152AA25B0E"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: <20683705-0EBA-4B8F-A0CE-9C06B8003BBE@FreeBSD.org> Date: Sat, 28 Mar 2015 22:37:16 -0600 Message-Id: <2232E613-6248-4A78-BCB3-2D82AF8EC094@bsdimp.com> References: <20683705-0EBA-4B8F-A0CE-9C06B8003BBE@FreeBSD.org> To: Dimitry Andric 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: Sun, 29 Mar 2015 05:05:41 -0000 --Apple-Mail=_0507C6D9-DC61-4DCE-A5C6-02152AA25B0E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Mar 28, 2015, at 5:33 PM, Dimitry Andric wrote: >=20 > 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 >=20 > 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. >=20 >=20 >=20 >> 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 >=20 > 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! >=20 > 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. >=20 > 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 The 7680 byte limit is a hard limit. Rewriting in assembler is possible, but just using the 4.2.1-compiled .s = file might be a good place to start. Warner --Apple-Mail=_0507C6D9-DC61-4DCE-A5C6-02152AA25B0E 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----- Comment: GPGTools - https://gpgtools.org iQIbBAEBCgAGBQJVF4F8AAoJEGwc0Sh9sBEARpcP+KzDBa6DY1Z9HxQmwWLawrCL uku9dXdY7nHII3R4Rc4kccliV65RoY1ajVtP4t+yRQURpDyUPv11wYPCu9knqkyH cTCpDfinY//APg+IY1VHKaoGKAjTeOyf8Hsfvxz/qMqA45VPYHH6ZD/OHNv1fqlb hTk+YbO3OWdPZO0cLH5m/yj29/d+BPbIvViAkqrvKxDTeYT+8R4fzKZYN6hfQXSP 15j3qXwUaFhgsonzmgeM1q/c8LJZYmuA6nhlS8qGf2/SIWeoaoHttdTSVEGIoW3b TSx0G/WwFJ3Ndwr7+MsIerv3rfQdLAPNOcK8DKhzpINKU2RdDwO0jUcIZ3KVI80y vPfZXxINCZx5DKIprooROV9EdEg6wFGxSiaMFiA+RpwWMnkCeY7hRSlf0afs4AMY 1FIiGppmXy+21l83AJJSET+H4PEJggDMGuJlsKJQFDcEWs66LGZ8cPYSMNMAXvpB fenjWPht94Mk3af1QBrtYgBQJXWeSmdPsQfnAxmJTHw22Xjv+RWqQQK7A0GAR1bH B/DQn2kBUUEIBDF0Ie+8bjEx891dREgythlv3O1pcuavbb94mHe2UA+8U1vfahJ8 ZA3jd+b+9IwkiRiapg6V1elrQ3pp1Obc71e9Z+Mq2+up7fKZiOlz57PvS2g01vYP /OAr56eIQ7xZGKHymAs= =O8Dy -----END PGP SIGNATURE----- --Apple-Mail=_0507C6D9-DC61-4DCE-A5C6-02152AA25B0E--