Building an older gcc

Zoltán Kócsi zoltan@bendor.com.au
Mon Jul 16 23:46:00 GMT 2018


On Mon, 16 Jul 2018 10:58:46 +0100
Jonathan Wakely <jwakely.gcc@gmail.com> wrote:

> On Mon, 16 Jul 2018 at 08:38, Zoltán Kócsi wrote:
> >
> > I'm trying to build gcc 4.5.8 for cross-compilation on a relatively
> > modern system and it fails on at least two points.
> > [...]
>
> The difference is that GCC 6 defaults to C++14, and the old gnu_inline
> declarations aren't compatible with it. Or something, I can't remember
> the details. Use:
> 
> make STAGE1_CXXFLAGS="-O2 -g -std=gnu++98"

Ah, OK, understand. Simple enough.

> You'll probably also need fixes to libgcc:
> 
> sed -i 's/struct ucontext/ucontext_t/'
> gcc-4.8.5/libgcc/config/i386/linux-unwind.h
> 
> and libsanitizer too.

Managed to compile, thanks a lot!

Regards,

Zoltan



More information about the Gcc-help mailing list