<div dir="ltr"><div dir="ltr">On Tue, Jul 30, 2019 at 8:30 AM Clint Banis via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
What I've tried so far:<br>
CFLAGS="-Wa,-mbig-obj" make<br>
<br>
But still same error.<br></blockquote><div><br></div><div>I think this is the correct solution, but putting CFLAGS into the environment while running make or re-running cmake isn't enough to get flags through to the compiler. I'd recommend doing something like `make VERBOSE=1 lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o` to extract the single failing compile command, manually add -Wa,-mbig-obj, rerun, and see if the problem goes away.</div><div><br></div><div>Lastly, assuming that fixes PassBuilder.cpp.o, you'll need to enable it globally. We already enable it for mingw here:</div><div><a href="http://llvm-cs.pcc.me.uk/cmake/modules/HandleLLVMOptions.cmake#351">http://llvm-cs.pcc.me.uk/cmake/modules/HandleLLVMOptions.cmake#351</a> </div><div>We can definitely tweak those conditions to include Cygwin as the FIXME says, but you can see that obviously nobody has built LLVM this way for quite some time. Expect to run into more issues. Consider switching to mingw or mvsc if possible.</div></div></div>