Message: Re: MAKEFLAGS='-j 2' Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: MAKEFLAGS='-j 2' 

Forum: Installation and Configuration
Re: None "No rule to make target" under OS X (Mark Looper)
Re: More Re: "No rule to make target" under OS X (Mark Looper)
Date: 21 Dec, 2009
From: Tom Roberts <Tom Roberts>

> export MAKEFLAGS="-j 2"

That does indeed generate errors related to "obj.last" when building global libraries. It works fine when building granular libraries.

I have "export MAKEFLAGS='-j 4'" in my .bash_profile, so it is always set to the 4 CPUs on this machine. I prefer global libraries, and don't want to slow it down, so I do this:

  Configure -build     (runs make internally)
  ... answer all the questions and let it do the build
  cd source
  make -j 1

Remarkably, the first make (run by Configure) does not stop from the failures related to obj.last and uses 4 CPUs to compile everything; the global libraries are incomplete due to those failures. The second make finds everything already compiled, so it just needs to complete the global libraries; it runs quickly and all is well.

BTW I do this on Linux, on Windows/Cygwin (using VC++), and on Mac OS X.

 Add Message Add Message
to: "Re: MAKEFLAGS='-j 2'"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]