FS#48606 - [cargo] Missing dependency clang
Attached to Project:
Community Packages
Opened by Tuxle (dns2utf8) - Wednesday, 16 March 2016, 11:31 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 11 December 2016, 18:13 GMT
Opened by Tuxle (dns2utf8) - Wednesday, 16 March 2016, 11:31 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 11 December 2016, 18:13 GMT
|
Details
Description:
Cargo needs clang installed to be able to compile. Additional info: * package version: 0.9.0-3 * no config Steps to reproduce: 0. Fresh Arch Installaiton with the 'cargo' Package. 1. $ cargo new --bin cargo_test 2. $ cd cargo_test 3. $ cargo run error: could not exec the linker `cc`: No such file or directory (os error 2) Could not compile `shotgun`. |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Sunday, 11 December 2016, 18:13 GMT
Reason for closing: Fixed
Sunday, 11 December 2016, 18:13 GMT
Reason for closing: Fixed
I think the clang dependency can be removed from cargo and a dependency on gcc added to the rust package instead.
rustc depends on /usr/lib/libgcc_s.so.1, owned by the gcc-libs package.
I'm building cargo without clang. If the steps to reproduce the issue are no longer a problem, I'll push a new cargo package soon.
However I should have been more clear. The rust package should depend on gcc or at least if people want to create binaries out of the box it should. rustc calls gcc in order to link binaries. The error seen here is that it can't find the cc binary, part of the gcc package. The reason installing clang worked is because clang depends on gcc so it pulled in that dependency.
gcc is part of the base group and should not have to be included, neither in the rust nor the cargo package. The above steps to reproduce the issue works here.
What is the issue you are having, is it rust or cargo you are having problems with and what are the steps to reproduce the issue?