-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ld: archive has no table of contents file #18650
Comments
Hm, this seems odd. To get a handle on what's going on here, could you try compiling with
|
Unfortunately that still fails. Here's the exact output:
|
So I came across this: tpoechtrager/osxcross#11 which is someone having the exact same problem for something else, mentioning that the default archiver isn't sufficient and that x86_64-apple-darwin1X-ar needs to be used. I'm not entirely sure what this means, but does this help in any way? |
I just tried to build Rust from the source, and I also get a bunch of
Is this best off in a separate issue? |
More info from the latest rust version:
I also just downloaded Rust 0.12 rather than the latest nightly, and I get the same error, so it's something environmental causing it, not Rust itself. Any ideas anyone? I'm a bit desparate now. |
So this turns out to be a completely environmental issue. There were a bunch of duplicate files of system programs (like ls, mv, etc...). Removing them got rust to work again! |
crates/r-a: Fix typo in debug message
Hi, I'm trying to make a really really simple hello world program in Rust using a custom library through Cargo, and I'm getting the error:
I have a lib rstestlib, containing a lib.rs with this inside it:
And the rstest program has a main.rs with:
The rstest program has this as a Cargo.toml file:
And the rstestlib program has this as a Cargo.toml:
I've just reinstalled rust using the 1 line console command from the Cargo website. The output of rustc -v is
rustc 0.13.0-nightly (0a5e7f359 2014-11-03 23:16:55 +0000)
. I've had this problem for a while now, and it's really disappointing because I love rust so much, but I can't use it at all anymore.I've tried running
ranlib target/deps/librstestlib*
as some internet sources (eg. here) suggest, but when I do this I get a bunch of undefined symbols for architecture, and a note saying the .rlib file was not built for the current architecture I'm trying to build for (which is x86_64):But, if I run
lipo -info target/deps/librstestlib*
, it says the archive file was built for x86_64:This happens with any library I try and link, ones from GitHub or locally. I'm running OSX Yosemite (10.10), with the latest Xcode (6.1) and OSX SDKs installed. I get the same problem if I bypass Cargo and compile using rustc directly as well, so it's not a Cargo problem. I used the command
rustc -L"../rstestlib/target" src/main.rs
.Does someone know what's going on here? I'm really stuck and can't figure out why this is happening. I really love Rust and really appreciate all the hard work that's gone into making it - it is fantastic. But it's not working at the moment, which is really disappointing and very limiting if I can't link against libraries.
The text was updated successfully, but these errors were encountered: