This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re[3]: "Argument list too long" error due to huge number of -I<dir> parameters in gcc comm and line


Hello,

I would like to share all findings.

1. Try to remove all unused environment variables to give more memory for command line arguments.
2. Increase ARG_MAX value. Restricted solution since root is required to do that.
3. Use option @file.
4. Use option âspecs=<file>.
5. Use C_PATH and others variables..

In our case option #4 was the best solution.

Thanks,
Vasily.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]