This is a discussion on AIX 4.3: Increasing parameter/environment variable limit for execv? within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, I am compiling a large project on AIX 4.3 using gcc 2.95.3. The link line of the executable ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I am compiling a large project on AIX 4.3 using gcc 2.95.3. The link line of the executable contains a lot of object files and I am getting following error: gmake[1]: execvp: g++: The parameter or environment lists are too long. The linking fails with error code of 127. I am using native AIX ld. Is there any way to increase the limit on parameter/environment list size in AIX? Thanks and best regards, - Kiran |
| |||
| kiran <kiran.agashe@gmail.com> wrote: > I am compiling a large project on AIX 4.3 using gcc 2.95.3. > The link line of the executable contains a lot of object files and I am > getting following error: > gmake[1]: execvp: g++: The parameter or environment lists are too long. > The linking fails with error code of 127. > I am using native AIX ld. > > Is there any way to increase the limit on parameter/environment list > size in AIX? You could pack object files into a library and link against that. Yours, Laurenz Albe |
| |||
| Hello Laurenz, Thanks for your response. However, this option of packing object files into library is not straight-forward for me as it involves a lot of changes to many Makefiles. This is not a complex task in itself, but will involve lot of changes in our projects' case. Also we are using common Makefiles across several platforms, so we will have to test our project on different platforms with new Makefile. If there is any way to change parameter/environment variable limit, it will be much simple and faster method. Thanks and best regards, - Kiran Agashe |
| ||||
| kiran wrote: > However, this option of packing object files into library is not > straight-forward for me as it involves a lot of changes to many > Makefiles. This is not a complex task in itself, but will involve lot > of changes in our projects' case. Also we are using common Makefiles > across several platforms, so we will have to test our project on > different platforms with new Makefile. > > If there is any way to change parameter/environment variable limit, it > will be much simple and faster method. > Thanks and best regards, A) 4.3 is dead and out of service. Time to move on. B) I don't think so, but I haven't touched 4.3 for a few years now. I know that 5.x allows you to set the env size (for every process) up to .5 MB. The fast path is smitty chgsys; you can check on your system, where it would be labeled "ARG/ENV list size in 4K byte blocks" C) You're going to have to do something to get around the limit, whether you like it or not. Another option is to build a list of object files and use the -f linker option. Or incrementally link some of the object code using ld -r. -- Gary R. Hook __________________________________________________ ______________________ Vocatus atque non vocatus deus aderit |
| Thread Tools | |
| Display Modes | |
|
|