Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File too big while compiling with Ninja #1680

Open
ArjunDeshmukh opened this issue Feb 8, 2024 · 3 comments
Open

File too big while compiling with Ninja #1680

ArjunDeshmukh opened this issue Feb 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ArjunDeshmukh
Copy link

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.

@tgymnich
Copy link
Member

tgymnich commented Feb 8, 2024

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.

@wsmoses
Copy link
Member

wsmoses commented Feb 8, 2024 via email

@tgymnich tgymnich added the bug Something isn't working label Feb 14, 2024
@wsmoses
Copy link
Member

wsmoses commented Feb 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants