EnzymeAD/Enzyme

File too big while compiling with Ninja

ArjunDeshmukh opened this issue · 3 comments

While compiling Enzyme with Ninja, I got the following error:
image

There are multiple similar errors after this step which have the same message: "someLLVMfilename.obj: file too big"

Please let me know how to resolve this issue.

I have no experience with mingw whatsoever but maybe try adding this flag: https://learn.microsoft.com/en-us/cpp/build/reference/bigobj-increase-number-of-sections-in-dot-obj-file?view=msvc-170

I also don't think we support LLVM 19 just yet, so maybe try LLVM 16 or 17.

thanks to @tgymnich's template removal, the size and number of functions should be smaller now. Does that help?