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 error: zero-size array ‘mattr’ with LLVM 3.5 #11817
Comments
b940fdf is at fault, not sure what the best patch is. Looks like you're building with LLVM 3.5? |
Yes, I'm building with LLVM 3.5. I cannot use LLVM 3.6 because "llvm/ExecutionEngine/JITMemoryManager.h" is not provided by the 3.6 package. |
We haven't backported all fixes for building against LLVM 3.6 or svn; 3.3 (plus patches where necessary) is really the primary supported version for release-0.3. Not sure why you're the first one to report a problem though. What's the easiest way to reproduce the dependency environment and build flags here? Could you write a dockerfile that quickly reproduces this inside guix? |
I do not use Docker, so I cannot help with that, I'm afraid. Guix can be installed by unpacking a tarball on any GNU/Linux system. Here's a short introduction: http://elephly.net/posts/2015-06-21-getting-started-with-guix.html To build julia 0.3.6 as previously packaged: |
looks like we could just stick a dummy NULL at the end of the |
That sounds worth trying, @rekado can you test that and submit a PR with a patch if you come up with one that works? |
Good idea. I'll try that today and report back. |
After applying the following patch Julia 0.3.9 builds just fine:
Thank you, @vtjnash for the hint. A
as |
@rekado Is LLVM happy when you pass it an empty string? If so, would you prepare a pull request with your patch? Though I think you should only add the empty string when none of the |
@nalimilan I don't know how to detect unhappiness in LLVM, but I did not see it complain during the build. I can prepare a nicer patch later and create a pull request (but probably not today). |
llvm seems fine with skipping over
|
FWIW, I'm using the above patch with Julia 0.3.10. |
We'll probably do one last tag on 0.3, so a PR against the release-0.3 branch would be good to run that against CI. |
closed by #12243 |
I'm trying to upgrade from 0.3.6 to 0.3.9, but I get the following build error:
I'm compiling with GCC4.9 using a minimally modified version of the Guix recipe here.
The text was updated successfully, but these errors were encountered: