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

Bug 607250

Summary: app-office/libreoffice-5.2.3.3-r1 won't build with Clang
Product: Gentoo Linux Reporter: Lori <lori>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 588226    

Description Lori 2017-01-26 07:15:25 UTC
The compiler check in the ebuild verifies if GCC is >= 4.7, and tries to account for Clang, but there may be some syntax or logical error, because when trying to build with Clang, you get:

* ERROR: app-office/libreoffice-5.2.3.3-r1::gentoo failed (pretend phase):
*   Too old gcc found.

Here's the code snippet:


        if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
                [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
            eerror "Compilation with gcc older than 4.7 is not supported"
            die "Too old gcc found."
        fi
Comment 1 Andreas Sturmlechner gentoo-dev 2017-01-31 20:46:55 UTC

*** This bug has been marked as a duplicate of bug 601504 ***