New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 735342 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 630057
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 649672



Sign in to add a comment

dev-libs:openssl-1.1.0f build failures on arm

Project Member Reported by djkurtz@chromium.org, Jun 21 2017

Issue description

# checkout https://chromium-review.googlesource.com/389211
# Fix up a bunch of other dependencies
emerge-hana openssl

...
Eventually compilation fails with:
....

armv7a-cros-linux-gnueabi-clang  -I. -Icrypto/include -Iinclude -Icrypto -DZLIB -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSL_API_COMPAT=0x10000000L -DL_ENDIAN -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines-1.1\"" -Wall -pthread  -O2 -O2 -pipe -march=armv8-a+crc -mtune=cortex-a57.cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -g -fno-exceptions -fno-unwind-tables   -fno-asynchronous-unwind-tables  -clang-syntax -Qunused-arguments -fno-strict-aliasing -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -MMD -MF crypto/aes/aes-armv4.d.tmp -MT crypto/aes/aes-armv4.o -c -o crypto/aes/aes-armv4.o crypto/aes/aes-armv4.s


crypto/aes/aes-armv4.s:177:13: error: immediate operand must be in the range [0,4095]
 sub r10,r3,#AES_encrypt-AES_Te @ Te
            ^
crypto/aes/aes-armv4.s:394:13: error: immediate operand must be in the range [0,4095]
 sub r10,r3,#_armv4_AES_set_encrypt_key-AES_Te-1024 @ Te4
            ^
crypto/aes/aes-armv4.s:815:13: error: immediate operand must be in the range [0,4095]
 sub r10,r3,#AES_decrypt-AES_Td @ Td
            ^


armv7a-cros-linux-gnueabi-clang  -I. -Icrypto/include -Iinclude -Icrypto -DZLIB -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSL_API_COMPAT=0x10000000L -DL_ENDIAN -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines-1.1\"" -Wall -pthread  -O2 -O2 -pipe -march=armv8-a+crc -mtune=cortex-a57.cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -g -fno-exceptions -fno-unwind-tables   -fno-asynchronous-unwind-tables  -clang-syntax -Qunused-arguments -fno-strict-aliasing -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -MMD -MF crypto/aes/bsaes-armv7.d.tmp -MT crypto/aes/bsaes-armv7.o -c -o crypto/aes/bsaes-armv7.o crypto/aes/bsaes-armv7.s

crypto/aes/bsaes-armv7.s:78:12: error: immediate operand must be in the range [0,4095]
 add r6,r6,#.LM0ISR-_bsaes_decrypt8
           ^
crypto/aes/bsaes-armv7.s:569:12: error: immediate operand must be in the range [0,4095]
 sub r6,r6,#_bsaes_encrypt8-.LM0SR
           ^
crypto/aes/bsaes-armv7.s:1004:12: error: immediate operand must be in the range [0,4095]
 sub r6,r6,#_bsaes_key_convert-.LM0
           ^
crypto/aes/bsaes-armv7.s:1337:14: error: immediate operand must be in the range [0,4095]
 add r8, r6, #.LREVM0SR-.LM0 @ borrow r8
             ^
crypto/aes/bsaes-armv7.s:1377:14: error: immediate operand must be in the range [0,4095]
 sub r6, r8, #.LREVM0SR-.LSR @ pass constants
             ^

 

Comment 1 by vapier@chromium.org, Jun 21 2017

well, you commented out the clang patch in that CL ;).  maybe try enabling/porting it ?

https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/release-R60-9592.B/dev-libs/openssl/files/openssl-1.0.2-gas.patch
Mergedinto: 630057
Status: Duplicate (was: Started)
Yup, that did it.
I rebased the patch and re-uploaded:

https://chromium-review.googlesource.com/#/c/389211/3

Sign in to add a comment