Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955704 - dev-libs/libgcrypt-1.11.0-r2 fails to build on sparc (32bit)
Summary: dev-libs/libgcrypt-1.11.0-r2 fails to build on sparc (32bit)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-09 22:01 UTC by Andreas K. Hüttel
Modified: 2025-05-10 20:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2025-05-09 22:01:11 UTC
Found during stage builds, probably due to USE=asm


libtool: link: sparc-unknown-linux-gnu-gcc -DSTANDALONE -O2 -mcpu=ultrasparc -pipe -fvisibility=hidden -fno-delete-null-pointer-checks -Wall -Wl,-O1 -Wl,--undefined-version -o hmac25
6 hmac256-hmac256.o  -Wl,--as-needed
/bin/sh ../libtool  --tag=CC   --mode=link sparc-unknown-linux-gnu-gcc   -O2 -mcpu=ultrasparc -pipe -fvisibility=hidden -fno-delete-null-pointer-checks -Wall    -Wl,--version-script=
/var/tmp/portage/dev-libs/libgcrypt-1.11.0-r2/work/libgcrypt-1.11.0/src/libgcrypt.vers -version-info 25:0:5 -Wl,-O1 -Wl,--as-needed -Wl,--undefined-version -o libgcrypt.la -rpath /us
r/lib libgcrypt_la-visibility.lo libgcrypt_la-misc.lo libgcrypt_la-global.lo libgcrypt_la-sexp.lo libgcrypt_la-hwfeatures.lo libgcrypt_la-stdmem.lo libgcrypt_la-secmem.lo libgcrypt_l
a-missing-string.lo libgcrypt_la-fips.lo libgcrypt_la-context.lo libgcrypt_la-const-time.lo   ../cipher/libcipher.la ../random/librandom.la ../mpi/libmpi.la ../compat/libcompat.la  -
lgpg-error 
libtool: link: sparc-unknown-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o .libs
/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .libs/libgcrypt_la-fips.o .libs/libgcrypt_la-context.o .libs/li
bgcrypt_la-const-time.o  -Wl,--whole-archive ../cipher/.libs/libcipher.a ../random/.libs/librandom.a ../mpi/.libs/libmpi.a ../compat/.libs/libcompat.a -Wl,--no-whole-archive  -Wl,--a
s-needed -lgpg-error  -O2 -mcpu=ultrasparc -Wl,--version-script=/var/tmp/portage/dev-libs/libgcrypt-1.11.0-r2/work/libgcrypt-1.11.0/src/libgcrypt.vers -Wl,-O1 -Wl,--undefined-version
   -Wl,-soname -Wl,libgcrypt.so.20 -o .libs/libgcrypt.so.20.5.0
libtool: link: (cd ".libs" && rm -f "libgcrypt.so.20" && ln -s "libgcrypt.so.20.5.0" "libgcrypt.so.20")
libtool: link: (cd ".libs" && rm -f "libgcrypt.so" && ln -s "libgcrypt.so.20.5.0" "libgcrypt.so")
libtool: link: ( cd ".libs" && rm -f "libgcrypt.la" && ln -s "../libgcrypt.la" "libgcrypt.la" )
/bin/sh ../libtool  --tag=CC   --mode=link sparc-unknown-linux-gnu-gcc  -O2 -mcpu=ultrasparc -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: sparc-unknown-linux-gnu-gcc -O2 -mcpu=ultrasparc -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/sparc-unknown-linux-gnu/14/../../../../sparc-unknown-linux-gnu/bin/ld: ./.libs/libgcrypt.so: undefined reference to `__udiv_qrnnd'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:668: mpicalc] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libgcrypt-1.11.0-r2/work/libgcrypt-1.11.0-.sparc32/src'
make[1]: *** [Makefile:508: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libgcrypt-1.11.0-r2/work/libgcrypt-1.11.0-.sparc32'
make: *** [Makefile:440: all] Error 2
 ESC[31;01m*ESC[0m ERROR: dev-libs/libgcrypt-1.11.0-r2::gentoo failed (compile phase):
 ESC[31;01m*ESC[0m   emake failed
Comment 1 Larry the Git Cow gentoo-dev 2025-05-09 22:03:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d368285891c79328b2f71ba435d2d07e6ffeb67

commit 5d368285891c79328b2f71ba435d2d07e6ffeb67
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2025-05-09 22:02:24 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2025-05-09 22:02:24 +0000

    profiles, sparc 32bit ul: Try masking libgcrypt[asm]
    
    Bug: https://bugs.gentoo.org/955704
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 profiles/arch/sparc/32ul/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2025-05-10 20:10:37 UTC
Not related to USE=asm, it fails also without (same error)
Comment 3 Larry the Git Cow gentoo-dev 2025-05-10 20:14:08 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=403d01f69fef376fd8f81739630d8ebb6b6883c4

commit 403d01f69fef376fd8f81739630d8ebb6b6883c4
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2025-05-10 20:11:24 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2025-05-10 20:13:41 +0000

    Revert "profiles, sparc 32bit ul: Try masking libgcrypt[asm]"
    
    Didn't help.
    
    This reverts commit 5d368285891c79328b2f71ba435d2d07e6ffeb67.
    
    Bug: https://bugs.gentoo.org/955704
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 profiles/arch/sparc/32ul/package.use.mask | 4 ----
 1 file changed, 4 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2025-05-10 20:29:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d3cf4c5a8089b2688c86653f8cc5480ac487de1

commit 5d3cf4c5a8089b2688c86653f8cc5480ac487de1
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2025-05-10 20:27:51 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2025-05-10 20:29:06 +0000

    profiles, sparc 32bit ul: Force libgcrypt[asm]
    
    It seems to be the other way around...
    
    Bug: https://bugs.gentoo.org/955704
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 profiles/arch/sparc/32ul/package.use.force | 6 ++++++
 1 file changed, 6 insertions(+)