Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2001 16:44:18 +0200
From:      Ertan Kucukoglu <ertank@ozlerplastik.com>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@freebsd.org
Subject:   Re: differences between (buildworld installworld) and (world)
Message-ID:  <3A65AFC2.C311BDC8@ozlerplastik.com>
References:  <14949.42133.952355.929296@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Meyer wrote:
> 
> Ertan Kucukoglu <ertank@ozlerplastik.com> types:
> > Hello,
> >
> > Recently I upgraded my 4.0-RELEASE machine to 4.2-STABLE. First, I did "make
> > - -j4 buildworld". Then after it finished without error, I did "make -j4
> > installworld". After sometime I got error message that says "I cannot find
> > file ...."
> >
> > I choose that way because "make world" installs the system just after
> > compilation and, I was not sure that my system will compile error proof.
> >
> > I thought a little and tried "make world". It finished without any errors. I
> > upgraded my system, but why I got error with "make buildworld installworld"
> > and did not with "make world"?
> >
> > Is there any differences? I used same parameters for both buildworld and
> > installworld as mentioned in the handbook.
> 
> There is only one difference for normal usage: "make world" does the
> installworld make with parallel builds (what you caused with "-j 4")
> disabled. That's because the installworld target - as you just
> discovered - doesn't work with parallel builds.

So, this is the problem. Do not run installworld with parallel build option.
:)

> 
> So you should do "make -j 4 buildworld" and "make installworld" if you
> want to do it in two parts. Of course, if the only reason you're doing
> that is because you're worried about the build not working - don't
> bother; make is smart enough not to do the installworld if the
> buildworld fails.

Exactly, I managed to upgrade with that way. And, after now I will only use
"make world" (of course until it changes into another command :)

> 
> To pick nits, "make world" will build and use a current make on very
> old (pre 2.2.5) systems, and has hooks to do things pre buildworld and
> post installworld. None of which will matter during normal usage.
> 

Thank you for your reply.

>         <mike
> --
> Mike Meyer <mwm@mired.org>                      http://www.mired.org/home/mwm/
> Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

Regards,

--
Ertan Kucukoglu
ertank@ozlerplastik.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A65AFC2.C311BDC8>