Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 732438

Summary: x11-misc/redshift fails to compile with clang
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Sebastian Pipping <sping>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, slashbeast
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/jonls/redshift/issues/802
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: build.log
other.tar.bz2

Description Agostino Sarubbo gentoo-dev 2020-07-13 08:18:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-misc/redshift fails to compile.
Discovered on: amd64  (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-13 08:18:37 UTC
Created attachment 649092 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-13 08:18:41 UTC
Created attachment 649094 [details]
other.tar.bz2

other logs
Comment 3 Sebastian Pipping gentoo-dev 2021-01-31 18:25:47 UTC
Hi Ago,

I can reproduce the issue now with command line:

  CC=clang CXX=clang++ LD=ld.lld LDFLAGS=-fuse-ld=lld ebuild redshift-1.12-r3.ebuild manifest clean compile

and even with plain

  CC=clang ebuild redshift-1.12-r3.ebuild manifest clean compile

I have taken the issue upstream just now.

What do you suggest we do in the ebuild while we wait for a new release with  fix?

  a) Detect clang and extend LDFLAGS?

  b) Detect and deny use with clang?

  c) Unconditionally extend LDFLAGS?

  d) ...?

Is there a blueprint for issues like that somewhere?

Thanks and best, Sebastian