aferrero2707 / PhotoFlow

A fully non-destructive photo retouching program providing a complete layer-based workflow including RAW image development.
http://aferrero2707.github.io/PhotoFlow
GNU General Public License v3.0
314 stars 36 forks source link

Internal compiler error: Segmentation fault while building latest Stable branch #101

Open Joermungand opened 8 years ago

Joermungand commented 8 years ago

Trying to compile the latest Stable branch results in:

In file included from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/gui/operations/gmic/../../../operations/gmic/inpaint.hh:41:0, from /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/gui/operations/gmic/inpaint_config.cc:33: /media/Storage/Downloads/PhotoFlow/AUR/nightly/src/photoflow/src/gui/operations/gmic/../../../operations/gmic/../draw.hh:120:56: internal compiler error: Segmentation fault Property<float>& get_pen_grey() { return pen_grey; }

Any idea why?

aferrero2707 commented 8 years ago

No idea, except for the fact that the inpaint code includes quite a lot of template-based header files... this might trigger some compiler bug?

The code compiles fine on my system, and as far as I can see it was also compiled fine in the Ubuntu PPA.

Have you tried to re-start the compilation? If the compiler still crashes each time, I will try to make the inpaint code "lighter" in terms of the amount of template-based code that needs to be compiled, hopefully this will solve the issue...

Joermungand commented 8 years ago

Thanks. I will try again. I’m half suspecting this might be a gcc6-related issue (Archlinux is on gcc6), I’ve seen a lot of those lately.

Joermungand commented 8 years ago

Strangely enough, it worked the second time around. So it couldn’t have been because of GCC6, after all. It might have been because of something far more commonplace, such as room temperature over 30°C, which throws my CPU temps well over 70 while compiling. Trying to do something else at the same time will add to that.

aferrero2707 commented 8 years ago

Ok. I'll keep this open to remind myself that I should simplify the inpaint code anyhow, as it takes quite some time to compile at the moment.

Joermungand commented 8 years ago

Yeah, it does take a while. There is no bug, though. Thank you.