[llvm-dev] LLVM Build Error: Target object too big
Reid Kleckner via llvm-dev
llvm-dev at lists.llvm.org
Tue Jul 30 10:48:57 PDT 2019
On Tue, Jul 30, 2019 at 8:30 AM Clint Banis via llvm-dev <
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190730/4706e316/attachment.html>
More information about the llvm-dev
mailing list