[SOLVED] ART 1.20.2: only green channel is seen when compiled with LTO

Hi! Updated ART recently and was quite surprised with what I saw

Gentoo, self-compiled with gcc-17

Just for giggles, a couple of things to check / verify:

  • Make sure your demosaic algorithm isn’t set to None

  • Verify White Balance tint is correct and not all the way to green

  • Is anything off in your Channel Mixer, Color Equalizer or RGB Curves settings?

  • Any Color / Tone Correction (local adjustments) settings off?

  • Is the Black and White tool enabled and a green tint added?

1 Like

It’s freshly opened pic without any processing. Also note that thumbnail is red in the same time!

Privet!

Please upload that RAW file.

Hi,
I suspect some kind of miscompilation, though not necessarily a compiler bug. Did you try building with clang or an older gcc version?

So. Did some tests. Clang does not link: lots of lld errors.
But after switching off LTO ART compiled with gcc seems to work okay. The only kludge I noticed so far is thumbnails of images touched with LTO-ed version are cached somewhere so are still red. So be aware that 1.20 doesn’t work with LTO while 1.18 did. I think the case is solved.

Hi,

Same compiler version?

Actually not. gcc 13 vs. gcc 12.

So I would bet that’s more important than the version of art…

Unfortunately you seem to be right… every next generation of gcc appears buggier than a previous one. Now I start to understand BSD people who are still sitting on gcc 8.

The RAW file is definitely okay. But if you still want it just let me know :slightly_smiling_face: