-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
zig cc can fail with extremely long argument list #10881
Comments
Remarks: This happens because such an argument lists triggers a behavior in Clang to invoke subprograms with |
Duplicate of #10693? |
Perhaps, seems like #9654 didn't fix this case. |
This is not a duplicate of #10693. This may be due to shelling out to lld after the response file is read/expanded by It's easier to tell where the cause is on Windows because you get a stacktrace: Create a file
|
I believe I ran into this on windows while trying to compile fftw with cmake using
I was able to work around the problem by disabling library features until cmake stopped using a response file. |
I bumped into this problem too on a Windows build, and I really have no idea how to reproduce it, because it only happens in CI. If anyone is interested in taking a look to see if there is a clear fix, this is the full log: https://ci.appveyor.com/project/AWSSAMCLI/aws-lambda-builders/builds/43252407/job/9n3ebh8fb8khkjw8 |
Same problem |
Fixed by #19850 |
Is the fix going to be in 0.13.0, or do you have plans to include it in a 0.12.1 version at some point? |
Zig Version
0.10.0-dev.699+55fa349ad
Steps to Reproduce
Note that this isn't really a problem for most purposes as nobody should be hitting the ARG_MAX limit in normal use.
getconf ARG_MAX
(on my system, it's 2097152)zig cc
with such an argument list, i.e.:zig cc test.c -o test -DAAAAAAAAA...
Expected Behavior
Compile to proceed as usual.
Actual Behavior
The text was updated successfully, but these errors were encountered: