Internal Compiler Error (ICE) building gcc 8.3.0 on ppc64 Linux

Brian Groose bgroose@gmail.com
Fri Mar 29 20:16:00 GMT 2019


On Wed, Mar 27, 2019 at 7:51 PM Peter Bergner <bergner@linux.ibm.com> wrote:
>
> On 3/25/19 5:05 PM, Brian Groose wrote:
> > I am trying to build gcc 8.3.0 on linux ppc64.  I have successfully
> > built 5.3.0 without issue on this machine.  When I build 8.3.0,
> > however, I hit this error:
> [snip]
> > In file included from
> > /root/gcc/act-gcc-8.3.0-sandbox/gcc-8.3.0/libgcc/libgcc2.c:56:
> > /root/gcc/act-gcc-8.3.0-sandbox/gcc-8.3.0/libgcc/libgcc2.c: In
> > function ‘__multi3’:
> > /root/gcc/act-gcc-8.3.0-sandbox/gcc-8.3.0/libgcc/libgcc2.h:203:20:
> > internal compiler error: Segmentation fault
> >  #define __NDW(a,b) __ ## a ## ti ## b
>
> This seems familiar and I think it had to do with a broken installed
> header file.  Since GCC 6 and GCC 7 built successfully, can you use
> one of those compilers to build GCC 8?  If so, that would lead me
> to think the system compiler has issues.

Yes, I saw similar PRs around Solaris long ago and some Sun patch
breaking things because it updated libm or something.

gcc 6.5.0 builds successfully, and when I used that to build 8.3.0, it worked!

Thank you for the suggestion!  It seems like an issue with my freshly
installed host, so I will leave it at that.  I appreciate the quick
responses, Peter and Segher!



More information about the Gcc-help mailing list