-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Note on dependency arch for Fedora #1815
Labels
C-Dependencies
A change to the crates that Bevy depends on
C-Docs
An addition or correction to our documentation
O-Linux
Specific to the Linux desktop operating system
Comments
alice-i-cecile
added
C-Docs
An addition or correction to our documentation
O-Linux
Specific to the Linux desktop operating system
C-Dependencies
A change to the crates that Bevy depends on
labels
Apr 4, 2021
jleflang
added a commit
to jleflang/bevy
that referenced
this issue
Apr 25, 2021
Some Fedora users may encounter linker errors during build time due to prior installations of packages for the wrong arch. Added a note on how to install build dependencies if errors occur. Closes bevyengine#1815.
jleflang
added a commit
to jleflang/bevy
that referenced
this issue
Apr 25, 2021
Some Fedora users may encounter linker errors during build time due to prior installations of packages for the wrong arch. Added a note on how to install build dependencies if errors occur. Closes bevyengine#1815.
jleflang
added a commit
to jleflang/bevy
that referenced
this issue
Apr 27, 2021
Some Fedora users may encounter linker errors during build time due to prior installations of packages for the wrong arch. Added a note on how to install build dependencies if errors occur. Closes bevyengine#1815.
jleflang
added a commit
to jleflang/bevy
that referenced
this issue
Apr 27, 2021
Some Fedora users may encounter linker errors during build time due to prior installations of packages for the wrong arch. Added a note on how to install build dependencies if errors occur. Closes bevyengine#1815.
ostwilkens
pushed a commit
to ostwilkens/bevy
that referenced
this issue
Jul 27, 2021
This PR adds a note to the Fedora section of Linux Dependencies on solving linker errors. Fixes bevyengine#1815. Co-authored-by: James Leflang <59455417+jleflang@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-Dependencies
A change to the crates that Bevy depends on
C-Docs
An addition or correction to our documentation
O-Linux
Specific to the Linux desktop operating system
Bevy version
0.4.0
Operating system & version
Fedora 33
What you did
cargo init --bin
What you expected to happen
The project should build successfully
What actually happened
The build failed with confusing linker errors.
the relevant part of build log
Additional information
This was caused by
alsa-lib-devel.i686
being installed on my system from the past, probably for building some other project.Unfortunately, DNF does not issue any warning if I attempt to install
alsa-lib-devel
without explicitly specifying the arch, while already having the package installed for a non-default arch and instead just exits with a message about the package already being installed.This is not directly a Bevy bug, but it was very confusing for someone not familiar with the linking process and not used to building a lot of software from source. It would be very helpful to add this somewhere in the (Fedora?) (not sure if this only affects DNF or other package managers as well) deps section, as it was very unclear why did
ld
not see theso
in/usr/lib64/alsa.so
and I have spent a lot of time tweaking the linker args instead of focusing on the real issue.Also note that the solution was as simple as doing
# dnf install alsa-lib-devel.x86_64
The text was updated successfully, but these errors were encountered: