openssl: OpenSSL 3.0.15 won't build on AIX Power machines that don't support the xxlor instruction.
Summary OpenSSL 3.0.15 won’t build on AIX Power machines that don’t support xxlor instruction. OpenSSL 3.0.14 was fine because it pre-dates this git push
Details
perl <openssl 3.0.14 source tree>crypto/aes/asm/aesp8-ppc.pl "aix64" > /tmp/aesp8-ppc.3.0.14.s
perl <openssl 3.0.15 source tree>crypto/aes/asm/aesp8-ppc.pl "aix64" > /tmp/aesp8-ppc.3.0.15.s
diff /tmp/aesp8-ppc.3.0.14.s /tmp/aesp8-ppc.3.0.15.s
2343 xxlor 2, 32+10, 32+10 <<----- Ouch.
2344 vsldoi 10,11,10,1
2345 xxlor 1, 32+10, 32+10 <<----- Ouch.
The xxlor instruction is a Power ISA (Instruction Set Architecture), specific to certain versions of the Power architecture. xxlor is supported on Power9 and Power10 processors running AIX 7.2 (with appropriate Technology Levels) and AIX 7.3.
Unfortunately we have an earlier AIX Power build machine so our OpenSSL 3.0.15 build fails at:
cc -Dinline= -qpic -q64 -qmaxmem=16384 -qro -qroconst -qthreaded -O -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-3\"" -DMODULESDIR="\"/usr/local/lib/ossl-modules\"" -D_THREAD_SAFE -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o crypto/aes/libcrypto-lib-aesp8-ppc.o crypto/aes/aesp8-ppc.s
With:
Assembler:
crypto/aes/aesp8-ppc.s: line 2343: invalid opcode or pseudo-op
crypto/aes/aesp8-ppc.s: line 2345: invalid opcode or pseudo-op
crypto/aes/aesp8-ppc.s: line 2350: invalid opcode or pseudo-op
crypto/aes/aesp8-ppc.s: line 2411: invalid opcode or pseudo-op
crypto/aes/aesp8-ppc.s: line 2412: invalid opcode or pseudo-op
crypto/aes/aesp8-ppc.s: line 2421: invalid opcode or pseudo-op
crypto/aes/aesp8-ppc.s: line 2422: invalid opcode or pseudo-op
Build machine We are building on AIX 5.3
kylie@lucky53:~$ oslevel
5.3.0.0
pack@vaixp53:~$ ls -l /unix
lrwxrwxrwx 1 root system 21 Jun 21 2011 /unix -> /usr/lib/boot/unix_64
kylie@lucky53:~$ prtconf
System Model: IBM,8202-E4B
Machine Serial Number: 06B1BFP
Processor Type: PowerPC_POWER7
Processor Implementation Mode: POWER 6
Processor Version: PV_6_Compat
Number Of Processors: 2
Processor Clock Speed: 3000 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 2 02-vaixp53
Memory Size: 8192 MB
Good Memory Size: 8192 MB
Platform Firmware level: AL720_090
Firmware Version: IBM,AL720_090
Console Login: enable
Auto Restart: true
Full Core: false
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 18 (16 by maintainers)
I don’t want to disagree with the notion of adding more ci ( who wouldn’t being favor of more testing, or puppies, or feeding hungry people). But I feel like I need to point out that power is currently a community platform. While we certainly could add more arch variant tests for power (and other) arches, doing so adds CPU cycles to our ci set, and there is some monetary impact there, especially if we’re using qemu.
It might not be a big deal, but if we were to add daily/weekly tests for something like this I would feel better doing so if A) IBM could donate access to the appropriate power arches to run this testing And B) as a community platform, we don’t gate releases on passing any of these ci tests
Alternatively we could promote power to a primary platform, but that’s a much larger conversation, and one I personally don’t believe we have the resources to support right now