Skip to content
New issue

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

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

Open
benalb opened this issue May 16, 2023 · 5 comments
Open

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

benalb opened this issue May 16, 2023 · 5 comments

Comments

@benalb
Copy link

benalb commented May 16, 2023

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
`

@THEGOLDENPRO
Copy link

yeah I'm getting the same error here on fedora

@kornelski
Copy link
Member

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

@THEGOLDENPRO
Copy link

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

@benalb
Copy link
Author

benalb commented May 18, 2023

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

@THEGOLDENPRO
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants