LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-25-2006, 08:00 AM   #1
Min Chen
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
Question the problem of "args list too long"


I have trouble in running "make dep" when I try to compile linux kernel 2.4.18:
/bin/sh: scripts/mkdep: args list too long
make: *** [dep-files] error 126

I know this dued to long argument list "/home/gentlecm/downloads/XSBase255_Linux_CDROM/Kernel/2.4.18-rmk7-pxa1-XSBase/", which specifies a directory where kernel files reside.

I will have no problem if I put the kernel files to a directory of a short path, for instance, "/home/kernel/"
.

I better tell you my linux system is Ubuntu5.10, though I know the problem has nothing about what kind of linux my system is.

And, I have googled for this and get something like the kernel parameter "larg_ncargs_enabled", and linux command "xargs". But I don't know how to reset this kernel parameter and use this command for I could get little search results on them.

Any advice is appreciated.
 
Old 03-25-2006, 10:37 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
"large_ncargs_enabled" is actually an HP-UX tunable, not a Linux one.

Trying to change this limit is anyway the wrong approach, if you reach the limit then there is something wrong in your script. Better to fix it with xargs, which is indeed the right answer.

Of course avoiding the limit by using shorter directories is an acceptable workaround.

You can have both the long and short names exist by using a symbolic link:
ln -s /home/gentlecm/downloads/XSBase255_Linux_CDROM/Kernel/2.4.18-rmk7-pxa1-XSBase /home/kernel
 
Old 03-26-2006, 09:30 PM   #3
Min Chen
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you so much for your advice. But I yet don't know how to use "xargs" together with "make dep" to do my job correctly. I tried to type "xargs make dep", but it just didn't work, actually, it seemed to be suspended. Could you please offer me other advice on this?

Last edited by Min Chen; 03-26-2006 at 09:32 PM.
 
Old 03-27-2006, 01:03 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What's wrong with my symlink advice ?
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Could not init font path element""Unix /: 7100 removing from list/ zameer_india Linux - Networking 7 07-03-2006 06:11 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
"YOU" says "could not write server list to disk" dushkinup Linux - Distributions 4 07-26-2004 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration