Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729172 - app-crypt/tpm2-tools fails to compile with clang
Summary: app-crypt/tpm2-tools fails to compile with clang
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christopher Byrne
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-06-22 10:58 UTC by Agostino Sarubbo
Modified: 2021-03-10 03:53 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,16.39 KB, text/plain)
2020-06-22 10:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-06-22 10:58:56 UTC
@@This is an auto-filed bug@@
If you think that a different summary clarifies the issue better, feel free to change it.

Issue: app-crypt/tpm2-tools fails to compile.
Discovered on: amd64

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-22 10:59:01 UTC
Created attachment 645726 [details]
build.log

build log and emerge --info
Comment 2 Jonas Stein gentoo-dev 2020-12-11 21:42:14 UTC
was fixed upstream.
Any news here?
Comment 3 Christopher Byrne 2020-12-12 21:14:46 UTC
Well, it compiles, but it gives tons of error about unknown command line options:

warning: unknown warning option '-Wbool-compare'
      [-Wunknown-warning-option]
warning: unknown warning option '-Wstringop-overflow=4'; did you
      mean '-Wshift-overflow'? [-Wunknown-warning-option]
warning: unknown warning option '-Wstringop-truncation'; did you
      mean '-Wstring-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wduplicated-branches'
      [-Wunknown-warning-option]
warning: unknown warning option '-Wduplicated-cond'
      [-Wunknown-warning-option]
5 warnings generated
Comment 4 Christopher Byrne 2021-03-10 03:53:43 UTC
Upstream has fixed it (for a while) so that this package now compiles under clang, albeit noisily. If the noise about unrecognized options is a problem, its probably better a new bug be opened upstream. It turns out fixing this in a robust manner is more difficult that I thought.