From owner-freebsd-ports@freebsd.org Mon Apr 18 16:50:08 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1992B13E45 for ; Mon, 18 Apr 2016 16:50:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B895516A7 for ; Mon, 18 Apr 2016 16:50:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::f915:8f48:3845:1730] (unknown [IPv6:2001:7b8:3a7:0:f915:8f48:3845:1730]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1504A2D24A; Mon, 18 Apr 2016 18:50:00 +0200 (CEST) Subject: Re: Compiling binutils-2.25.1 failed Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_A4B114B3-6D37-43F6-A8AF-4FF229612C78"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <20160418124325.GE4998@vpn.offrom.nl> Date: Mon, 18 Apr 2016 18:49:43 +0200 Cc: freebsd-ports@FreeBSD.org Message-Id: References: <20160414121051.GA5047@vpn.offrom.nl> <5C562392-725E-46C4-BAD4-6D450CF4C86D@FreeBSD.org> <20160418124325.GE4998@vpn.offrom.nl> To: Willem@Offermans.Rompen.nl X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 16:50:09 -0000 --Apple-Mail=_A4B114B3-6D37-43F6-A8AF-4FF229612C78 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 18 Apr 2016, at 14:43, Willem Offermans = wrote: >=20 > On Fri, Apr 15, 2016 at 12:27:07AM +0200, Dimitry Andric wrote: >> On 14 Apr 2016, at 14:10, Willem Offermans = wrote: ... >> For some reason this doesn't seem to be picked up by your ports = build. >> For example, it is possible that your build picks up an ansidecl.h = from >> somewhere else, so search your system for duplicate copies of this >> header. >>=20 >> Also, can you preprocess the file with -E, or use -save-temps to save >> the intermediate result? Then you should be able to see what the = macro >> expands to, if anything. >>=20 >> -Dimitry >>=20 >=20 > I already found a solution by applying `pkg install devel/binutils`. >=20 > But to solve this issue, I did a search for the file ansidecl.h, as = you > suggested. There were several: >=20 > /usr/local/include/ansidecl.h > /usr/src/contrib/binutils/include/ansidecl.h > /usr/src/contrib/gcclibs/include/ansidecl.h > /usr/src/contrib/gdb/include/ansidecl.h > /usr/ports/devel/binutils/work/binutils-2.25.1/include/ansidecl.h >=20 > I would assume that the last one would have preference above the = others. Am > I wrong? Depending on the compiler and the flags, there is a chance the version in /usr/local/include will be found first. Using "pkg which /usr/local/include/ansidecl.h", you might be able to find out which port originally installed it. More current versions of the gcc ports install this header into version- specific directories, e.g.: $ find /usr/local -type f -name ansidecl.h = /usr/local/lib/gcc48/gcc/i386-portbld-freebsd11.0/4.8.5/plugin/include/ans= idecl.h = /usr/local/lib/gcc47/gcc/i386-portbld-freebsd11.0/4.7.4/plugin/include/ans= idecl.h = /usr/local/lib/gcc49/gcc/i386-portbld-freebsd11.0/4.9.4/plugin/include/ans= idecl.h = /usr/local/lib/gcc5/gcc/i386-portbld-freebsd11.0/5.3.0/plugin/include/ansi= decl.h = /usr/local/lib/gcc6/gcc/i386-portbld-freebsd11.0/6.0.0/plugin/include/ansi= decl.h This makes it less likely to be picked up by accident. If your /usr/local/include/ansidecl.h file is not owned by any port, you might as well delete it, or move it out of the way. -Dimitry --Apple-Mail=_A4B114B3-6D37-43F6-A8AF-4FF229612C78 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----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlcVEDcACgkQsF6jCi4glqM+6ACfSHfMsylkDnmLCAHYcwWxsxLu VhYAoIX6qAwjci4ZA4+pzavsBPajbmXM =sQBH -----END PGP SIGNATURE----- --Apple-Mail=_A4B114B3-6D37-43F6-A8AF-4FF229612C78--