From owner-freebsd-toolchain@FreeBSD.ORG Fri Apr 3 16:58:40 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 BBEA0DB6; Fri, 3 Apr 2015 16:58:40 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (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 3A64033C; Fri, 3 Apr 2015 16:58:40 +0000 (UTC) Received: by lboc7 with SMTP id c7so82076928lbo.1; Fri, 03 Apr 2015 09:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=K9FW+eOTK5bPmaVluo+cEY/qddwadwitUUDWZ1qi1Aw=; b=Mgv7LqUM6HiEltPtZ9+/cUDF63bkQzQEGwhnjc/SKYfMZSayP0z9klmueDfupp/tYl E3iR123Rl7YwLsG+jz1hmC6WIX9WjoIPkZfDTxXYF7tBoL++5aSaby1o6vk75pq3QEi4 TFk4a1wYSw1vLW3XnxnDRU3VSkq2mBOAeb5ZndC4tVXj151MHArhSZe3M3Cj0+jlKJYR AzVwh59ZU5+lPH1KzXvOvCLlhyhOkx1TbuFE5EDisbQiaFFN/LDg45pDHhWS3ib6+fcr GGXEDfoVPBRUA5ASGCkuE4uVFuDTu4VhAzNLRQ1nPIyD0mDgV0P2n5k7ShRqw021Hdbr aOFA== MIME-Version: 1.0 X-Received: by 10.112.8.76 with SMTP id p12mr2865460lba.29.1428080318171; Fri, 03 Apr 2015 09:58:38 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.108.168 with HTTP; Fri, 3 Apr 2015 09:58:38 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Apr 2015 09:58:38 -0700 X-Google-Sender-Auth: Ep014CyPsE3IiFmJkGKXIgGCYOc Message-ID: Subject: Re: Failed to build rescue with gcc 4.9 From: Craig Rodrigues To: FreeBSD Toolchain , "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 16:58:40 -0000 On Thu, Apr 2, 2015 at 8:27 AM, Craig Rodrigues wrote: > > Actually, I am building on a 10.1-RELEASE box. > > I was able to get this successful build: > > https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/38/console > > by applying this patch (the ${TARGET_ARCH} != ${MACHINE_ARCH} checks > seemed wrong to me): > > Index: Makefile.inc1 > =================================================================== > --- 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} != ${MACHINE_ARCH} > .if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386" > _btxld= usr.sbin/btxld > .endif > -.endif > -.if ${TARGET_ARCH} != ${MACHINE_ARCH} > .if ${MK_RESCUE} != "no" || defined(RELEASEDIR) > _crunchide= usr.sbin/crunch/crunchide > .endif > @@ -1469,7 +1466,6 @@ > .if ${TARGET_ARCH} == "i386" && defined(RELEASEDIR) > _kgzip= usr.sbin/kgzip > .endif > -.endif > > # If we're given an XAS, don't build binutils. > .if ${XAS:M/*} == "" > > 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.html I put the patch back in my tree, and recompiled everything, and the problem went away. To reliably build the tree, I think this patch should go in, so that these tools are properly bootstrapped during the build. -- Craig