From owner-freebsd-toolchain@FreeBSD.ORG Fri Apr 3 17:02:55 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 2FF8E162 for ; Fri, 3 Apr 2015 17:02:55 +0000 (UTC) Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) (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 DBEBF5F1 for ; Fri, 3 Apr 2015 17:02:54 +0000 (UTC) Received: by ignm3 with SMTP id m3so67971493ign.0 for ; Fri, 03 Apr 2015 10:02:47 -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=f/Ai4bcGwPCJJNWPAKCJxvAZZaLRRLdThpatUPNlsjA=; b=HKi9H+URGq/DrI1cC6ZEwil6W6/gt9Qy+F5bBQHa+E1IYczirwz9zwXawHimIUX6mH a1uwDb0Ez6ZJ+s0fW0S0wtlPZPKQjfG7AcpiqMFEFLsM1LJ9bEO9iFBiiJeYBcHWhEck JpxLZH9/uA4QMQJ0ye1PXCDSM1OZTBiVU+hgao9yC0tNBalfEirnOrKHbpq+kLOP1wog a+fD0RbwBFbu3qYGFgLjiPtd1vnfE8E//tmkiYfadmSW5l0e2Ww0zVtvBFQEvjbvGoGj NhhggxQXustEMSZs7luvL7oXdwqBX8Yc3+0fYem56zcLIK04B9u2tTtV0fxVdDRJwZ1q 4f1g== X-Gm-Message-State: ALoCoQmuREIlPGHzh0qSt4mDF3SEvfCzHOU+rBVXQ63EdoQ3rfcK8Bbf3iHoD9WisY6+hNNH11k+ X-Received: by 10.42.121.73 with SMTP id i9mr5004878icr.91.1428080567832; Fri, 03 Apr 2015 10:02:47 -0700 (PDT) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id m136sm5815956iom.21.2015.04.03.10.02.46 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Apr 2015 10:02:46 -0700 (PDT) Sender: Warner Losh Subject: Re: Failed to build rescue with gcc 4.9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2BDF8736-4C30-446F-AD28-5CF3A9FFAD91"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: Date: Fri, 3 Apr 2015 11:02:45 -0600 Message-Id: <2D2191D4-DB6F-4889-9CA9-DFEE495D8302@bsdimp.com> 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: Fri, 03 Apr 2015 17:02:55 -0000 --Apple-Mail=_2BDF8736-4C30-446F-AD28-5CF3A9FFAD91 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 3, 2015, at 10:58 AM, Craig Rodrigues = wrote: >=20 > On Thu, Apr 2, 2015 at 8:27 AM, Craig Rodrigues = wrote: >=20 >>=20 >> Actually, I am building on a 10.1-RELEASE box. >>=20 >> I was able to get this successful build: >>=20 >> = https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/38/con= sole >>=20 >> by applying this patch (the ${TARGET_ARCH} !=3D ${MACHINE_ARCH} = checks >> seemed wrong to me): >>=20 >> Index: Makefile.inc1 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- Makefile.inc1 (revision 280979) >> +++ Makefile.inc1 (working copy) >> @@ -1457,12 +1457,9 @@ >> # we get done with the earlier stages. It is the last set of tools = needed >> # to begin building the target binaries. >> # >> -.if ${TARGET_ARCH} !=3D ${MACHINE_ARCH} >> .if ${TARGET_ARCH} =3D=3D "amd64" || ${TARGET_ARCH} =3D=3D "i386" >> _btxld=3D usr.sbin/btxld >> .endif >> -.endif >> -.if ${TARGET_ARCH} !=3D ${MACHINE_ARCH} >> .if ${MK_RESCUE} !=3D "no" || defined(RELEASEDIR) >> _crunchide=3D usr.sbin/crunch/crunchide >> .endif >> @@ -1469,7 +1466,6 @@ >> .if ${TARGET_ARCH} =3D=3D "i386" && defined(RELEASEDIR) >> _kgzip=3D usr.sbin/kgzip >> .endif >> -.endif >>=20 >> # If we're given an XAS, don't build binutils. >> .if ${XAS:M/*} =3D=3D "" >>=20 >>=20 >=20 > I backed out this patch from my tree, and rebuilt everything > in my 10.1-RELEASE VM from the latest CURRENT sources. At this > point, I ran into the same problem building rescue which I reported in > = https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-March/001545.ht= ml >=20 > I put the patch back in my tree, and recompiled everything, and the > problem went away. >=20 > To reliably build the tree, I think this patch should go in, so that = these > tools are properly bootstrapped during the build. That shows that something in the list is needed. Likely only crunchhide. It doesn=E2=80=99t tell us why we need it, or when we started needing = it, or what other conditions we might need it. This information is critical to = document so we know when we can stop doing it in the future. I=E2=80=99m = extremely reluctant to commit this until we know these details. Sorry for being a bit of a pain about this, but these lists are = something that I=E2=80=99ll be maintaining long into the future and we=E2=80=99ve had = issues in the past where people would just hack something in and not document, then = lovingly copy it over and over w/o understanding :( Warner --Apple-Mail=_2BDF8736-4C30-446F-AD28-5CF3A9FFAD91 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 iQIcBAEBCgAGBQJVHse1AAoJEGwc0Sh9sBEADggP/iCbB09Q7erlfSLE+9AWKGyC Q1bsWfq8H4srlKML8srlMidogSXpn5m9CBRIPKlOhOmhF9bdeJHO3uM4WYoU1WF8 I7AMl7b2x6PRicxpJJL0eSGw3AL8iuXFwRv/beCAqoe4FTh96fq633klATmwxHV2 MGt0WFhS7gQ0GyhBI2AyDUsb5k5dmSgF7HIbADcXlju/v5q0WU0EK+UkpRNAGXME EcvW+XRa9OJFkl+ZqWvZab69AzAd7xLtAagwMWBzYT2sc2fyOUQaVHW4nYGgf1Wq GOu4Yb+pYmsQiVNfqDS9eLMIQvB4MXtRXUnMAyrmtLkvp6p72sW4oI7g49GNkVGd n8/cv9jd1Qqx9hhlLUe/8vuhKh/hStyG0A6OnfFP3gr3Caoz9Jeb5NMtOZyRfnvg 3fGA7PRir/NgA8Xo0Gh6BSuDSo+ybELQQNn8YWL5iBcZ8bSFRJww6DM7anaJux+M PSLhC4FvJs65SwLUNLEpi2M2nN7w5aN3WiwV+Y+TxQaDN592om4U7X/RKfS2oltn x3P5W6EQWIVlm4woIQrYQNdMMHh6h0YciY33UwdDVXaXhmmvDiN8gu5PXa+X2gvr RwWZZHmXQcR81K26IZd/Yu2StzX8QZiuJjpsVgmR0pCHLsSnsbF6Uj9Of4p+KT+E jECHoywxjgMMIKTCl1Re =tNOu -----END PGP SIGNATURE----- --Apple-Mail=_2BDF8736-4C30-446F-AD28-5CF3A9FFAD91--