View previous topic :: View next topic |
Author |
Message |
symbiote Tux's lil' helper
Joined: 06 Oct 2002 Posts: 87 Location: The 3rd World
|
Posted: Thu Sep 04, 2003 3:30 pm Post subject: xargs environment too large fix (for openoffice, etc) |
|
|
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 |
|
|
noathustra Tux's lil' helper
Joined: 08 Sep 2003 Posts: 129 Location: NYC
|
Posted: Mon Sep 08, 2003 10:13 pm Post subject: Fantastic! |
|
|
Thank you for the fix. It is great. |
|
Back to top |
|
|
JeroenV Guru
Joined: 16 Jul 2002 Posts: 447 Location: Amsterdam / Hamburg
|
Posted: Mon Sep 08, 2003 10:29 pm Post subject: |
|
|
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
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
Back to top |
|
|
njlg Tux's lil' helper
Joined: 03 Jul 2003 Posts: 98 Location: Portland, OR, USA
|
Posted: Tue Oct 07, 2003 6:35 pm Post subject: |
|
|
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 |
|
|
punter Guru
Joined: 25 Nov 2002 Posts: 506
|
Posted: Wed Oct 22, 2003 7:41 am Post subject: |
|
|
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 |
|
|
Admiral LSD Guru
Joined: 27 Jun 2003 Posts: 522 Location: Northam, W.A., Australia
|
Posted: Wed Oct 22, 2003 9:00 am Post subject: |
|
|
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 |
|
|
OneOfOne Guru
Joined: 28 May 2003 Posts: 368
|
Posted: Wed Oct 22, 2003 10:57 am Post subject: |
|
|
emerge latest ~x86 coreutils and unmerge findutils.
peace |
|
Back to top |
|
|
punter Guru
Joined: 25 Nov 2002 Posts: 506
|
Posted: Wed Oct 22, 2003 12:34 pm Post subject: |
|
|
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 |
|
|
gsfgf Veteran
Joined: 08 May 2002 Posts: 1266
|
Posted: Wed Oct 22, 2003 9:37 pm Post subject: |
|
|
submit this fix to bugs.gentoo.org _________________ Aim:gsfgf0 |
|
Back to top |
|
|
Admiral LSD Guru
Joined: 27 Jun 2003 Posts: 522 Location: Northam, W.A., Australia
|
Posted: Thu Oct 23, 2003 3:43 am Post subject: |
|
|
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 |
|
|
punter Guru
Joined: 25 Nov 2002 Posts: 506
|
Posted: Thu Oct 23, 2003 8:58 am Post subject: |
|
|
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 |
|
|
() l33t
Joined: 25 Nov 2002 Posts: 610
|
Posted: Thu Oct 23, 2003 9:28 am Post subject: |
|
|
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 |
|
|
|