Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818379 - app-crypt/rhash-1.4.2: configure failure with clang
Summary: app-crypt/rhash-1.4.2: configure failure with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2021-10-15 22:53 UTC by James Beddek
Modified: 2021-10-16 23:10 UTC (History)
1 user (show)

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


Attachments
build.log (file_818379.txt,2.96 KB, text/plain)
2021-10-15 22:53 UTC, James Beddek
Details
emerge --info (file_818379.txt,7.80 KB, text/plain)
2021-10-15 22:54 UTC, James Beddek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Beddek 2021-10-15 22:53:13 UTC
Created attachment 745059 [details]
build.log

app-crypt/rhash-1.4.2 fails to configure with Clang. This is known and fixed upstream in commit https://github.com/rhash/RHash/commit/4dc506066cf1727b021e6352535a8bb315c3f8dc


---

config.log:

Configuration parameters: "--target=x86_64-pc-linux-gnu --cc=clang --ar=llvm-ar --extra-cflags=-march=znver2 -O3 -glldb -fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2 -pipe --extra-ldflags=-Wl,-O3 -Wl,--as-needed -Wl,-z,relro,-z,now -pie -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --disable-openssl-runtime --disable-static --enable-lib-shared --disable-debug --enable-gettext --enable-openssl --disable-lib-static"
Symlinks to install: sfv-hash has160-hash gost12-256-hash gost12-512-hash edonr256-hash edonr512-hash tiger-hash tth-hash whirlpool-hash ed2k-link magnet-link

warning: use --enable-openssl instead of --disable-openssl-runtime
============ Checking for target OS ============
Host   OS  : Linux
Target OS  : Linux
Target ARCH: x86_64
Result is: Linux
=============================================

Run: clang -v
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
Run result: 0

Error: compiler not found

---
Comment 1 James Beddek 2021-10-15 22:54:13 UTC
Created attachment 745062 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2021-10-16 23:10:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e967160ad4b02b3c8e58c49c5b4004fbeb4e715

commit 0e967160ad4b02b3c8e58c49c5b4004fbeb4e715
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2021-10-16 23:06:53 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2021-10-16 23:07:07 +0000

    app-crypt/rhash: Fix building 1.4.2 with Clang
    
    Closes: https://bugs.gentoo.org/818379
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 app-crypt/rhash/files/rhash-1.4.2-clang.patch | 80 +++++++++++++++++++++++++++
 app-crypt/rhash/rhash-1.4.2.ebuild            |  4 ++
 2 files changed, 84 insertions(+)