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

MSVC fails linking rustc in debug mode; too many codegen units #54830

Closed
abonander opened this issue Oct 4, 2018 · 1 comment
Closed

MSVC fails linking rustc in debug mode; too many codegen units #54830

abonander opened this issue Oct 4, 2018 · 1 comment

Comments

@abonander
Copy link
Contributor

abonander commented Oct 4, 2018

Building rustc in debug mode with just debug=true in config.toml seems to generate a ridiculous number of codegen units. It fails with an error in linking:

note: LINK : fatal error LNK1189: library limit of 65535 objects exceeded

The command I was running:

x.py test src/test/compile-fail --stage 1 --test-args <irrelevant>

Setting codegen_units to 0 in config.toml fixes the problem, as that limits it to the number of cores in the machine.

cc @alexcrichton

@abonander
Copy link
Contributor Author

Crap, duplicate of #53014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant