Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cargo rustc -- -Zno-trans called on crate_type = ["cdylib"] crates abort linker #39445

Closed
oli-obk opened this issue Feb 1, 2017 · 9 comments
Closed
Labels
A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug.

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Feb 1, 2017

The error is /usr/bin/ld:/tmp/rustc.4i5vo9joxpv6/list:4: syntax error in VERSION script. It doesn't happen with normal lib/bin crates and it doesn't happen without -Zno-trans.

@retep998
Copy link
Member

retep998 commented Feb 1, 2017

Could this have been caused by #38117?

@ustulation
Copy link

Hey guys, has this been confirmed/identified and do we have a fix on the way ?

@Mark-Simulacrum
Copy link
Member

This appears to be fixed today as far as I can tell. Or, at least, I cannot reproduce.

@oli-obk
Copy link
Contributor Author

oli-obk commented May 24, 2017

@retep998 retep998 reopened this May 24, 2017
@Mark-Simulacrum
Copy link
Member

Hm, odd. Perhaps it's platform dependent? Or my tests weren't quite right. The latter may be more likely.

@steveklabnik
Copy link
Member

-Z no-trans is effectively deprecated today, no?

@Mark-Simulacrum
Copy link
Member

I'm not quite sure. I think it's not quite deprecated, more like "usable only on nightly." Though I personally don't know any reason to use it over --emit=metadata.

@steveklabnik
Copy link
Member

Though I personally don't know any reason to use it over --emit=metadata.

Yes, that's what I'm getting at.

@Mark-Simulacrum Mark-Simulacrum added the A-linkage Area: linking into static, shared libraries and binaries label Jun 23, 2017
@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 27, 2017
@oli-obk
Copy link
Contributor Author

oli-obk commented Jan 16, 2018

We're using --emit=metadata now.

@oli-obk oli-obk closed this as completed Jan 16, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

5 participants