Re: error: expected declaration specifiers before 'ATTRIBUTE_RETURNS_NONNULL'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 28 Aug 2014, Shaun Jackman wrote:

I'm seeing a strange error when compiling gcc --with-sysroot. So far
I've successfully (I think) installed the linux headers and compiled
and installed binutils and glibc for this sysroot. I'm working on GCC
now.

libiberty.h:110:38: error: expected declaration specifiers before
'ATTRIBUTE_RETURNS_NONNULL'

Looks like binutils (?) is bringing its own slightly older version of ansidecl.h, and sadly gcc puts that -I flag before the one that would let it find its own ansidecl.h. Some workarounds could be (pick only one):
* download a more recent binutils (a snapshot if there is no release)
* replace the ansidecl.h installed by binutils by the one you can find in the gcc sources
* temporarily rename the ansidecl.h installed by binutils

--
Marc Glisse




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux