Re: Building an older gcc

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

 



On Mon, 16 Jul 2018 10:58:46 +0100
Jonathan Wakely <jwakely.gcc@xxxxxxxxx> 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




[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