We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安装完flutter、rust后,直接运行 ./script/build-web.sh,提示:
error: native is not a crate directory. Please specify the crate directory using "--crate <CRATE>".
其错误是最后运行 flutter_rust_bridge_serve 时报的, 当你尝试指定crate运行后,提示:
flutter_rust_bridge_serve --crate ./packages/xxim_sdk/native &> build-web.error.log
错误如下:
Woah! You appear to be trying to run flutter as root. We strongly recommend running the flutter tool without superuser privileges. / 📎 > which wasm-pack /root/.cargo/bin/wasm-pack > cargo read-manifest > wasm-pack build -t no-modules -d /root/flutter/xxim_sdk_universal/web/pkg --no-typescript --out-name xxim_sdk --dev ./packages/xxim_sdk/native -- -Z build-std=std,panic_abort [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Compiling openssl-sys v0.9.95 Compiling std v0.0.0 (/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std) Compiling prost-build v0.11.9 Compiling cargo_metadata v0.14.2 Compiling cbindgen v0.24.5 Compiling libsqlite3-sys v0.26.0 Compiling datachannel-sys v0.18.5 Compiling flutter_rust_bridge_macros v1.82.4 error: failed to run custom build command for `libsqlite3-sys v0.26.0` Caused by: process didn't exit successfully: `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/debug/build/libsqlite3-sys-3db4aff39b2941fe/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-changed=sqlite3/sqlite3.c cargo:rerun-if-changed=sqlite3/wasm32-wasi-vfs.c cargo:rerun-if-env-changed=SQLITE_MAX_VARIABLE_NUMBER cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH cargo:rerun-if-env-changed=LIBSQLITE3_FLAGS TARGET = Some("wasm32-unknown-unknown") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown CC_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown CC_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CC TARGET_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown CFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown CFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CFLAGS TARGET_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None running: "clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-D_POSIX_THREAD_SAFE_FUNCTIONS" "-DHAVE_ISNAN" "-DHAVE_LOCALTIME_R" "-o" "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/libsqlite3-sys-43c71144cb0d5772/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c" --- stderr error occurred: Failed to find tool. Is `clang` installed? warning: build failed, waiting for other jobs to finish... error: failed to run custom build command for `openssl-sys v0.9.95` Caused by: process didn't exit successfully: `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/debug/build/openssl-sys-ad76d92375b15262/build-script-main` (exit status: 101) --- stdout cargo:rerun-if-env-changed=WASM32_UNKNOWN_UNKNOWN_OPENSSL_NO_VENDOR WASM32_UNKNOWN_UNKNOWN_OPENSSL_NO_VENDOR unset cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR OPENSSL_NO_VENDOR unset cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown CC_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown CC_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CC TARGET_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown CFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown CFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CFLAGS TARGET_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=AR_wasm32-unknown-unknown AR_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=AR_wasm32_unknown_unknown AR_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_AR TARGET_AR = None cargo:rerun-if-env-changed=AR AR = None running: "clang" "-print-search-dirs" RUSTC_LINKER = None cargo:rerun-if-env-changed=CROSS_COMPILE CROSS_COMPILE = None cargo:rerun-if-env-changed=ARFLAGS_wasm32-unknown-unknown ARFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=ARFLAGS_wasm32_unknown_unknown ARFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_ARFLAGS TARGET_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None cargo:rerun-if-env-changed=RANLIB_wasm32-unknown-unknown RANLIB_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIB_wasm32_unknown_unknown RANLIB_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIB TARGET_RANLIB = None cargo:rerun-if-env-changed=RANLIB RANLIB = None running: "clang" "-print-search-dirs" cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32-unknown-unknown RANLIBFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32_unknown_unknown RANLIBFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIBFLAGS TARGET_RANLIBFLAGS = None cargo:rerun-if-env-changed=RANLIBFLAGS RANLIBFLAGS = None running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="clang" RANLIB="ranlib" "perl" "./Configure" "--prefix=/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" Configuring OpenSSL version 3.1.4 for target gcc Using os-specific seed configuration Created configdata.pm Running configdata.pm Created Makefile.in Created Makefile Created include/openssl/configuration.h The library could not be configured for supporting multi-threaded applications as the compiler options required on this system are not known. See file INSTALL.md for details if you need multi-threading. ********************************************************************** *** *** *** 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.md file first) *** *** *** ********************************************************************** running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && "make" "depend" running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "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/asn1.h.in > include/openssl/asn1.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1t.h.in > include/openssl/asn1t.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/bio.h.in > include/openssl/bio.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cmp.h.in > include/openssl/cmp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cms.h.in > include/openssl/cms.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/conf.h.in > include/openssl/conf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crmf.h.in > include/openssl/crmf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crypto.h.in > include/openssl/crypto.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ct.h.in > include/openssl/ct.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/err.h.in > include/openssl/err.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ess.h.in > include/openssl/ess.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/fipskey.h.in > include/openssl/fipskey.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/lhash.h.in > include/openssl/lhash.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ocsp.h.in > include/openssl/ocsp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/opensslv.h.in > include/openssl/opensslv.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs12.h.in > include/openssl/pkcs12.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs7.h.in > include/openssl/pkcs7.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/safestack.h.in > include/openssl/safestack.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/srp.h.in > include/openssl/srp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ssl.h.in > include/openssl/ssl.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ui.h.in > include/openssl/ui.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509.h.in > include/openssl/x509.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509_vfy.h.in > include/openssl/x509_vfy.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509v3.h.in > include/openssl/x509v3.h make depend && make _build_libs make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_params.o apps/lib/app_params.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_provider.o apps/lib/app_provider.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_rand.o apps/lib/app_rand.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_x509.o apps/lib/app_x509.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-apps.o apps/lib/apps.c make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' --- stderr /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_libctx.o] Error 127 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [apps/lib/libapps-lib-app_params.o] Error 127 /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_rand.o] Error 127 make[1]: *** [apps/lib/libapps-lib-app_provider.o] Error 127 /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_x509.o] Error 127 /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-apps.o] Error 127 make: *** [build_libs] Error 2 thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.1.6+3.1.4/src/lib.rs:585:9: Error building OpenSSL: Command: cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "make" "build_libs" Exit status: exit status: 2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace error: failed to run custom build command for `datachannel-sys v0.18.5` Caused by: process didn't exit successfully: `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/debug/build/datachannel-sys-9761d4b16101946d/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown CC_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown CC_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CC TARGET_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown CFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown CFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CFLAGS TARGET_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=AR_wasm32-unknown-unknown AR_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=AR_wasm32_unknown_unknown AR_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_AR TARGET_AR = None cargo:rerun-if-env-changed=AR AR = None running: "clang" "-print-search-dirs" RUSTC_LINKER = None cargo:rerun-if-env-changed=CROSS_COMPILE CROSS_COMPILE = None cargo:rerun-if-env-changed=ARFLAGS_wasm32-unknown-unknown ARFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=ARFLAGS_wasm32_unknown_unknown ARFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_ARFLAGS TARGET_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None cargo:rerun-if-env-changed=RANLIB_wasm32-unknown-unknown RANLIB_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIB_wasm32_unknown_unknown RANLIB_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIB TARGET_RANLIB = None cargo:rerun-if-env-changed=RANLIB RANLIB = None running: "clang" "-print-search-dirs" cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32-unknown-unknown RANLIBFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32_unknown_unknown RANLIBFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIBFLAGS TARGET_RANLIBFLAGS = None cargo:rerun-if-env-changed=RANLIBFLAGS RANLIBFLAGS = None running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="clang" RANLIB="ranlib" "perl" "./Configure" "--prefix=/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" Configuring OpenSSL version 3.1.4 for target gcc Using os-specific seed configuration Created configdata.pm Running configdata.pm Created Makefile.in Created Makefile Created include/openssl/configuration.h The library could not be configured for supporting multi-threaded applications as the compiler options required on this system are not known. See file INSTALL.md for details if you need multi-threading. ********************************************************************** *** *** *** 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.md file first) *** *** *** ********************************************************************** running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && "make" "depend" running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "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/asn1.h.in > include/openssl/asn1.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1t.h.in > include/openssl/asn1t.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/bio.h.in > include/openssl/bio.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cmp.h.in > include/openssl/cmp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cms.h.in > include/openssl/cms.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/conf.h.in > include/openssl/conf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crmf.h.in > include/openssl/crmf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crypto.h.in > include/openssl/crypto.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ct.h.in > include/openssl/ct.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/err.h.in > include/openssl/err.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ess.h.in > include/openssl/ess.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/fipskey.h.in > include/openssl/fipskey.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/lhash.h.in > include/openssl/lhash.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ocsp.h.in > include/openssl/ocsp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/opensslv.h.in > include/openssl/opensslv.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs12.h.in > include/openssl/pkcs12.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs7.h.in > include/openssl/pkcs7.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/safestack.h.in > include/openssl/safestack.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/srp.h.in > include/openssl/srp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ssl.h.in > include/openssl/ssl.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ui.h.in > include/openssl/ui.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509.h.in > include/openssl/x509.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509_vfy.h.in > include/openssl/x509_vfy.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509v3.h.in > include/openssl/x509v3.h make depend && make _build_libs make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_params.o apps/lib/app_params.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_provider.o apps/lib/app_provider.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_rand.o apps/lib/app_rand.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_x509.o apps/lib/app_x509.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-apps.o apps/lib/apps.c make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' --- stderr /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_libctx.o] Error 127 make[1]: *** Waiting for unfinished jobs.... /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_params.o] Error 127 make[1]: *** [apps/lib/libapps-lib-app_provider.o] Error 127 /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_rand.o] Error 127 make[1]: *** [apps/lib/libapps-lib-app_x509.o] Error 127 /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-apps.o] Error 127 make: *** [build_libs] Error 2 thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.1.6+3.1.4/src/lib.rs:585:9: Error building OpenSSL: Command: cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "make" "build_libs" Exit status: exit status: 2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Error: Compiling your crate to WebAssembly failed Caused by: Compiling your crate to WebAssembly failed Caused by: failed to execute `cargo build`: exited with exit status: 101 full command: cd "./packages/xxim_sdk/native" && "cargo" "build" "--lib" "--target" "wasm32-unknown-unknown" "-Z" "build-std=std,panic_abort" Unhandled exception: ProcessException: [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Compiling openssl-sys v0.9.95 Compiling std v0.0.0 (/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std) Compiling prost-build v0.11.9 Compiling cargo_metadata v0.14.2 Compiling cbindgen v0.24.5 Compiling libsqlite3-sys v0.26.0 Compiling datachannel-sys v0.18.5 Compiling flutter_rust_bridge_macros v1.82.4 error: failed to run custom build command for `libsqlite3-sys v0.26.0` Caused by: process didn't exit successfully: `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/debug/build/libsqlite3-sys-3db4aff39b2941fe/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-changed=sqlite3/sqlite3.c cargo:rerun-if-changed=sqlite3/wasm32-wasi-vfs.c cargo:rerun-if-env-changed=SQLITE_MAX_VARIABLE_NUMBER cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH cargo:rerun-if-env-changed=LIBSQLITE3_FLAGS TARGET = Some("wasm32-unknown-unknown") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown CC_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown CC_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CC TARGET_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown CFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown CFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CFLAGS TARGET_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None running: "clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-D_POSIX_THREAD_SAFE_FUNCTIONS" "-DHAVE_ISNAN" "-DHAVE_LOCALTIME_R" "-o" "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/libsqlite3-sys-43c71144cb0d5772/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c" --- stderr error occurred: Failed to find tool. Is `clang` installed? warning: build failed, waiting for other jobs to finish... error: failed to run custom build command for `openssl-sys v0.9.95` Caused by: process didn't exit successfully: `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/debug/build/openssl-sys-ad76d92375b15262/build-script-main` (exit status: 101) --- stdout cargo:rerun-if-env-changed=WASM32_UNKNOWN_UNKNOWN_OPENSSL_NO_VENDOR WASM32_UNKNOWN_UNKNOWN_OPENSSL_NO_VENDOR unset cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR OPENSSL_NO_VENDOR unset cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown CC_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown CC_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CC TARGET_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown CFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown CFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CFLAGS TARGET_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=AR_wasm32-unknown-unknown AR_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=AR_wasm32_unknown_unknown AR_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_AR TARGET_AR = None cargo:rerun-if-env-changed=AR AR = None running: "clang" "-print-search-dirs" RUSTC_LINKER = None cargo:rerun-if-env-changed=CROSS_COMPILE CROSS_COMPILE = None cargo:rerun-if-env-changed=ARFLAGS_wasm32-unknown-unknown ARFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=ARFLAGS_wasm32_unknown_unknown ARFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_ARFLAGS TARGET_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None cargo:rerun-if-env-changed=RANLIB_wasm32-unknown-unknown RANLIB_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIB_wasm32_unknown_unknown RANLIB_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIB TARGET_RANLIB = None cargo:rerun-if-env-changed=RANLIB RANLIB = None running: "clang" "-print-search-dirs" cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32-unknown-unknown RANLIBFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32_unknown_unknown RANLIBFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIBFLAGS TARGET_RANLIBFLAGS = None cargo:rerun-if-env-changed=RANLIBFLAGS RANLIBFLAGS = None running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="clang" RANLIB="ranlib" "perl" "./Configure" "--prefix=/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" Configuring OpenSSL version 3.1.4 for target gcc Using os-specific seed configuration Created configdata.pm Running configdata.pm Created Makefile.in Created Makefile Created include/openssl/configuration.h The library could not be configured for supporting multi-threaded applications as the compiler options required on this system are not known. See file INSTALL.md for details if you need multi-threading. ********************************************************************** *** *** *** 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.md file first) *** *** *** ********************************************************************** running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && "make" "depend" running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "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/asn1.h.in > include/openssl/asn1.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1t.h.in > include/openssl/asn1t.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/bio.h.in > include/openssl/bio.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cmp.h.in > include/openssl/cmp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cms.h.in > include/openssl/cms.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/conf.h.in > include/openssl/conf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crmf.h.in > include/openssl/crmf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crypto.h.in > include/openssl/crypto.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ct.h.in > include/openssl/ct.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/err.h.in > include/openssl/err.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ess.h.in > include/openssl/ess.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/fipskey.h.in > include/openssl/fipskey.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/lhash.h.in > include/openssl/lhash.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ocsp.h.in > include/openssl/ocsp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/opensslv.h.in > include/openssl/opensslv.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs12.h.in > include/openssl/pkcs12.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs7.h.in > include/openssl/pkcs7.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/safestack.h.in > include/openssl/safestack.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/srp.h.in > include/openssl/srp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ssl.h.in > include/openssl/ssl.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ui.h.in > include/openssl/ui.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509.h.in > include/openssl/x509.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509_vfy.h.in > include/openssl/x509_vfy.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509v3.h.in > include/openssl/x509v3.h make depend && make _build_libs make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_params.o apps/lib/app_params.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_provider.o apps/lib/app_provider.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_rand.o apps/lib/app_rand.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_x509.o apps/lib/app_x509.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-apps.o apps/lib/apps.c make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src' --- stderr /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_libctx.o] Error 127 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [apps/lib/libapps-lib-app_params.o] Error 127 /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_rand.o] Error 127 make[1]: *** [apps/lib/libapps-lib-app_provider.o] Error 127 /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_x509.o] Error 127 /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-apps.o] Error 127 make: *** [build_libs] Error 2 thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.1.6+3.1.4/src/lib.rs:585:9: Error building OpenSSL: Command: cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/openssl-sys-379ceceedf304534/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "make" "build_libs" Exit status: exit status: 2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace error: failed to run custom build command for `datachannel-sys v0.18.5` Caused by: process didn't exit successfully: `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/debug/build/datachannel-sys-9761d4b16101946d/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown CC_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown CC_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CC TARGET_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown CFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown CFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_CFLAGS TARGET_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=AR_wasm32-unknown-unknown AR_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=AR_wasm32_unknown_unknown AR_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_AR TARGET_AR = None cargo:rerun-if-env-changed=AR AR = None running: "clang" "-print-search-dirs" RUSTC_LINKER = None cargo:rerun-if-env-changed=CROSS_COMPILE CROSS_COMPILE = None cargo:rerun-if-env-changed=ARFLAGS_wasm32-unknown-unknown ARFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=ARFLAGS_wasm32_unknown_unknown ARFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_ARFLAGS TARGET_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None cargo:rerun-if-env-changed=RANLIB_wasm32-unknown-unknown RANLIB_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIB_wasm32_unknown_unknown RANLIB_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIB TARGET_RANLIB = None cargo:rerun-if-env-changed=RANLIB RANLIB = None running: "clang" "-print-search-dirs" cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32-unknown-unknown RANLIBFLAGS_wasm32-unknown-unknown = None cargo:rerun-if-env-changed=RANLIBFLAGS_wasm32_unknown_unknown RANLIBFLAGS_wasm32_unknown_unknown = None cargo:rerun-if-env-changed=TARGET_RANLIBFLAGS TARGET_RANLIBFLAGS = None cargo:rerun-if-env-changed=RANLIBFLAGS RANLIBFLAGS = None running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="clang" RANLIB="ranlib" "perl" "./Configure" "--prefix=/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" Configuring OpenSSL version 3.1.4 for target gcc Using os-specific seed configuration Created configdata.pm Running configdata.pm Created Makefile.in Created Makefile Created include/openssl/configuration.h The library could not be configured for supporting multi-threaded applications as the compiler options required on this system are not known. See file INSTALL.md for details if you need multi-threading. ********************************************************************** *** *** *** 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.md file first) *** *** *** ********************************************************************** running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && "make" "depend" running cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "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/asn1.h.in > include/openssl/asn1.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1t.h.in > include/openssl/asn1t.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/bio.h.in > include/openssl/bio.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cmp.h.in > include/openssl/cmp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cms.h.in > include/openssl/cms.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/conf.h.in > include/openssl/conf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crmf.h.in > include/openssl/crmf.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crypto.h.in > include/openssl/crypto.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ct.h.in > include/openssl/ct.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/err.h.in > include/openssl/err.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ess.h.in > include/openssl/ess.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/fipskey.h.in > include/openssl/fipskey.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/lhash.h.in > include/openssl/lhash.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ocsp.h.in > include/openssl/ocsp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/opensslv.h.in > include/openssl/opensslv.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs12.h.in > include/openssl/pkcs12.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs7.h.in > include/openssl/pkcs7.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/safestack.h.in > include/openssl/safestack.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/srp.h.in > include/openssl/srp.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ssl.h.in > include/openssl/ssl.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ui.h.in > include/openssl/ui.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509.h.in > include/openssl/x509.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509_vfy.h.in > include/openssl/x509_vfy.h /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509v3.h.in > include/openssl/x509v3.h make depend && make _build_libs make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' make[1]: Entering directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_params.o apps/lib/app_params.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_provider.o apps/lib/app_provider.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_rand.o apps/lib/app_rand.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-app_x509.o apps/lib/app_x509.c clang -I. -Iinclude -Iapps/include -O3 -O2 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer --target=wasm32-unknown-unknown -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/engines-3\"" -DMODULESDIR="\"/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/install/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o apps/lib/libapps-lib-apps.o apps/lib/apps.c make[1]: Leaving directory `/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src' --- stderr /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_libctx.o] Error 127 make[1]: *** Waiting for unfinished jobs.... /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_params.o] Error 127 make[1]: *** [apps/lib/libapps-lib-app_provider.o] Error 127 /bin/sh: clang: command not found /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-app_rand.o] Error 127 make[1]: *** [apps/lib/libapps-lib-app_x509.o] Error 127 /bin/sh: clang: command not found make[1]: *** [apps/lib/libapps-lib-apps.o] Error 127 make: *** [build_libs] Error 2 thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.1.6+3.1.4/src/lib.rs:585:9: Error building OpenSSL: Command: cd "/root/flutter/xxim_sdk_universal/packages/xxim_sdk/native/target/wasm32-unknown-unknown/debug/build/datachannel-sys-9879f69752bbb875/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "make" "build_libs" Exit status: exit status: 2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Error: Compiling your crate to WebAssembly failed Caused by: Compiling your crate to WebAssembly failed Caused by: failed to execute `cargo build`: exited with exit status: 101 full command: cd "./packages/xxim_sdk/native" && "cargo" "build" "--lib" "--target" "wasm32-unknown-unknown" "-Z" "build-std=std,panic_abort" Command: wasm-pack build -t no-modules -d /root/flutter/xxim_sdk_universal/web/pkg --no-typescript --out-name xxim_sdk --dev ./packages/xxim_sdk/native -- -Z build-std=std,panic_abort #0 system (file:///root/.pub-cache/hosted/pub.dev/flutter_rust_bridge-1.82.4/bin/serve.dart:76:5) <asynchronous suspension> #1 build (file:///root/.pub-cache/hosted/pub.dev/flutter_rust_bridge-1.82.4/bin/serve.dart:252:3) <asynchronous suspension> #2 main (file:///root/.pub-cache/hosted/pub.dev/flutter_rust_bridge-1.82.4/bin/serve.dart:225:5) <asynchronous suspension>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
安装完flutter、rust后,直接运行 ./script/build-web.sh,提示:
其错误是最后运行 flutter_rust_bridge_serve 时报的, 当你尝试指定crate运行后,提示:
错误如下:
The text was updated successfully, but these errors were encountered: