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

Bug 762997

Summary: dev-libs/crypto++-8.2.0-r2 - /sbin/ldconfig -n /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib: Unimplemented option: -n (on musl)
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Sam James <sam>
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log
emerge --info

Description ernsteiswuerfel archtester 2021-01-02 00:15:22 UTC
Created attachment 680560 [details]

x86_64-gentoo-linux-musl-g++ -o cryptest.exe -Os -march=x86-64 -msse3 -mtune=athlon64-sse3 -pipe -fPIC -pthread -pipe adhoc.o test.o bench1.o bench2.o bench3.o datatest.o dlltest.o fipsalgt.o validat0.o validat1.o validat2.o validat3.o validat4.o validat5.o validat6.o validat7.o validat8.o validat9.o validat10.o regtest1.o regtest2.o regtest3.o regtest4.o ./libcryptopp.a -Wl,-O1 -Wl,--as-needed 
make: Nothing to be done for 'shared'.
>>> Source compiled.
>>> Test phase [not enabled]: dev-libs/crypto++-8.2.0-r2

>>> Install dev-libs/crypto++-8.2.0-r2 into /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image
make -j1 DESTDIR=/var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image install 
Using testing flags: -Os -march=x86-64 -msse3 -mtune=athlon64-sse3 -pipe
cp *.h /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/include/cryptopp
chmod 0644 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/include/cryptopp/*.h
cp libcryptopp.a /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib
chmod 0644 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib/libcryptopp.a
cp /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib
chmod 0755 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib/
ln -sf /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib/
/sbin/ldconfig -n /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib
Unimplemented option: -n
make: *** [GNUmakefile:1249: install-lib] Error 1
 * ERROR: dev-libs/crypto++-8.2.0-r2::gentoo failed (install phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2021-01-02 00:15:55 UTC
Created attachment 680563 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2021-02-08 10:45:39 UTC
Same for crypto++-8.4.0.
Comment 3 ernsteiswuerfel archtester 2021-02-08 11:23:29 UTC
Created attachment 686034 [details, diff]

Patch was taken from

Fixes 8.2.0-r2 and 8.4.0 build.
Comment 4 Larry the Git Cow gentoo-dev 2021-02-08 14:54:10 UTC
The bug has been closed via the following commit(s):

commit d1542c922ef3e2f1588a1bf3ab6cb8716dbacef0
Author:     Sam James <>
AuthorDate: 2021-02-08 13:50:07 +0000
Commit:     Sam James <>
CommitDate: 2021-02-08 14:53:58 +0000

    dev-libs/crypto++: fix musl build
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sam James <>

 dev-libs/crypto++/crypto++-8.2.0-r2.ebuild         |  3 ++-
 dev-libs/crypto++/crypto++-8.4.0.ebuild            |  4 ++++
 .../files/crypto++-8.2.0-musl-ldconfig.patch       | 24 ++++++++++++++++++++++
 3 files changed, 30 insertions(+), 1 deletion(-)