failed to run custom build command for ring v0.16.20
#2819
Replies: 8 comments 5 replies
-
+1 I am facing the same issue. |
Beta Was this translation helpful? Give feedback.
-
This solved the problem for me |
Beta Was this translation helpful? Give feedback.
-
@tyler-harpool The working solution for windows
|
Beta Was this translation helpful? Give feedback.
-
Had this issue when using chocolatey to install rust, issue resolved by reinstalling using rustup. |
Beta Was this translation helpful? Give feedback.
-
I ran into a similar problem when compiling rust programs in ubuntu 18.04 (same results with gcc 7.5 and 9.4) and found that these packages were causing the problems: rbatis, mqtt, MongoDB; When I do not introduce them, there will be no error. I can not change the introduction of the lower version, but my program needs to use them. How can I deal with it |
Beta Was this translation helpful? Give feedback.
-
***@***.***邮编:710069地址:陕西省西安市太白北路229号西北大学
|
Beta Was this translation helpful? Give feedback.
-
In project directory: rustup override set stable-msvc |
Beta Was this translation helpful? Give feedback.
-
Executing tasks: [:mobile:assembleDebug] in project /home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android
Caused by:
process didn't exit successfully:
/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/debug/build/ring-120afe4acc70546b/build-script-build
(exit status: 101)--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("armv7-linux-androideabi")
HOST = Some("x86_64-unknown-linux-gnu")
CC_armv7-linux-androideabi = None
CC_armv7_linux_androideabi = None
TARGET_CC = None
CC = None
CFLAGS_armv7-linux-androideabi = None
CFLAGS_armv7_linux_androideabi = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
--- stderr
running "arm-linux-androideabi-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/armv7-linux-androideabi/debug/build/ring-52c596bac6120bfc/out/aesv8-armx-linux32.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesv8-armx-linux32.S"
thread 'main' panicked at 'failed to execute ["arm-linux-androideabi-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/armv7-linux-androideabi/debug/build/ring-52c596bac6120bfc/out/aesv8-armx-linux32.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesv8-armx-linux32.S"]: No such file or directory (os error 2)', /home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/build.rs:653:9
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
error: build failed
Caused by:
process didn't exit successfully:
/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/debug/build/ring-120afe4acc70546b/build-script-build
(exit status: 101)--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("aarch64-linux-android")
HOST = Some("x86_64-unknown-linux-gnu")
CC_aarch64-linux-android = None
CC_aarch64_linux_android = None
TARGET_CC = None
CC = None
CFLAGS_aarch64-linux-android = None
CFLAGS_aarch64_linux_android = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
--- stderr
running "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/aarch64-linux-android/debug/build/ring-59f9fda9bc586338/out/aesv8-armx-linux64.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesv8-armx-linux64.S"
thread 'main' panicked at 'failed to execute ["aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/aarch64-linux-android/debug/build/ring-59f9fda9bc586338/out/aesv8-armx-linux64.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesv8-armx-linux64.S"]: No such file or directory (os error 2)', /home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/build.rs:653:9
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
error: build failed
Caused by:
process didn't exit successfully:
/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/debug/build/ring-120afe4acc70546b/build-script-build
(exit status: 101)--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("i686-linux-android")
HOST = Some("x86_64-unknown-linux-gnu")
CC_i686-linux-android = None
CC_i686_linux_android = None
TARGET_CC = None
CC = None
CFLAGS_i686-linux-android = None
CFLAGS_i686_linux_android = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
--- stderr
running "i686-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/i686-linux-android/debug/build/ring-316b98c54b0314a7/out/aesni-x86-elf.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86-elf.S"
thread 'main' panicked at 'failed to execute ["i686-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/i686-linux-android/debug/build/ring-316b98c54b0314a7/out/aesni-x86-elf.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86-elf.S"]: No such file or directory (os error 2)', /home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/build.rs:653:9
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
error: build failed
Caused by:
process didn't exit successfully:
/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/debug/build/ring-120afe4acc70546b/build-script-build
(exit status: 101)--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-linux-android")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-linux-android = None
CC_x86_64_linux_android = None
TARGET_CC = None
CC = None
CFLAGS_x86_64-linux-android = None
CFLAGS_x86_64_linux_android = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
--- stderr
running "x86_64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/x86_64-linux-android/debug/build/ring-e0aa657d0b124c13/out/aesni-x86_64-elf.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86_64-elf.S"
thread 'main' panicked at 'failed to execute ["x86_64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/home/ikramulmurad/Desktop/Workspace/_Projects/Android-Projects/shadowsocks-android/core/src/main/rust/shadowsocks-rust/target/x86_64-linux-android/debug/build/ring-e0aa657d0b124c13/out/aesni-x86_64-elf.o" "/home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86_64-elf.S"]: No such file or directory (os error 2)', /home/ikramulmurad/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/build.rs:653:9
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
error: build failed
FAILURE: Build completed with 4 failures.
1: Task failed with an exception.
Execution failed for task ':core:cargoBuildArm'.
2: Task failed with an exception.
Execution failed for task ':core:cargoBuildArm64'.
3: Task failed with an exception.
Execution failed for task ':core:cargoBuildX86'.
4: Task failed with an exception.
Execution failed for task ':core:cargoBuildX86_64'.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3-rc-1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 17s
85 actionable tasks: 7 executed, 78 up-to-date
Beta Was this translation helpful? Give feedback.
All reactions