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

Bug 607514

Summary: app-office/libreoffice-bin-5.2 detects gcc-4.9.4 as <=gcc-4.4
Product: Gentoo Linux Reporter: EoD <EoD>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description EoD 2017-01-28 21:22:53 UTC
Created attachment 461768 [details]
emerge --info

When trying to emerge libreoffice-bin while having gcc-4.9.4 installed, the ebuild fails with the message:

>>> Running pre-merge checks for app-office/libreoffice-bin-5.2.3.3-r1
> * ERROR: app-office/libreoffice-bin-5.2.3.3-r1::gentoo failed (pretend phase):
> *   Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515).
> *
> * Call stack:
> *                           ebuild.sh, line 115:  Called pkg_pretend
> *   libreoffice-bin-5.2.3.3-r1.ebuild, line 183:  Called die
> * The specific snippet of code:
> *      [[ $(gcc-major-version) -lt 4 ]] || \
> *                      ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
> *              && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
> *

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-4.9.4::gentoo was built with the following:
USE="cxx fortran gcj (multilib) nls nptl openmp sanitize vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -go -graphite (-hardened) (-libssp) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" ABI_X86="64"
Comment 1 Oliver Freyermuth 2017-02-01 15:59:34 UTC
Works fine here with gcc 4.9.4... 
What does your gcc-config say?

$ gcc-config -l
 [1] x86_64-pc-linux-gnu-4.9.4 *
 [2] x86_64-pc-linux-gnu-5.4.0
Comment 2 EoD 2017-02-04 09:03:41 UTC
(In reply to Oliver Freyermuth from comment #1)
> Works fine here with gcc 4.9.4... 
> What does your gcc-config say?
> 
> $ gcc-config -l
>  [1] x86_64-pc-linux-gnu-4.9.4 *
>  [2] x86_64-pc-linux-gnu-5.4.0

# gcc-config -l
 [1] x86_64-pc-linux-gnu-4.9.4 *
Comment 3 EoD 2017-02-04 09:12:38 UTC
I set my compiler to CC=clang and CXX=clang++ by accident and hence triggered the error.

I am not sure if we should
* set it to RESOLVED->INVALID 
or 
* rename it to "app-office/libreoffice-bin-5.2 detects clang-3.9 as <=gcc-4.4"
Comment 4 Oliver Freyermuth 2017-02-08 20:27:56 UTC
I'm also unsure, maybe the bug wranglers could comment. 

Depending on how things are handled for bin-packages, this bug maybe should even block 588226 .