[Gllug] make -j problems
nix at esperi.org.uk
Sat Jun 26 21:24:20 UTC 2010
On 25 Jun 2010, Rich Walker verbalised:
> On 2010-06-22 20:37, Nix wrote:
>> On 22 Jun 2010, Rich Walker uttered the following:
>>> At the moment, I execute
>>> ssh -X machine "cd /usr/src/linux; setarch i386 make ; make --jobs=4
>>> CC=gcc bzImage modules"
>> Uh, that's what you're asking for. Specifically, you're asking it to run
>> make without arguments with the i386 architecture, then to run "make
>> --jobs=4 CC=gcc bzImage modules" with the default arch. So the makes
>> may be run with different architectures (which used to be disastrous:
>> I think kbuild can recover better now), and the first one will be run
> Right - I see my problem - setarch x y runs y as arch x once. Man page
> reading fail.
Well, no, this is a shell quoting thing. That command line (inside the
ssh) is a list of three commands:
setarch i386 make
make --jobs=4 CC=gcc bzImage modules
It doesn't matter how setarch is implemented, it cannot see that third
list element. The only way it could work is if setarch was a shell builtin,
like ulimit, that affected the current shell; but it isn't.
>> (hm, why do you need X to build the kernel? You're not doing an xconfig
>> there or anything...)
> Force of habit on the ssh :=)
Host * # or whatever set of hosts you want
in .ssh/config, and then forget about the -X most of the time.
Gllug mailing list - Gllug at gllug.org.uk
More information about the GLLUG