[llvm-dev] LLVM Build Error: Target object too big
Neil Nelson via llvm-dev
llvm-dev at lists.llvm.org
Tue Jul 30 16:11:36 PDT 2019
It has been a good number of years here since running Cygwin or Mingw
(better) under Windows. Eventually used a free copy of VMWare (there are
likely other options now) to create a Linux VM under Windows. You can
then choose most any Linux distribution and click back and forth between
Windows and Linux.
Regards, Neil Nelson
On 7/30/19 11:48 AM, Reid Kleckner via llvm-dev wrote:
> On Tue, Jul 30, 2019 at 8:30 AM Clint Banis via llvm-dev
> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>
> What I've tried so far:
> CFLAGS="-Wa,-mbig-obj" make
>
> But still same error.
>
>
> 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.
>
> Lastly, assuming that fixes PassBuilder.cpp.o, you'll need to enable
> it globally. We already enable it for mingw here:
> http://llvm-cs.pcc.me.uk/cmake/modules/HandleLLVMOptions.cmake#351
> 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.
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190730/d7771d12/attachment.html>
More information about the llvm-dev
mailing list