Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793197 - dev-libs/libgcrypt-1.9.3::gentoo failed (compile phase) [warning: unknown pragma ignored [-Wunknown-pragmas] #pragma GCC optimize ("O0")] with clang toolchain
Summary: dev-libs/libgcrypt-1.9.3::gentoo failed (compile phase) [warning: unknown pra...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-31 11:08 UTC by vicalcas
Modified: 2021-06-13 17:41 UTC (History)
2 users (show)

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


Attachments
build log (build.log,164.38 KB, text/x-log)
2021-05-31 11:08 UTC, vicalcas
Details
config log (config.log,138.99 KB, text/x-log)
2021-05-31 11:09 UTC, vicalcas
Details
emerge info (info,7.02 KB, text/plain)
2021-05-31 11:09 UTC, vicalcas
Details
emerge pqv (pqv,182 bytes, text/plain)
2021-05-31 11:09 UTC, vicalcas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vicalcas 2021-05-31 11:08:39 UTC
Created attachment 712743 [details]
build log

I'm unable to compile libgcrypt with a clang toolchain and i suspect it's because a lack of compatibility because a #pragma line in the codebase in random/jitterentropy-base.c. Is this a bug of clang or am i intended to compile libgcrypt with a gcc toolchain exclusively? Thank you for your time
Comment 1 vicalcas 2021-05-31 11:09:16 UTC
Created attachment 712746 [details]
config log
Comment 2 vicalcas 2021-05-31 11:09:31 UTC
Created attachment 712749 [details]
emerge info
Comment 3 vicalcas 2021-05-31 11:09:45 UTC
Created attachment 712752 [details]
emerge pqv
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-31 11:11:01 UTC
Could you report this upstream?
Comment 6 vicalcas 2021-05-31 11:23:37 UTC
(In reply to Sam James from comment #5)
> Could you report this upstream?

I found the bugs webpage in the git AUTHORS file, I'll try to report and then i'll post the bug url here for easy access
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-31 11:32:01 UTC
(In reply to vicalcas from comment #6)
> (In reply to Sam James from comment #5)
> > Could you report this upstream?
> 
> I found the bugs webpage in the git AUTHORS file, I'll try to report and
> then i'll post the bug url here for easy access

Thank you! :)
Comment 8 vicalcas 2021-05-31 13:16:57 UTC
The promised bug url is here:
https://dev.gnupg.org/T5457
Comment 9 vicalcas 2021-06-01 09:11:59 UTC
As suggested in the bug tracker the problem is that with clang the USE flag o-flag-munging has to be enabled in order for clang to compile it. I will leave up to you if this has to be closed or the ebuild has to be modified, but the bottom line is that if that flag is enabled clang doesn't complain and compiles it. Not considering that flag was an error on my end and i'm sorry for it