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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux