Skip to content
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

Dead functions in middle::trans::shape can't be removed #3670

Closed
catamorphism opened this issue Oct 6, 2012 · 1 comment
Closed

Dead functions in middle::trans::shape can't be removed #3670

catamorphism opened this issue Oct 6, 2012 · 1 comment
Labels
A-linkage Area: linking into static, shared libraries and binaries

Comments

@catamorphism
Copy link
Contributor

If I remove the functions add_u16 and add_substr, which are never called, from middle::trans::shape, I get:

/Users/tchevalier/rust/src/libstd/std.rc:28:0: 28:30 error: can't find crate for `core`
/Users/tchevalier/rust/src/libstd/std.rc:28 extern mod core(vers = "0.4");
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

when building stage1 libstd. @pcwalton says this is due to a problem with LLVM metadata getting truncated.

If so, we should isolate this to the piece of LLVM bytecode that exhibits the problem, and report it upstream.

@lucab
Copy link
Contributor

lucab commented Oct 11, 2012

I've experienced the exact same issue when building 0.4-incoming using Debian packaged llvm-3.1. On that same system, building 0.3.1 with external llvm works, as well as using llvm submodule for 0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants