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

Build fails on linux if libunwind is installed #5641

Closed
Aatch opened this issue Mar 31, 2013 · 7 comments
Closed

Build fails on linux if libunwind is installed #5641

Aatch opened this issue Mar 31, 2013 · 7 comments

Comments

@Aatch
Copy link
Contributor

Aatch commented Mar 31, 2013

I have libunwind installed as a pre-req for another package, this causes rust_unwind.h to fail the build because of the re-typedefing of _Unwind_Exception.

Unfortunately, I can't seem to find a decent way of detecting that unwind.h has been included, other than using it's header guard macro.

This is building with --enable-clang on. Also, I am using the latest trunk.

@thestinger
Copy link
Contributor

Do you know where it gets included from? I have libunwind installed as a dependency of perf, but I haven't run into this.

@Aatch
Copy link
Contributor Author

Aatch commented Mar 31, 2013

The header being included is /usr/include/unwind.h. The line that is throwing the warning is inside an #ifndef __FreeBSD__ directive.

I'm running archlinux, which installs the headers for everything, I know that other distros often have a separate -dev or -devel package that has the headers.

@thestinger
Copy link
Contributor

I'm also on Arch by the way (x86_64) and testing against the latest incoming/master doesn't hit this.

@Aatch
Copy link
Contributor Author

Aatch commented Mar 31, 2013

I'm running clang 3.3 if that helps.

I also seem to be running an SVN build from AUR, I'm updating to the latest build, then I'll switch to the official package and see if that works.

@Aatch
Copy link
Contributor Author

Aatch commented Mar 31, 2013

Tried it with the clang from the official repo, still happens...

@thestinger
Copy link
Contributor

Ah, I'm silly and missed that you were compiling with clang, I interpreted it as you building clang along with Rust's LLVM. Same issue comes up here.

@Aatch
Copy link
Contributor Author

Aatch commented Apr 29, 2013

Fixed by #5646

@Aatch Aatch closed this as completed Apr 29, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue May 27, 2020
Add common lint tools doc

This PR starts adding some documentation about linting tools.

`Retrieving all methods of a type` is not covered at this time.

fixes partially: rust-lang#3843

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants