gifski icon indicating copy to clipboard operation
gifski copied to clipboard

gifski-1.11.0 error: linker `/usr/bin/x86_64-linux-gnu-gcc` not found

Open benalb opened this issue 1 year ago • 5 comments

Building in void linux, previous releases build without errors, but with 1.11.0 yields this error:

error: linker /usr/bin/x86_64-linux-gnu-gcc` not found | = note: No such file or directory (os error 2)

error: could not compile crossbeam-utils due to previous error warning: build failed, waiting for other jobs to finish... error: could not compile libc due to previous error `

benalb avatar May 16 '23 08:05 benalb

yeah I'm getting the same error here on fedora

THEGOLDENPRO avatar May 17 '23 18:05 THEGOLDENPRO

Delete .cargo dir. It has my config for cross-compilation.

kornelski avatar May 18 '23 12:05 kornelski

I just ended up installing an older version but let me try this later today and I'll get back to you.

THEGOLDENPRO avatar May 18 '23 13:05 THEGOLDENPRO

Thanky you very much, removing the .cargo dir fix the issue. Will you update the .tar.gz and .zip sources files?

benalb avatar May 18 '23 14:05 benalb

Delete .cargo dir. It has my config for cross-compilation.

okay the removal of that fixed this error but now when I try to build with video support so I can use gifski --fps 10 --width 320 -o anim.gif video.mp4 like so:

cargo build --release --features=video

It fails with this:

[goldy@fedora gifski]$ cargo build --release --features=video
   Compiling ffmpeg-sys-next v6.0.1 (https://github.com/kornelski/rust-ffmpeg-sys-1?rev=94d5496d88900bdc0cad66733138134d0ea3cf31#94d5496d)
error: failed to run custom build command for `ffmpeg-sys-next v6.0.1 (https://github.com/kornelski/rust-ffmpeg-sys-1?rev=94d5496d88900bdc0cad66733138134d0ea3cf31#94d5496d)`

Caused by:
  process didn't exit successfully: `/home/goldy/gifski/target/release/build/ffmpeg-sys-next-f285c930cfe19f04/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBAVUTIL_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "libavutil"` did not exit successfully: exit status: 1
  error: could not find system library 'libavutil' required by the 'ffmpeg-sys-next' crate

  --- stderr
  Package libavutil was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libavutil.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'libavutil', required by 'virtual:world', not found
  ', /home/goldy/.cargo/git/checkouts/rust-ffmpeg-sys-1-ff5f7ad144b45bd4/94d5496/build.rs:734:14
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

THEGOLDENPRO avatar May 18 '23 15:05 THEGOLDENPRO