From owner-freebsd-ports@freebsd.org Wed Aug 1 22:09:02 2018 Return-Path: Delivered-To: freebsd-ports@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 AD33A106AB58 for ; Wed, 1 Aug 2018 22:09:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-4.consmr.mail.bf2.yahoo.com (sonic302-4.consmr.mail.bf2.yahoo.com [74.6.135.43]) (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 42F628AAA0 for ; Wed, 1 Aug 2018 22:09:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: n_2aNl8VM1mbPiIJWWEvoKzOquK2ee8s4XEgeN4RE88nn90efErT3c0SAJ0yg3l rAz6D0ncw5EmBiiIQgVNnujJoiWQY6LR3re_AIKB6VsraTyXxM0BKftulA5DPMh1KFhVy4D6JUlt Yxpmee07K3h8KTRsFMJWnN4po0UDKH67DoDsZxt3LGX1FvCEqrxmoQR5SvZYeFqwLIWD2rq0udC8 devXA2rM.op4eliK3nA1o8AeBWtlpvq9WKRKPrImJjtX.Php0PxvYjFsoZ6EtCG7ZkuM4111g1WX DoNgNLYrW5RynlBmI3DGqilI70j6gUt6OaNA3007bFb0LMih7zcRSWVVeymE1BUrra6JWCruyH5T gsfWiamq5dG5kurT7LeuxRD986aMiresUoqcemuC.N2imC6lG_WA2VGwkj1Q3pcdN_P06UKNwuIB ZvVfrzQqgUFjo.Dh_lQbcEhU_5f4gLaL7xYMs7PgW4oXE10Okgue83EEUomUtfrolHjj3OSOQaEQ OwAAFrNfAIz96CvJ7f4qeZRTUpH9y0Bqr4WLaIpAewlcIv9ARy2at0fztx9.DLo2RqqpVakjNmUG Z8ye52dVWpP5QEjn849fGnZ5cn7FFbQ3SGOY54H56jCxo8FjemJ_6_LrvCav.dikEmNgvRmlyAy2 SwPu2AYtFwgyvyq_b14asA5gPeFAgzeVwljNNcDTDxfCpCvh5OeNjYob13qPHKIHkDJigXnOj3Sv YsHsQolfJ6b2ZVqWcTi1xmBhNbWb2DJ7bPGT_AC5CyCNE0Namt.UddETFCDprZqPHw4yFDmeAymL 38cNAty8fdjJEzC0.SjaUHl_1kSKx_I0dDvUBkcU0FhMsFew7qJ_Z8aWMj.9Gdtf5jol6CUY.kDR fP2rWeGdX34yVBdtmjYDNm49DE9GwpryB_VMPBn.BPdI1nqIwgHqPpqEdh9Y_svlMMcLJVHzOVxB 2YdqFV9lhsvLK7yvXCMGsgrcv22_pyAeg85QhI0hJ4rtm_7GDi3KvCNp07Zt2MRpOuRWOGRedcLm MUVPTF9rCEXDx Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Wed, 1 Aug 2018 22:08:54 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp420.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 8b98a10a77383351594349f06f048738; Wed, 01 Aug 2018 22:08:54 +0000 (UTC) From: Mark Millard Message-Id: <0F5EA96D-7C2E-403C-A8D0-530D2EA4B682@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Removing objdump breaks GCC configure Date: Wed, 1 Aug 2018 15:08:50 -0700 In-Reply-To: Cc: Gerald Pfeifer , mat@FreeBSD.org, FreeBSD Ports , Bryan Drewery , Ed Maste To: John Baldwin References: <3A54CD6F-FEE9-4813-97B8-76A3E619D7F4@yahoo.com> <884de41d-011e-a025-bfec-4e61b5546336@FreeBSD.org> <47AE95CB-1BD7-42DA-AA17-3EC0252FAF59@yahoo.com> <381572D9-6338-4DF4-B731-860557B2F666@yahoo.com> <6047CF45-733C-4331-B640-4A501F48B698@yahoo.com> <73D4B099-C694-489C-AD17-89F3139058A6@yahoo.com> X-Mailer: Apple Mail (2.3445.9.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 22:09:02 -0000 On 2018-Aug-1, at 1:29 PM, John Baldwin wrote: > On 7/29/18 9:02 PM, Mark Millard wrote: >>> It looks like configure uses objdump (without a path-prefix) for >>> export_sym_check : >>>=20 >>> case "${host}" in >>> *-*-darwin*) >>> if test x$build =3D x$host; then >>> export_sym_check=3D"nm${exeext} -g" >>> elif test x$host =3D x$target; then >>> export_sym_check=3D"$gcc_cv_nm -g" >>> else >>> export_sym_check=3D >>> fi >>> ;; >>> *) >>> if test x$build =3D x$host; then >>> export_sym_check=3D"objdump${exeext} -T" >>> elif test x$host =3D x$target; then >>> export_sym_check=3D"$gcc_cv_objdump -T" >>> else >>> export_sym_check=3D >>> fi >>> ;; >>> esac >>>=20 >>> Note that this would not be the objdump from = devel/powerpc64-binutils >>> but one for amd64 (in my example) such as from devel/binutils or >>> devel/amd64-binutils for my context. >>>=20 >>> Note the lack of any alternative to objdump use (for build matching = host). >>=20 >> # svnlite diff /usr/ports/devel/powerpc64-gcc/Makefile >> Index: /usr/ports/devel/powerpc64-gcc/Makefile >> =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 >> --- /usr/ports/devel/powerpc64-gcc/Makefile (revision 475470) >> +++ /usr/ports/devel/powerpc64-gcc/Makefile (working copy) >> @@ -16,7 +16,8 @@ >> LIB_DEPENDS=3D libgmp.so:math/gmp \ >> libmpfr.so:math/mpfr \ >> libmpc.so:math/mpc >> -BUILD_DEPENDS=3D ${BU_PREFIX}-as:devel/${PKGNAMEPREFIX}binutils >> +BUILD_DEPENDS=3D ${BU_PREFIX}-as:devel/${PKGNAMEPREFIX}binutils \ >> + objdump:devel/binutils >> RUN_DEPENDS=3D ${BU_PREFIX}-as:devel/${PKGNAMEPREFIX}binutils >>=20 >> USES=3D gmake iconv libtool tar:xz makeinfo compiler >=20 > Context trimmed a bit, subject changed, and I've added Ed to the cc as = he's > the one who removed objdump. It seems that GCC at least has a hidden > dependency on objdump. Ed, were the lang/gcc* ports updated when = objdump > was removed to list it as dependency for the plugin functionality? If = not, > they might also need a similar fix. devel/-gcc cross compiler builds: Cross builds required the builder's objdump and possibly the target's too (as well as other target binutils). But for the target that is the = same in devel/-binutils and devel/-gcc and likely was already covered. (I may have missed other builder-binutil tool references but know objdump for sure.) When the builder architecture is also the target as part of the port definition (all lang/gcc* ?), devel/binutils is likely already required and then covers all objdump use as far as I can tell. (I'm not sure if the normal package builders are omitting system binutils yet or if they might always have devel/binutils installed.) >> Note: Various other autoconfig .ac files for various ports >> might also make assumptions about some binutils for the >> building archteiture, assumptions that various FreeBSD >> architectures need not automatically provide for: ones for >> which WITHOUT_BINUTILS=3D can be used. >=20 > I believe Ed did an exp-run before disabling objdump by default (or = maybe > that change is still pending?). I'm not sure if that exp-run would = catch > more subtle changes like this. My guess is that only ports with cross-build abilities might have the "some builder binutils tool(s) needed" issue. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)