Snapshot MIPS SDKs seems broken: crypto/aes/aes-mips.S:505: Error: invalid operands

Petr Štetiar ynezz at true.cz
Tue Mar 21 23:03:53 PDT 2023


Hi,

I got an email this morning, that weekly CI build tests of ustream-ssl using
ath79/generic[1] and malta/be[2] snapshot SDKs have failed.

Reproducer:

 $ docker run --rm -it openwrt/sdk:ath79-generic-snapshot sh -c " \
   ./scripts/feeds update base && \
   ./scripts/feeds install openssl && \
   make defconfig && \
   make package/openssl/compile V=s"
 ...
 mips-openwrt-linux-musl-gcc  -Icrypto -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include  -DAES_ASM -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -fPIC -pthread -mabi=32 -Wa,--noexecstack -Wall -O3 -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/home/build/openwrt/build_dir/target-mips_24kc_musl/openssl-3.0.8=openssl-3.0.8 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines-3\"" -DMODULESDIR="\"/usr/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM -DOPENSSL_SMALL_FOOTPRINT -I/home/build/openwrt/staging_dir/toolchain-mips_24kc_gcc-12.2.0_musl/usr/include -I/home/build/openwrt/staging_dir/toolchain-mips_24kc_gcc-12.2.0_musl/include/fortify -I/home/build/openwrt/staging_dir/toolchain-mips_24kc_gcc-12.2.0_musl/include -c -o crypto/aes/libcrypto-shlib-aes-mips.o crypto/aes/aes-mips.S
 crypto/aes/aes-mips.S: Assembler messages:
 crypto/aes/aes-mips.S:13: Error: invalid operands `lw $12,0($6)'
 crypto/aes/aes-mips.S:14: Error: invalid operands `lw $13,4($6)'
 crypto/aes/aes-mips.S:15: Error: invalid operands `lw $14,8($6)'
 crypto/aes/aes-mips.S:16: Error: invalid operands `lw $15,12($6)'
 crypto/aes/aes-mips.S:17: Error: invalid operands `lw $30,240($6)'

It was working fine a week ago, so likely some change commited in the past 7-10
days may have caused this regression. Currently don't have much time to
investigate it further myself, so just reporting it.


1. https://gitlab.com/openwrt/project/ustream-ssl/-/jobs/3977611619
2. https://gitlab.com/openwrt/project/ustream-ssl/-/jobs/3977611633


Cheers,

Petr



More information about the openwrt-devel mailing list