PDA

View Full Version : [Solved] make/gcc and core 2 duo


fch
January 26th, 2009, 14:30
Hello !

make/gcc use only one CPU on my core 2 duo.
I've MAKEOPT=-j 4 and MAKEFLAG=-j 4 in /etc/make.conf.
Have you got any solution ?

Thanks in advance.

Best regards.

tangram
January 26th, 2009, 14:58
Have you tried to simply pass -j argument at the command line?

A reasonable number of builds to start is one more than the number of CPUs you have. For example, if you have a two-core processor, you can use three build process by using:

# make -j3 install clean

ale
January 26th, 2009, 15:35
If I'm not wrong, the kernel and (most of) the ports, are not safe to be built with -j, so, if that's the reason why you want to use -j, you may want to pay attention or check about more info about that by yourself.

DutchDaemon
January 26th, 2009, 15:44
Building ports/world with -j (make buildworld/make buildkernel) is fine, installing them with -j (make installkernel/make installworld) is not.

ale
January 26th, 2009, 16:10
Building ports/world with -j (make buildworld/make buildkernel) is fine, installing them with -j (make installkernel/make installworld) is not.Nice!
I knew about buildworld (it's even in the handbook), but I thought that it wasn't good for buildkernel.
Maybe it comes from the 5.x times...

trev
January 27th, 2009, 04:28
I knew about buildworld (it's even in the handbook), but I thought that it wasn't good for buildkernel.
Maybe it comes from the 5.x times...

make -jn where n > 2 causes buildkernel to fail with errors (amd64, 7.1-STABLE).

make -j8 buildworld is cool though :)

DutchDaemon
January 27th, 2009, 10:22
Must be very typical for amd64 then. I always build kernel/world with -j4 on i386 (any CPU, really).

kamikaze
January 27th, 2009, 12:17
So do I on amd64.

kenorb
November 9th, 2010, 18:02
Hello !

make/gcc use only one CPU on my core 2 duo.
I've MAKEOPT=-j 4 and MAKEFLAG=-j 4 in /etc/make.conf.
Have you got any solution ?

Thanks in advance.

Best regards.

Sorry to post to the old thread, but this information is out-dated and invalid (if somebody will find this post, I did).
MAKEOPTS is not supported by FreeBSD
See: http://forums.freebsd.org/showthread.php?t=19172
For proper configuration in make.conf instead.