<div dir="ltr">We need to fix the build to pass -mbig-obj to the gnu assembler. You can probably use -DCMAKE_CXX_FLAGS=-Wa,-mbigobj to work around the problem.<div><br></div><div>I'd add this flag to the llvm build myself, but my mingw64 build of clang is currently broken for other reasons.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 19, 2016 at 1:58 AM, William D. Jones via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
I'm (re)building a copy of Clang 3.9 for a git fork of LLVM (or1k) that tracks 3.9 but is not yet merged into LLVM proper. The last merge from the main Clang codebase was on Aug 11, release_39. When building, LLVM seems to compile fine. However, with Clang I am running into the following error as shown in this gist: <a href="https://gist.github.com/cr1901/d5a4e8f1df6049c00c6f02f08e7f8488" rel="noreferrer" target="_blank">https://gist.github.com/cr1901<wbr>/d5a4e8f1df6049c00c6f02f08e7f8<wbr>488</a><br>
<br>
Just to test, I have also confirmed that this same error occurs as of commit 54f5752c, release_39 branch, on the LLVM Github mirror. I have not tried HEAD of master, or SVN r290090 as of this writing. I also have not tried compiling an LLVM/Clang using MSVC, and am not currently in a position to try.<br>
<br>
According to this linked post, this error has occurred during Windows builds before: <a href="http://lists.llvm.org/pipermail/cfe-dev/2013-June/030024.html" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermai<wbr>l/cfe-dev/2013-June/030024.<wbr>html</a> I know a stopgap solution is to introduce the –bigobj flag to the linker, but I was under the impression from another linked post- <a href="http://lists.llvm.org/pipermail/llvm-dev/2014-May/072642.html-" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermai<wbr>l/llvm-dev/2014-May/072642.<wbr>html-</a> that the flag should not be required, and some unit tests fail when –bigobj is enabled.<br>
<br>
Are the above posts out of date, and the flag is now required? Are there any special options (besides overriding LDFLAGS directly) I may have forgot when generating the Makefiles? Building a Release build is not desirable for me for various reasons. My current LLVM/Clang, built in much the same way, is 3.5, so I know that in the past, too many sections wasn't an issue :).<br>
<br>
Thanks for any help in advance! Sincerely,<br>
<br>
--<br>
William D. Jones<br>
<a href="mailto:thor0505@comcast.net" target="_blank">thor0505@comcast.net</a> <br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>