-
Notifications
You must be signed in to change notification settings - Fork 114
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
Compile error on macOS with default clang #118
Comments
Having the same on Linux with LLVM and Clang 8.0.1. |
Same problem on FreeBSD 13.0/Clang 9.0.0/libc++. Builds fine with GCC 9.2.0 but mrustc then core dumps with a Bus Error (probably the same problem as #123). |
Same problem on linux with LLVM/clang/libc++ from relatively recent git master. |
Can't reproduce on |
Can anyone confirm that the above fix worked? |
The original error no longer occurs with latest master (cb71402) on
|
#151 has some fixes that I've yet to review/merge |
|
This seems to be a different issue to the "linker issue" that was mentioned before, given that mrustc does not even compile. As such, I don't think this is a duplicate issue.
Trying to build: minicargo and mrustc itself, though makefile also makes rustc afterward
Host system version: macOS Mojave 10.14.5, x86_64-apple-darwin18.6.0
Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4)
mrustc version: latest commit (ebd8ede)
Note that I also changed the rustc default target to "x86_64-apple-darwin", as per recommended for non-Linux systems.
The issue seems to lie in clang not liking AST::Attribute being defined after AST::AttributeList (which includes it as the type of a vector).
Terminal output:
The error does not occur with a Homebrew-installed GCC 9.1.0, but a separate problem occurs with that, which I'll put in a different issue.
The text was updated successfully, but these errors were encountered: