Building for armv7 fails -- undefined reference to `gcm_HashInit_hw'
Categories
(NSS :: Build, defect, P5)
Tracking
(Not tracked)
People
(Reporter: t1m-dev, Unassigned)
Details
Attachments
(1 file)
|
1.06 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Trying to build latest stable NSS (3.62) and NSPR (4.29) for arm-linux-gnueabihf. I'm using a working cross-compilation toolchain inside a docker environment. The target CPU has NEON support. The build fails because it doesn't find gcm_HashWrite_hw in lib/freebl/gcm-arm32-neon.c. I've tried to find out whether there's patches for that problem for Ubuntu or Debian; didn't find anything. The issue might be related to the gyp build but I couldn't get the autoconf build working.
Steps to reproduce: See attached Dockerfile.
Actual results:
[658/1210] SOLINK /root/nss-3.62/dist/Release/lib/libfreeblpriv3.so
FAILED: /root/nss-3.62/dist/Release/lib/libfreeblpriv3.so /root/nss-3.62/dist/Release/lib/libfreeblpriv3.so.TOC
if [ ! -e /root/nss-3.62/dist/Release/lib/libfreeblpriv3.so -o ! -e /root/nss-3.62/dist/Release/lib/libfreeblpriv3.so.TOC ]; then arm-linux-gnueabihf-gcc -shared -Wl,-rpath-link=.lib --sysro
/opt/x-tools/arm-remarkable-linux-gnueabihf/lib/gcc/arm-remarkable-linux-gnueabihf/8.3.0/../../../../arm-remarkable-linux-gnueabihf/bin/ld.bfd: obj/lib/freebl/freeblpriv3.gcm.o: in function
gcm.c:(.text.gcmHash_InitContext+0xa4): undefined reference to gcm_HashInit_hw' /opt/x-tools/arm-remarkable-linux-gnueabihf/lib/gcc/arm-remarkable-linux-gnueabihf/8.3.0/../../../../arm-remarkable-linux-gnueabihf/bin/ld.bfd: obj/lib/freebl/freeblpriv3.gcm.o: in function gcm.c:(.text.gcmHash_Final+0xdc): undefined reference to gcm_HashWrite_hw'
/opt/x-tools/arm-remarkable-linux-gnueabihf/lib/gcc/arm-remarkable-linux-gnueabihf/8.3.0/../../../../arm-remarkable-linux-gnueabihf/bin/ld.bfd: obj/lib/freebl/freeblpriv3.gcm.o: in function
gcm.c:(.text.gcmHash_Reset+0x90): undefined reference to `gcm_HashZeroX_hw'
collect2: error: ld returned 1 exit status
Comment 1•5 years ago
|
||
The functions gcm_HashWrite_hw and gcm_HashZeroX_hw are in the lib/freebl/gcm-arm32-neon.c file, so I expect that something might not linked in freebl properly. Can you try running with --target=arm to see if there is a difference?
Updated•5 years ago
|
Description
•