From owner-freebsd-toolchain@freebsd.org Fri Oct 12 13:51:57 2018 Return-Path: Delivered-To: freebsd-toolchain@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 84A2710BED22 for ; Fri, 12 Oct 2018 13:51:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-13.consmr.mail.bf2.yahoo.com (sonic315-13.consmr.mail.bf2.yahoo.com [74.6.134.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2D17E83926 for ; Fri, 12 Oct 2018 13:51:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: usM2PhYVM1kKiLi0V3eEcgmDEVZmI2QqpNo8P297am_kMznZjOfq06veKwZkbsf S8_13PZzuSpKCfCR1lXOqdh493uv4fvVHmD3H0GDNVT7mCmWF0lowKY9OT_ZqJ0rv8KFfc9ruyui chNyIlQGykKTd.xHqJDb9_DLP7wBPzJxv01ermn9GGwg.1dE6btVOJmtZWKZP.7PSczC24flOY6M L9ZMb869wtFHpldhFSxfZqmm8fyGKc61_aFHZnUG0yTZYDuRIwxJvPG0RXwzx57wIyl6HkHpIyuz umihGpeV8WXjFO5V7ONzJjdzNhV2idBoFG6cQkYbg61sGEaQokyy4bOf0Tol0Qua.bekZaIZxfHT mhNyiDO8Z0bg4gZMqcoCRDBbcUQIleVzAXrSvpAFZo92OCsNK23y2a0QcI.T37Db6zlzvpCw90wR 3hQU1FVdTA6QVsnNBDI1zR7dEDedCxg5CBBPD.Z373._91oC_0yKzpZKSBayXaKL4GrkVCXFYZ_U ND3Y2XYuGCDhZmATVvvCSj6XS9qc_LLMtmf7CfCw4q7DCASA5jlDrWN35oj6g6wTOPjb8BRshFeC U2Pe0BWXB7ke18HtGGTxoyPlRJ1BlXMHZo66DukWPrFkRsn5HHA46SRtlJx87i1fDOoI1DoRLce4 OMIMOq4wowwKHaF8ScF2Ca.bmLvIK7RHIatqqnZgOiPJV_gaeuSMpGtu1laTd7UAxX_3B6ZU62_7 PiqJmVh2ALsaO72P7w9rf69npqz9jVUEbHXUrPayqwZV2g3ZMqUYRLpH1v8mHlZMaNyh_GJraGSk Oc74TiY_nP.UNBBWaMQgWvHF35ODcfqxjM.dqPLrdPp0ZxUUbKC9BeP.AXmKxfvc7V5ZGer84vZB 8xWGBXrz9BdgVU0PbZeU3U2AI3AKTV4oEpGoDvjadOC1AGKyu8MovVSrUks8gD9yjrZtfWYOWNCn VskgrmRH8DECJiPvzECtrII7EjcTHRyJOFiwDu.Xx0hkfgE.v6SBwbfChEmJIZhDIJjA.dcHriJL AXJV7sa5Hdbn856TjfE29_XZXQFlzexefM03CACG_G9u8SlLji8L4pCMJKGtNI2Arz5yh571n2sB 9sIAFScOjep8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Fri, 12 Oct 2018 13:51:56 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp423.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID bf21e8408964bb0de38e6ed012fee1d6; Fri, 12 Oct 2018 13:51:56 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: powerpc64 example, base/binutils presence vs. devel/powerpc64-gcc build failure: "phase: build-depends" confused then gcc config aborts build Message-Id: <925D3E9A-4EF0-4B49-83D4-C9574170EB66@yahoo.com> Date: Fri, 12 Oct 2018 06:51:54 -0700 To: John Baldwin , FreeBSD Toolchain X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 12 Oct 2018 13:51:57 -0000 The following is from attempting to build devel/powerpc-gcc via poudriere-devel on the powerpc64 system after having bootstrapped via (in part) base/binutils and the .txz produced on the host (amd64). Looks like having both: /usr/bin/powerpc64-unknown-freebsd12.0-* and: /usr/local/bin/powerpc64-unknown-freebsd12.0-* in a powerpc64 environment confuses "phase: build-depends" in poudriere for the devel/powerpc64-gcc build: =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> powerpc64-gcc-6.4.0_2 depends on executable: = powerpc64-unknown-freebsd12.0-as - found I.e., poudriere finds /usr/bin/powerpc64-unknown-freebsd12.0-as and concludes that devel/powerpc64-binutils does not need to be installed for the devel/powerpc64-gcc to build. Eventually this leads to aborting based on gcc's config noticing an oddity: . . . checking for ld used by GCC... /usr/bin/powerpc64-unknown-freebsd12.0-ld checking if the linker (/usr/bin/powerpc64-unknown-freebsd12.0-ld) is = GNU ld... yes configure: error: cannot execute: = /usr/local/bin/powerpc64-unknown-freebsd12.0-ld: check --with-ld or env. = var. DEFAULT_LINKER This is associated with: CONFIGURE_ARGS+=3D--target=3D${GCC_TARGET} --disable-nls = --enable-languages=3Dc,c++ \ --enable-gnu-indirect-function \ --without-headers \ --with-gmp=3D${LOCALBASE} \ --with-pkgversion=3D"FreeBSD Ports Collection for = ${PKGNAMEPREFIX:C/-//g}" \ --with-system-zlib \ --with-gxx-include-dir=3D/usr/include/c++/v1/ \ --with-sysroot=3D"/" \ --with-as=3D${LOCALBASE}/bin/${BU_PREFIX}-as \ --with-ld=3D${LOCALBASE}/bin/${BU_PREFIX}-ld having the --with-ld not list the */bin/${BU_PREFIX}-ld it actually finds and tests in config ( /usr used instead of ${LOCALBASE} ). If any other port binds to devel/powerpc64-binutils it probably has the same sort of issue. (Unlikely?) This is not likely to be specific to powerpc64 as a base/binutils target: powerpc64 is likely just an example. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)