Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xargs environment too large fix (for openoffice, etc)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
symbiote
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2002
Posts: 87
Location: The 3rd World

PostPosted: Thu Sep 04, 2003 3:30 pm    Post subject: xargs environment too large fix (for openoffice, etc) Reply with quote

Aside from booting, I cannot compile openoffice-ximian properly because of this xargs problem.

Below is a good way to fix it, by patching xargs completely:

1) emerge findutils
2) ctrl+c after unpacking the source
3) cd into /var/tmp/portage/findutils-*/work/findutils-*
4) cd xargs
5) vi xargs.c
6) comment the lines below using /*, eg:

/*
if (arg_max > 20 * 1024)
arg_max = 20 * 1024;
*/

7) you can resume the ebuild by: ebuild /usr/portage/sys-apps/findutils-*/findutils-*.ebuild compile

or

simply, do a

a) cd ..
b) ./configure; make
c) cd xargs
d) mv xargs /usr/bin

After that, xargs should be patched and free of that crazy environment too large crap and everything should be fine.
Back to top
View user's profile Send private message
noathustra
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2003
Posts: 129
Location: NYC

PostPosted: Mon Sep 08, 2003 10:13 pm    Post subject: Fantastic! Reply with quote

Thank you for the fix. It is great.
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Mon Sep 08, 2003 10:29 pm    Post subject: Reply with quote

Does anybody have an idea what causes the xargs error during booting recently anyway? Is it a new xargs feature or an upgraded init script?
And what would be the reason to limit xargs like this?
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
njlg
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2003
Posts: 98
Location: Portland, OR, USA

PostPosted: Tue Oct 07, 2003 6:35 pm    Post subject: Reply with quote

I tried your patch to fix xargs. I had a 'xargs environment too large' problem, without openoffice. My problem randomly showed up after several system installs. And I know it was not a problem the first couple times (I am using the same files to build my system again).

After I ebuild findutils, and run 'emerge -up findutils,' I find that findutils was not emerged. Is this typical?

Also, would xargs have anything to do with my system randomly rebooting during 'emerge -u world?'
Back to top
View user's profile Send private message
punter
Guru
Guru


Joined: 25 Nov 2002
Posts: 506

PostPosted: Wed Oct 22, 2003 7:41 am    Post subject: Reply with quote

Code:
------------------------------
Making: ../unxlngi4.pro/bin/makedepend
unx
xargs: environment is too large for exec
dmake:  Error code 1, while making '../unxlngi4.pro/bin/makedepend'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.0-r1/work/oo_1.1_src/soltools/mkdepend

!!! ERROR: app-office/openoffice-1.1.0-r1 failed.
!!! Function src_compile, Line 443, Exitcode 1
!!! Build failed!


A missing colon results in people missing the post when searching by error string. Right or wrong, I included the error code so people searching for it can pick it up.
Back to top
View user's profile Send private message
Admiral LSD
Guru
Guru


Joined: 27 Jun 2003
Posts: 522
Location: Northam, W.A., Australia

PostPosted: Wed Oct 22, 2003 9:00 am    Post subject: Reply with quote

A better way to get the source for the modification is just to use:

Code:
ebuild /usr/portage/sys-apps/findutils-*/findutils-*.ebuild unpack


That will just unpack the source, apply any patches that may be with it and then leave the source in /var/tmp/portage/findutils-* ready for you to make the modification. Once you've finished you just run:

Code:
ebuild /usr/portage/sys-apps/findutils-*/findutils-*.ebuild compile
ebuild /usr/portage/sys-apps/findutils-*/findutils-*.ebuild install
ebuild /usr/portage/sys-apps/findutils-*/findutils-*.ebuild qmerge


to compile and reinstall it. It's far easier than fiddling about trying to catch the end of the unpack before the beginning on the compile.
_________________
Wasurenaide...
...watashi ga iru koto o.
Itsudatte soba ni iru yo.

Registered Linux user #319839
Back to top
View user's profile Send private message
OneOfOne
Guru
Guru


Joined: 28 May 2003
Posts: 368

PostPosted: Wed Oct 22, 2003 10:57 am    Post subject: Reply with quote

emerge latest ~x86 coreutils and unmerge findutils.

peace
Back to top
View user's profile Send private message
punter
Guru
Guru


Joined: 25 Nov 2002
Posts: 506

PostPosted: Wed Oct 22, 2003 12:34 pm    Post subject: Reply with quote

Quote:
emerge latest ~x86 coreutils and unmerge findutils.

definitely not the solution !

Code:
=============
Building project helpcontent
=============
/var/tmp/portage/openoffice-ximian-1.1_rc5/work/oo_1.1_src/helpcontent/unx/sbasic
mkout -- version: 1.3
find: Command not found.
dmake:  Error code 1, while making 'Shell escape'

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-ximian-1.1_rc5/work/oo_1.1_src/helpcontent/unx/sbasic
dmake:  Error code 1, while making 'build_all'
---* TG_SLO.MK *---

!!! ERROR: app-office/openoffice-ximian-1.1_rc5 failed.
!!! Function src_compile, Line 502, Exitcode 255
!!! Build failed!


editing findutil source code didn't work either, but i guess it's best done Admiral LSD` way.
so, i'll give it another try.

Shane
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Wed Oct 22, 2003 9:37 pm    Post subject: Reply with quote

submit this fix to bugs.gentoo.org
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
Admiral LSD
Guru
Guru


Joined: 27 Jun 2003
Posts: 522
Location: Northam, W.A., Australia

PostPosted: Thu Oct 23, 2003 3:43 am    Post subject: Reply with quote

I made this fix to findutils yesterday and went to try and upgrade OpenOffice only to find my kernel wasn't entirely stable so after fixing that I tried upgrading OOo over the course of last night. Well, it worked. I came back this morning and found OpenOffice-1.1.0-r1 neatly emerged without any trouble GCC 3.3 and all.
_________________
Wasurenaide...
...watashi ga iru koto o.
Itsudatte soba ni iru yo.

Registered Linux user #319839
Back to top
View user's profile Send private message
punter
Guru
Guru


Joined: 25 Nov 2002
Posts: 506

PostPosted: Thu Oct 23, 2003 8:58 am    Post subject: Reply with quote

I recommend Admiral LSD` method.
Worked for me.

Took less time to compile than I expected !
At least my last openoffice compilation took more than 12 hours, but this one was less !
Back to top
View user's profile Send private message
()
l33t
l33t


Joined: 25 Nov 2002
Posts: 610

PostPosted: Thu Oct 23, 2003 9:28 am    Post subject: Reply with quote

Yay, finally OpenOffice would compile for me. It didn't take very long either, maybe 6 hours or so (didn't time it). Maybe ccache made a difference, for the first time it actually reported cache hits : )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum