I am new to Rust and wanted to contribute to a project. When I tried building the cloned project, I received the following error which goes beyond my understanding of Rust:
error: linking with `cc` failed: exit status: 1
= note: "cc" "-arch" "x86_64" "-m64"
= note: ld: malformed universal file: slice content is not mach-o or a static library file '/usr/local/lib/libosxfuse.dylib'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The way I understand is that the project is using some resources from C/C++ and hence needs to link through the given file (please correct me if I am wrong!)
I was able to locate the file on my computer but I am not entirely sure what is supposed to be in there or exactly what I should be looking at.
Well, it is a library, then. A google search for the error message shows that it might be a problem with your C toolchain being too new. Can you try with an older version? (You're looking for "Xcode Command-Line Tools", which have nothing to do with Xcode, this is just a stupid name the Apple calls the standard Unix-y C/C++ toolchain.)