> On 25 Nov 2018, at 20:01, L A Walsh <gcc@xxxxxxxxx> wrote: > > On 11/25/2018 10:19 AM, gcc-help@xxxxxxx wrote: >> Hello >> >> I'm trying to build GCC 8.2.0 from source in order to provide a package to use on a Synology NAS (https://github.com/SynoCommunity/spksrc/), since it doesn't ship with a C compiler, however the compilation fails with this error: >> >> ../../libiberty/obstack.c: In function ‘call_chunkfun’: >> ../../libiberty/obstack.c:92:23: error: request for member ‘extra’ in something not a structure or union >> return h->chunkfun.extra (h->extra_arg, size); >> > ---- That looks like C++ syntax. > > Have you tried g++? What do you mean by "try g++"? I'm using the classic configure/make/make install method here, I don't specifically invoke a compiler command. Basically, I'm doing what's documented here: https://gcc.gnu.org/wiki/InstallingGCC m.