Sporadic Internal Compiler Errors

Having trouble installing or compiling FreeCAD? Get help here.
rradler
Posts: 21
Joined: Sun Feb 03, 2019 10:49 am

Sporadic Internal Compiler Errors

Postby rradler » Fri Mar 15, 2019 6:46 am

Hi,

when I compile FreeCAD from the sources I get sporadic internal compiler errors (I am using Arch Linux with gcc (GCC) 8.2.1 20181127). With sporadic I mean that it does not happen always and not with the same file. Usually make will fail at some point and when I restart the build process it will compile that file just fine.

Does anybody have similar problems? Might this be a hardware problem with my computer? It runs very stable but it is quite old.
reox
Posts: 632
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Sporadic Internal Compiler Errors

Postby reox » Fri Mar 15, 2019 10:30 am

I had such issues when the PC would go OOM.
Do you compile on multiple cores at the same time, i.e. make -jX? Sometimes those problems went away when using a single core only...
rradler
Posts: 21
Joined: Sun Feb 03, 2019 10:49 am

Re: Sporadic Internal Compiler Errors

Postby rradler » Fri Mar 15, 2019 3:42 pm

I have done single core compilations so far. I have now tried multi core and things don't change much. I will try it on my laptop (also has Arch installed). If FreeCAD compiles wouthout that errors there, I'll buy a new desktop. My present one is a 10 years old AMD Phenom II machine. Since it was sufficient for me I had no motivation to get a new one.
rradler
Posts: 21
Joined: Sun Feb 03, 2019 10:49 am

Re: Sporadic Internal Compiler Errors

Postby rradler » Sun Mar 17, 2019 7:31 am

It turned out to be a hardware problem (defective memory).