Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947497 - dev-libs/libgcrypt-1.11.0-r1 fails to build on POWER8 with USE=asm
Summary: dev-libs/libgcrypt-1.11.0-r1 fails to build on POWER8 with USE=asm
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-04 18:10 UTC by gentoolinux
Modified: 2025-01-06 03:17 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,168.98 KB, text/x-log)
2025-01-04 18:10 UTC, gentoolinux
Details
emerge --info (emerge-info.txt,5.27 KB, text/plain)
2025-01-04 18:11 UTC, gentoolinux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoolinux 2025-01-04 18:10:04 UTC
dev-libs/libgcrypt-1.11.0-r1 fails to build on POWER8 with USE flag asm enabled:

/bin/sh ../libtool  --tag=CC   --mode=link powerpc64le-unknown-linux-gnu-gcc  -mcpu=power8 -O2 -pipe -fvisibility=hidden -fno-delete-null-pointer-checks -Wall  -Wl,-O1 -Wl,--as-needed -Wl,--undefined-version -o mpicalc mpicalc-mpicalc.o libgcrypt.la -lgpg-error
libtool: link: powerpc64le-unknown-linux-gnu-gcc -mcpu=power8 -O2 -pipe -fvisibility=hidden -fno-delete-null-pointer-checks -Wall -Wl,-O1 -Wl,--undefined-version -o .libs/mpicalc mpicalc-mpicalc.o  -Wl,--as-needed ./.libs/libgcrypt.so -lgpg-error
/usr/lib/gcc/powerpc64le-unknown-linux-gnu/14/../../../../powerpc64le-unknown-linux-gnu/bin/ld: ./.libs/libgcrypt.so: undefined reference to `gcry_poly1305_p10le_4blocks'
/usr/lib/gcc/powerpc64le-unknown-linux-gnu/14/../../../../powerpc64le-unknown-linux-gnu/bin/ld: ./.libs/libgcrypt.so: undefined reference to `_gcry_chacha20_p10le_8x'
collect2: error: ld returned 1 exit status

With USE=-asm the issue does not occur.

The issue affects all 1.11.0 ebuilds (including previous stable 1.11.0 and latest 1.11.0-r2).

All libgcrypt-1.10.3 ebuild compile fine with both USE=asm and USE=-asm.

Reproducible: Always

Steps to Reproduce:
1. emerge libgcrypt with USE=asm
Comment 1 gentoolinux 2025-01-04 18:10:47 UTC
Created attachment 915846 [details]
build.log
Comment 2 gentoolinux 2025-01-04 18:11:08 UTC
Created attachment 915847 [details]
emerge --info