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

Bug 705640

Summary: >=dev-libs/nss-3.49 - ld: error: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm-arm32-neon.o: multiple definition of 'gcm_HashMult_hw'
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
See Also: https://bugzilla.mozilla.org/show_bug.cgi?id=1608327
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
output from emerge --info

Description tt_1 2020-01-17 07:39:21 UTC
Created attachment 603564 [details]
build.log

dev-libs/nss-3.49 comes with improved support for neon on arm, but something goes wrong during linking: 

/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: warning: wildcard match appears in both version 'NSSprivate_3.11' and 'NSSprivate_3.16' in script
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: error: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm-arm32-neon.o: multiple definition of 'gcm_HashMult_hw'
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm.o: previous definition here
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: error: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm-arm32-neon.o: multiple definition of 'gcm_HashWrite_hw'
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm.o: previous definition here
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: error: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm-arm32-neon.o: multiple definition of 'gcm_HashInit_hw'
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm.o: previous definition here
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: error: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm-arm32-neon.o: multiple definition of 'gcm_HashZeroX_hw'
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.2.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-gcc_glibc_PTH_OPT.OBJ/Linux_SINGLE_SHLIB/gcm.o: previous definition here
collect2: error: ld returned 1 exit status


this is the initial bug at mozilla to add the now failing bits: https://bugzilla.mozilla.org/show_bug.cgi?id=1562548

reverting this patch in nss-3.49 results in a working compile
Comment 1 tt_1 2020-01-17 09:54:00 UTC
Created attachment 603568 [details]
output from emerge --info
Comment 2 tt_1 2020-01-17 09:56:58 UTC
fixed by applying the patch from the third commit: 

https://bugzilla.mozilla.org/show_bug.cgi?id=1608327#c3

can you please add the upstream patch to the tree?
Comment 3 tt_1 2020-01-25 07:46:37 UTC
patches are merged into nss-3.49.2