I've encountered an error in building the ffmpeg-next crate. When running the build function, the env::var("CARGO_CFG_TARGET_ARCH").unwrap() function at line 214 in build.rs file return riscv64gc-unknown-linux-gnu which is a wrong RISC-V arch name. It should return riscv64-unknown-linux-gnu.
I try to fix this issue like below. But I found that I have to change multiple dependencies to build the final program. It will be easier to fix this bug in upstream.
I've encountered an error in building the ffmpeg-next crate. When running the build function, the
env::var("CARGO_CFG_TARGET_ARCH").unwrap()
function at line 214 inbuild.rs
file returnriscv64gc-unknown-linux-gnu
which is a wrong RISC-V arch name. It should returnriscv64-unknown-linux-gnu
.I try to fix this issue like below. But I found that I have to change multiple dependencies to build the final program. It will be easier to fix this bug in upstream.