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

Bug 645090

Summary: sys-devel/gcc USE="-cxx go" should not build instead of disabling go
Product: Gentoo Linux Reporter: Nado <nado>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: minor CC: fturco, jstein, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=828678
Whiteboard:
Package list:
Runtime testing required: ---

Description Nado 2018-01-20 09:06:10 UTC
While testing a variety of different build configurations for gcc, I spotted that using `USE="-* go" emerge gcc, I get :

>>> Running pre-merge checks for sys-devel/gcc-7.2.0-r1
 * Go requires a C++ compiler, disabled due to USE="-cxx"

Could this warning be made fatal ? I don't see the point of telling it in a warning and not building what the user wanted. Especially when doing a long emerge run when it is easy to miss some warnings.

Reproducible: Always

Actual Results:  
User with USE="-cxx go" gets a gcc without go but a simple warning.

Expected Results:  
Emerge dies like when REQUIRED_USE constraints are unmet in other ebuilds.

I set the severity as minor because I spotted it during tests, I don't expect much people wanting a go compiler without a c++ one.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-29 20:27:59 UTC
Yeah, we can leverage REQUIRED_USE for that.