Compiling utilizing multiple CPUs
chuckr at chuckr.org
Tue Jan 15 12:51:29 PST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Chuck Swiger wrote:
> On Jan 15, 2008, at 11:34 AM, Chuck Robey wrote:
>>> The quality of the Makefiles or similar used by individual ports varies,
>>> and many of them are not safe to compile in a multithreaded fashion.
>>> You can set "MAKEFLAGS=-j3" or similar in your environment, but it's
>>> really not recommended.
>> I think it's necessary to tell why its not recommend it: because many
>> makefiles are insufficiently sedt up to correctly allow multiple cpu's to
>> work side by side.
> Well, didn't I just say that above?
> I assure you that "not safe to compile in a multithreaded fashion" means
> pretty much the same thing as "not set up to correctly allow multiple
> CPU's to work side by side". :-)
Well, I guess it felt to me that it wasn't cleear that the fault is of the
makefiles, and not the tool. I kinda like make (there's gotta be one in
every crowd, right?) and I guess I react to imagined slights rather
quickly. There are SO many people creating make workalikes, and it smmes
to me that most are the product of folks unwilling to learn make, unwilling
to pay the cost (which doesn't seem all that high to me). There's gotta be
more than 20 make replacements out there, probably more.
It wasn't a comment on you, nowadays I just do a kneejerk defense of make.
I really, really wish that all the changes that went into FreeBSD's make
hadn't occurred, because that alone is a huge reason why no one else uses
it. It actually can port back to being really portable, but removing all
those many, many changes that made it compile only on FreeBSD take a while
to undo. None of those huge raft of changes were done to bring in FreeBSD
specific items, it was to group functions into different sets of libraries,
meaning changes only in the compilation, not in function. All that kind of
stuff results in our make being as popular as a case of the clap.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the freebsd-ports