Failing to locally compile with `openssl` and `oboe` dependencies
Closed this issue · 2 comments
I used to be able to compile on my computer a few months ago. At some point it stopped working. I am to build with cross. Using cargo-ndk
on a GitHub Actions machine also works. I see that there is a related issue (#90). However, the error in that log is different.
Log:
error: failed to run custom build command for `openssl-sys v0.9.81`
Caused by:
process didn't exit successfully: `/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/release/build/openssl-sys-f787c9738fcac4c9/build-script-main` (exit status: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=AARCH64_LINUX_ANDROID_OPENSSL_NO_VENDOR
AARCH64_LINUX_ANDROID_OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
OPENSSL_NO_VENDOR unset
CC_aarch64-linux-android = Some("/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang")
CFLAGS_aarch64-linux-android = None
CFLAGS_aarch64_linux_android = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
running cd "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src" && CC="/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" "perl" "./Configure" "--prefix=/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-stdio" "linux-aarch64" "-O2" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC"
Configuring OpenSSL version 1.1.1t (0x1010114fL) for linux-aarch64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile
**********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** and include the output from the following command: ***
*** ***
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL file first) ***
*** ***
**********************************************************************
running cd "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src" && "make" "depend"
running cd "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=18,19 --jobserver-auth=18,19" "make" "build_libs"
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _build_libs
make[1]: Entering directory '/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src'
make[1]: Leaving directory '/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src'
make[1]: Entering directory '/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src'
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_cbc.d.tmp -MT crypto/aes/aes_cbc.o -c -o crypto/aes/aes_cbc.o crypto/aes/aes_cbc.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_cfb.d.tmp -MT crypto/aes/aes_cfb.o -c -o crypto/aes/aes_cfb.o crypto/aes/aes_cfb.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_core.d.tmp -MT crypto/aes/aes_core.o -c -o crypto/aes/aes_core.o crypto/aes/aes_core.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_ecb.d.tmp -MT crypto/aes/aes_ecb.o -c -o crypto/aes/aes_ecb.o crypto/aes/aes_ecb.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_ige.d.tmp -MT crypto/aes/aes_ige.o -c -o crypto/aes/aes_ige.o crypto/aes/aes_ige.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_misc.d.tmp -MT crypto/aes/aes_misc.o -c -o crypto/aes/aes_misc.o crypto/aes/aes_misc.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_ofb.d.tmp -MT crypto/aes/aes_ofb.o -c -o crypto/aes/aes_ofb.o crypto/aes/aes_ofb.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aes/aes_wrap.d.tmp -MT crypto/aes/aes_wrap.o -c -o crypto/aes/aes_wrap.o crypto/aes/aes_wrap.c
CC="/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" /usr/bin/perl crypto/aes/asm/aesv8-armx.pl linux64 crypto/aes/aesv8-armx.S
CC="/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" /usr/bin/perl crypto/aes/asm/vpaes-armv8.pl linux64 crypto/aes/vpaes-armv8.S
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/aria/aria.d.tmp -MT crypto/aria/aria.o -c -o crypto/aria/aria.o crypto/aria/aria.c
CC="/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" /usr/bin/perl crypto/arm64cpuid.pl linux64 crypto/arm64cpuid.S
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/armcap.d.tmp -MT crypto/armcap.o -c -o crypto/armcap.o crypto/armcap.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_bitstr.d.tmp -MT crypto/asn1/a_bitstr.o -c -o crypto/asn1/a_bitstr.o crypto/asn1/a_bitstr.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_d2i_fp.d.tmp -MT crypto/asn1/a_d2i_fp.o -c -o crypto/asn1/a_d2i_fp.o crypto/asn1/a_d2i_fp.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_digest.d.tmp -MT crypto/asn1/a_digest.o -c -o crypto/asn1/a_digest.o crypto/asn1/a_digest.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_dup.d.tmp -MT crypto/asn1/a_dup.o -c -o crypto/asn1/a_dup.o crypto/asn1/a_dup.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_gentm.d.tmp -MT crypto/asn1/a_gentm.o -c -o crypto/asn1/a_gentm.o crypto/asn1/a_gentm.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_i2d_fp.d.tmp -MT crypto/asn1/a_i2d_fp.o -c -o crypto/asn1/a_i2d_fp.o crypto/asn1/a_i2d_fp.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_int.d.tmp -MT crypto/asn1/a_int.o -c -o crypto/asn1/a_int.o crypto/asn1/a_int.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_mbstr.d.tmp -MT crypto/asn1/a_mbstr.o -c -o crypto/asn1/a_mbstr.o crypto/asn1/a_mbstr.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_object.d.tmp -MT crypto/asn1/a_object.o -c -o crypto/asn1/a_object.o crypto/asn1/a_object.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_octet.d.tmp -MT crypto/asn1/a_octet.o -c -o crypto/asn1/a_octet.o crypto/asn1/a_octet.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_print.d.tmp -MT crypto/asn1/a_print.o -c -o crypto/asn1/a_print.o crypto/asn1/a_print.c
/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Qunused-arguments -Wall -O3 -O2 -ffunction-sections -fdata-sections -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/install/lib/engines-1.1\"" -DNDEBUG -DANDROID -MMD -MF crypto/asn1/a_sign.d.tmp -MT crypto/asn1/a_sign.o -c -o crypto/asn1/a_sign.o crypto/asn1/a_sign.c
make[1]: Leaving directory '/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src'
--- stderr
In file included from crypto/asn1/a_sign.c:22:
In file included from include/crypto/evp.h:11:
include/internal/refcount.h:34:12: error: address argument to atomic operation must be a pointer to integer, pointer or supported floating point type ('_Atomic(int) *' invalid)
*ret = atomic_fetch_add_explicit(val, 1, memory_order_relaxed) + 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stdatomic.h:203:6: note: expanded from macro 'atomic_fetch_add_explicit'
__atomic_fetch_add ((PTR), (VAL), (MO))
^ ~~~~~
In file included from crypto/asn1/a_sign.c:22:
In file included from include/crypto/evp.h:11:
include/internal/refcount.h:50:12: error: address argument to atomic operation must be a pointer to integer, pointer or supported floating point type ('_Atomic(int) *' invalid)
*ret = atomic_fetch_sub_explicit(val, 1, memory_order_relaxed) - 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stdatomic.h:208:6: note: expanded from macro 'atomic_fetch_sub_explicit'
__atomic_fetch_sub ((PTR), (VAL), (MO))
^ ~~~~~
2 errors generated.
make[1]: *** [Makefile:846: crypto/asn1/a_sign.o] Error 1
make: *** [Makefile:174: build_libs] Error 2
thread 'main' panicked at '
Error building OpenSSL:
Command: cd "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/openssl-sys-9dda56ef3b55bbc0/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=18,19 --jobserver-auth=18,19" "make" "build_libs"
Exit status: exit status: 2
', /home/erikas/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-src-111.25.0+1.1.1t/src/lib.rs:499:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:
warning: In file included from oboe/src/aaudio/AudioStreamAAudio.cpp:19:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/stdlib.h:100:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/math.h:311:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
warning: /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
warning: } max_align_t;
warning: ^
warning: /usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
warning: } max_align_t;
warning: ^
warning: In file included from oboe/src/common/AudioSourceCaller.cpp:17:
warning: In file included from oboe/src/common/AudioSourceCaller.h:21:
warning: In file included from oboe/include/oboe/Oboe.h:27:
warning: In file included from oboe/include/oboe/Definitions.h:21:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
warning: /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
warning: } max_align_t;
warning: ^
warning: /usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
warning: } max_align_t;
warning: ^
warning: In file included from oboe/src/aaudio/AAudioLoader.cpp:18:
warning: In file included from oboe/include/oboe/Utilities.h:22:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/string:504:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/string_view:175:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/__string:57:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/algorithm:639:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/initializer_list:46:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
warning: /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
warning: } max_align_t;
warning: ^
warning: /usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
warning: } max_align_t;
warning: ^
warning: In file included from oboe/src/common/AudioStream.cpp:19:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/thread:87:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/__functional_base:14:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
warning: /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
warning: } max_align_t;
warning: ^
warning: /usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
warning: } max_align_t;
warning: ^
warning: 1 error generated.
warning: 1 error generated.
warning: 1 error generated.
warning: 1 error generated.
warning: In file included from oboe/src/common/AudioStreamBuilder.cpp:20:
warning: In file included from oboe/src/aaudio/AAudioExtensions.h:26:
warning: In file included from oboe/include/oboe/Oboe.h:27:
warning: In file included from oboe/include/oboe/Definitions.h:21:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
warning: In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
warning: /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
warning: } max_align_t;
warning: ^
warning: /usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
warning: } max_align_t;
warning: ^
warning: 1 error generated.
error: failed to run custom build command for `oboe-sys v0.5.0`
Caused by:
process didn't exit successfully: `/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/release/build/oboe-sys-45cde3cf5e83e94d/build-script-build` (exit status: 1)
--- stdout
TARGET = Some("aarch64-linux-android")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-unknown-linux-gnu")
CXX_aarch64-linux-android = Some("/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++")
CXXFLAGS_aarch64-linux-android = None
CXXFLAGS_aarch64_linux_android = None
TARGET_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
running: "/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-static" "-I" "oboe/include" "-I" "oboe/src" "-I" "oboe-ext/include" "-I" "oboe-ext/src" "-Wall" "-Wextra" "-std=c++17" "-Wall" "-Wextra-semi" "-Wshadow" "-Wshadow-field" "-fno-rtti" "-fno-exceptions" "-o" "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/oboe-sys-f76e9964e61c47df/out/library/oboe/src/aaudio/AudioStreamAAudio.o" "-c" "oboe/src/aaudio/AudioStreamAAudio.cpp"
running: "/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-static" "-I" "oboe/include" "-I" "oboe/src" "-I" "oboe-ext/include" "-I" "oboe-ext/src" "-Wall" "-Wextra" "-std=c++17" "-Wall" "-Wextra-semi" "-Wshadow" "-Wshadow-field" "-fno-rtti" "-fno-exceptions" "-o" "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/oboe-sys-f76e9964e61c47df/out/library/oboe/src/aaudio/AAudioLoader.o" "-c" "oboe/src/aaudio/AAudioLoader.cpp"
running: "/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-static" "-I" "oboe/include" "-I" "oboe/src" "-I" "oboe-ext/include" "-I" "oboe-ext/src" "-Wall" "-Wextra" "-std=c++17" "-Wall" "-Wextra-semi" "-Wshadow" "-Wshadow-field" "-fno-rtti" "-fno-exceptions" "-o" "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/oboe-sys-f76e9964e61c47df/out/library/oboe/src/common/AudioSourceCaller.o" "-c" "oboe/src/common/AudioSourceCaller.cpp"
cargo:warning=In file included from oboe/src/aaudio/AudioStreamAAudio.cpp:19:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/stdlib.h:100:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/math.h:311:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
cargo:warning=/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=/usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=In file included from oboe/src/common/AudioSourceCaller.cpp:17:
cargo:warning=In file included from oboe/src/common/AudioSourceCaller.h:21:
cargo:warning=In file included from oboe/include/oboe/Oboe.h:27:
cargo:warning=In file included from oboe/include/oboe/Definitions.h:21:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
cargo:warning=/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=/usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=In file included from oboe/src/aaudio/AAudioLoader.cpp:18:
cargo:warning=In file included from oboe/include/oboe/Utilities.h:22:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/string:504:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/string_view:175:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/__string:57:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/algorithm:639:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/initializer_list:46:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
cargo:warning=/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=/usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
cargo:warning=} max_align_t;
cargo:warning= ^
running: "/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-static" "-I" "oboe/include" "-I" "oboe/src" "-I" "oboe-ext/include" "-I" "oboe-ext/src" "-Wall" "-Wextra" "-std=c++17" "-Wall" "-Wextra-semi" "-Wshadow" "-Wshadow-field" "-fno-rtti" "-fno-exceptions" "-o" "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/oboe-sys-f76e9964e61c47df/out/library/oboe/src/common/AudioStream.o" "-c" "oboe/src/common/AudioStream.cpp"
cargo:warning=In file included from oboe/src/common/AudioStream.cpp:19:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/thread:87:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/__functional_base:14:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
cargo:warning=/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=/usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=1 error generated.
exit status: 1
cargo:warning=1 error generated.
exit status: 1
cargo:warning=1 error generated.
exit status: 1
cargo:warning=1 error generated.
exit status: 1
running: "/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-static" "-I" "oboe/include" "-I" "oboe/src" "-I" "oboe-ext/include" "-I" "oboe-ext/src" "-Wall" "-Wextra" "-std=c++17" "-Wall" "-Wextra-semi" "-Wshadow" "-Wshadow-field" "-fno-rtti" "-fno-exceptions" "-o" "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/oboe-sys-f76e9964e61c47df/out/library/oboe/src/common/AudioStreamBuilder.o" "-c" "oboe/src/common/AudioStreamBuilder.cpp"
cargo:warning=In file included from oboe/src/common/AudioStreamBuilder.cpp:20:
cargo:warning=In file included from oboe/src/aaudio/AAudioExtensions.h:26:
cargo:warning=In file included from oboe/include/oboe/Oboe.h:27:
cargo:warning=In file included from oboe/include/oboe/Definitions.h:21:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits:417:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef:44:
cargo:warning=In file included from /home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h:102:
cargo:warning=/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=/usr/bin/../lib/gcc/x86_64-redhat-linux/13/include/stddef.h:436:3: note: previous definition is here
cargo:warning=} max_align_t;
cargo:warning= ^
cargo:warning=1 error generated.
exit status: 1
--- stderr
error occurred: Command "/home/erikas/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-static" "-I" "oboe/include" "-I" "oboe/src" "-I" "oboe-ext/include" "-I" "oboe-ext/src" "-Wall" "-Wextra" "-std=c++17" "-Wall" "-Wextra-semi" "-Wshadow" "-Wshadow-field" "-fno-rtti" "-fno-exceptions" "-o" "/home/erikas/ROOT/code/flutter-plugins/simple_audio/rust/target/aarch64-linux-android/release/build/oboe-sys-f76e9964e61c47df/out/library/oboe/src/aaudio/AAudioLoader.o" "-c" "oboe/src/aaudio/AAudioLoader.cpp" with args "aarch64-linux-android21-clang++" did not execute successfully (status code exit status: 1).
[2023-05-04T07:20:35Z INFO cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2023-05-04T07:20:35Z INFO cargo_ndk::cli]
[2023-05-04T07:20:35Z INFO cargo_ndk::cli] rustup target install aarch64-linux-android
The fact the OpenSSL build scripts are even visible in stdout is a bit worrying, and seems to be using your local sysroot instead of the cross-compilation sysroot.
On the face of it this doesn't seem to be an issue with cargo-ndk; one thing to check is whether the openssl crate has the vendored feature enabled, and if not, try enabling it.
The fact the OpenSSL build scripts are even visible in stdout is a bit worrying, and seems to be using your local sysroot instead of the cross-compilation sysroot.
On the face of it this doesn't seem to be an issue with cargo-ndk; one thing to check is whether the openssl crate has the vendored feature enabled, and if not, try enabling it.
I am using the reqwest
crate with the native-tls-vendored
feature. I tried using oboe
's vendored feature and it seems that error disappeared. The build didn't fully complete because of openssl
so I am not really sure.
I did some research and people are recommending to use the rustls-tls
feature on reqwest
but that still doesn't compile for me.
I am going to close the issue since you stated it is not a cargo-ndk
issue.