Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607250 - app-office/libreoffice-5.2.3.3-r1 won't build with Clang
Summary: app-office/libreoffice-5.2.3.3-r1 won't build with Clang
Status: RESOLVED DUPLICATE of bug 601504
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 588226
  Show dependency tree
 
Reported: 2017-01-26 07:15 UTC by Lori
Modified: 2017-01-31 20:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***