Date: Fri, 15 Apr 2016 00:27:07 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Willem@Offermans.Rompen.nl Cc: freebsd-ports@FreeBSD.org Subject: Re: Compiling binutils-2.25.1 failed Message-ID: <5C562392-725E-46C4-BAD4-6D450CF4C86D@FreeBSD.org> In-Reply-To: <20160414121051.GA5047@vpn.offrom.nl> References: <20160414121051.GA5047@vpn.offrom.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_AD6A1643-F897-4AF8-8646-51E98626A638 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 14 Apr 2016, at 14:10, Willem Offermans <Willem@Offermans.Rompen.nl> = wrote: >=20 > I have inherited an ``old'' FreeBSD server. I like to bring it up to = date. > However I have problems to compile binutils-2.25.1. ... > In file included from ./cp-demangle.c:128: > ./../include/libiberty.h:113:38: error: expected function body after > function declarator > extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL > ATTRIBUTE_NONNULL(1); > ^ In binutils' include/ansidecl.h header, there is this code fragment: /* Attribute `returns_nonnull' was valid as of gcc 4.9. */ #ifndef ATTRIBUTE_RETURNS_NONNULL # if (GCC_VERSION >=3D 4009) # define ATTRIBUTE_RETURNS_NONNULL __attribute__ = ((__returns_nonnull__)) # else # define ATTRIBUTE_RETURNS_NONNULL # endif /* GNUC >=3D 4.9 */ #endif /* ATTRIBUTE_RETURNS_NONNULL */ 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. 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. -Dimitry --Apple-Mail=_AD6A1643-F897-4AF8-8646-51E98626A638 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 iEYEARECAAYFAlcQGUIACgkQsF6jCi4glqN8lQCg6o672bDS1ZWSyx8KsXgI2AC5 /gMAoIgd6ZfU6xiGotBJAOnhdmAEDv+Z =0svu -----END PGP SIGNATURE----- --Apple-Mail=_AD6A1643-F897-4AF8-8646-51E98626A638--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5C562392-725E-46C4-BAD4-6D450CF4C86D>