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

Fails to build on Fedora 36 #4

Closed
absenth opened this issue May 28, 2022 · 2 comments
Closed

Fails to build on Fedora 36 #4

absenth opened this issue May 28, 2022 · 2 comments

Comments

@absenth
Copy link

absenth commented May 28, 2022

When trying to build Run or Raise with cargo, the build always fails as follows. I am running Rust version 1.61.0 on Fedora 36.

$ rustc --version rustc 1.61.0 (Fedora 1.61.0-2.fc36)
error: linking with cc` failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/cargo-installwdRHpE/release/deps/run_or_raise-3058fc70b4164559.run_or_raise.538db077-cgu.3.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/cargo-installwdRHpE/release/deps" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,--end-group" "-Wl,-Bstatic" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-77561ea614728171.rlib" "-Wl,-Bdynamic" "-lxcb" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/cargo-installwdRHpE/release/deps/run_or_raise-3058fc70b4164559" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs"
= note: /usr/bin/ld: cannot find -lxcb
collect2: error: ld returned 1 exit status

error: could not compile run-or-raise due to previous error
error: failed to compile run-or-raise v0.3.4 (https://github.com/Soft/run-or-raise.git#64b34c5e), intermediate artifacts can be found at /tmp/cargo-installwdRHpE
`

@Soft
Copy link
Owner

Soft commented May 29, 2022

I think you might be missing some of the dependencies. Installing libxcb-devel and libxcb packages might solve the problem.

@absenth
Copy link
Author

absenth commented May 29, 2022

I think you might be missing some of the dependencies. Installing libxcb-devel and libxcb packages might solve the problem.

you're totally right. I had the package, but not the -devel package installed. Sorry for the noise, and thank you for the quick reply.

@absenth absenth closed this as completed May 29, 2022
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

2 participants