Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705640 - >=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'
Summary: >=dev-libs/nss-3.49 - ld: error: Linux2.6_arm_armv7a-unknown-linux-gnueabihf-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-01-17 07:39 UTC by tt_1
Modified: 2020-01-25 07:46 UTC (History)
0 users

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


Attachments
build.log (nss-3.49-neon-fails.log.gz,8.92 KB, application/gzip)
2020-01-17 07:39 UTC, tt_1
Details
output from emerge --info (emerge--info,5.39 KB, text/plain)
2020-01-17 09:54 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
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