From owner-freebsd-pkg@freebsd.org Thu Feb 1 17:55:43 2018 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C318EE18AD for ; Thu, 1 Feb 2018 17:55:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E27137A63C for ; Thu, 1 Feb 2018 17:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9F9B1EE18A8; Thu, 1 Feb 2018 17:55:42 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D07EEE18A6 for ; Thu, 1 Feb 2018 17:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 29B757A635 for ; Thu, 1 Feb 2018 17:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6F27418E50 for ; Thu, 1 Feb 2018 17:55:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w11HtfCM004080 for ; Thu, 1 Feb 2018 17:55:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w11Htful004079 for pkg@FreeBSD.org; Thu, 1 Feb 2018 17:55:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 224217] [patch] Fix cross build of base/ ports Date: Thu, 01 Feb 2018 17:55:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: swills@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 17:55:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224217 Steve Wills changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #190229|0 |1 is obsolete| | --- Comment #11 from Steve Wills --- Created attachment 190251 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D190251&action= =3Dedit Updated patch Here's an updated patch which for me allows the built compiler to generate binaries if I pass -sysroot and -isystem. The OSREL has to be in the --targ= et due to this change: https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config.gcc?r1=3D222192&r2=3D22219= 1&pathrev=3D222192 that was introduced due to this bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65535 When the --target and --host don't match, gcc's configure decides you're building a cross compiler, which we aren't doing here. So unfortunately it seems like the right thing to do is make --target and --host match and to h= ave the OSREL in both for both gcc and binutils. This change does that and after updating and rebuilding everything I seem to have a working compiler. Please test and see if this fixes the issues reported in this bug and the o= ther bugs mentioned. --=20 You are receiving this mail because: You are on the CC list for the bug.=