Unix Technical Forum

AIX 4.3: Increasing parameter/environment variable limit for execv?

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 05:44 AM
kiran
 
Posts: n/a
Default AIX 4.3: Increasing parameter/environment variable limit for execv?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 05:44 AM
Laurenz Albe
 
Posts: n/a
Default Re: AIX 4.3: Increasing parameter/environment variable limit for execv?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 05:44 AM
kiran
 
Posts: n/a
Default Re: AIX 4.3: Increasing parameter/environment variable limit for execv?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 05:45 AM
Gary R. Hook
 
Posts: n/a
Default Re: AIX 4.3: Increasing parameter/environment variable limit forexecv?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com