Re: parse error: GTY must be specified before identifier

Waldek Hebisch <[email protected]> Mon, 1 Mar 2021 00:22:55 +0100
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
On Sun, Feb 28, 2021 at 03:37:50PM -0500, Paul Dufresne wrote:
> I am trying to build with the most recent of gcc that I found that still use gcc-core:
> 
> ftp://gnu.mirror.iweb.com/gcc/gcc-4.6.4/gcc-core-4.6.4.tar.bz2
>

See README at

https://github.com/hebisch/gpc

To have any chance to build gpc you need a patch to gcc.  Using
gcc-core is irrelevant: it just saves download time compared to
full gcc.  It matters is gpc was adapted (ported) to given
gcc backend.

Concerning your first message: most gpc build problem are
in fact gcc build problems.  Namely, building older gcc
versions (needed by gpc) is getting tricky on modern
systems.  So as first step you may try just building
old gcc (say 3.4.6 or 4.1.1).  gpc contains patches
for some build problems, but new ones appear...

-- 
                              Waldek Hebisch