Re: make -jN parallel builds is broken
On 31.05.2013 12:17, Florent Peterschmitt wrote: Le 31/05/2013 12:13, Andre Oppermann a écrit : Any ideas how to fix this? # make -j8 buildworld --- buildworld --- make: illegal option -- J usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable] [-d flags] [-E variable] [-f makefile] [-I directory] [-j max_jobs] [-m directory] [-V variable] [variable=value] [target ...] *** [buildworld] Error code 2 make: stopped in /u/svn/commit/head4 1 error See here: http://lists.freebsd.org/pipermail/freebsd-current/2013-May/041976.html Blowing away /usr/obj fixed the issue. Apparently "make clean" isn't sufficient. Thanks -- Andre ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: make -jN parallel builds is broken
Le 31/05/2013 12:13, Andre Oppermann a écrit : > Any ideas how to fix this? > > # make -j8 buildworld > --- buildworld --- > make: illegal option -- J > usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable] > [-d flags] [-E variable] [-f makefile] [-I directory] > [-j max_jobs] [-m directory] [-V variable] > [variable=value] [target ...] > *** [buildworld] Error code 2 > > make: stopped in /u/svn/commit/head4 > 1 error > See here: http://lists.freebsd.org/pipermail/freebsd-current/2013-May/041976.html -- Florent Peterschmitt | Please: flor...@peterschmitt.fr| * Avoid HTML/RTF in E-mail +33 (0)6 64 33 97 92 | * PDF for documents http://florent.peterschmitt.fr | Thank you :) signature.asc Description: OpenPGP digital signature
Re: make -jN bug (was: Re: groff breaks "make -j N buildworld")
On Thu, Apr 19, 2001 at 11:38:49PM +1000, Bruce Evans wrote: > On Thu, 19 Apr 2001, Ruslan Ermilov wrote: > > > Attached is the Makefile that demonstrates the problem. Run it like this: > > > > make obj; make all > > > > Then try: > > > > make install > > > > And then try: > > > > make -j2 install > > > > Note the difference. This fixes the problem: > > > > --- MakefileThu Apr 19 11:33:04 2001 > > +++ MakefileThu Apr 19 11:36:20 2001 > > @@ -8,6 +8,7 @@ > > beforeinstall: .SILENT > > cd ${.CURDIR}; \ > > ${INSTALL} ${COPY} -m ${NOBINMODE} Makefile ${DESTDIR}/tmp > > + cd ${.OBJDIR} > > pwd > > ${INSTALL} ${COPY} -m ${NOBINMODE} foo ${DESTDIR}/tmp > > > > I'm not sure if this a make(1) bug or a feature, as both NetBSD and > > OpenBSD behave the same. But I'm pretty sure this is a bug. Will? > > This is a feature of parallel make. Parallel make combines all of > the commands for each target into a single shell command (if possible?). > Thus `cd's in one command affect subsequent commands. This feature > can be controlled using the undocumented .SINGLESHELL directive. > Unfortunately, the implementation of .SINGLESHELL is too primitive > for .SINGELSHELL to be worth using. Using it is equivalent to using > -B to turn off -j. > I stand corrected. The simple demo of this feature would be: foo: .SILENT VARIABLE=value echo $${VARIABLE} BTW, I have found the relevant info in the section 2.2 of the /usr/share/doc/psd/12.make/ paper: : Because all the commands are given to a single shell to execute, : such things as setting shell variables, changing directories, etc., : last beyond the command in which they are found. This also allows : shell compound commands (like ``for'' loops) to be entered in a : natural manner. Since this could cause problems for some makefiles : that depend on each command being executed by a single shell, PMake : has a -B flag (it stands for backwards-compatible) that forces each : command to be given to a separate shell. It also does several other : things, all of which I discourage since they are now old-fashioned. Thanks, -- Ruslan Ermilov Oracle Developer/DBA, [EMAIL PROTECTED] Sunbay Software AG, [EMAIL PROTECTED] FreeBSD committer, +380.652.512.251Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: make -jN bug (was: Re: groff breaks "make -j N buildworld")
On Thu, 19 Apr 2001, Ruslan Ermilov wrote: > Attached is the Makefile that demonstrates the problem. Run it like this: > > make obj; make all > > Then try: > > make install > > And then try: > > make -j2 install > > Note the difference. This fixes the problem: > > --- Makefile Thu Apr 19 11:33:04 2001 > +++ Makefile Thu Apr 19 11:36:20 2001 > @@ -8,6 +8,7 @@ > beforeinstall: .SILENT > cd ${.CURDIR}; \ > ${INSTALL} ${COPY} -m ${NOBINMODE} Makefile ${DESTDIR}/tmp > + cd ${.OBJDIR} > pwd > ${INSTALL} ${COPY} -m ${NOBINMODE} foo ${DESTDIR}/tmp > > I'm not sure if this a make(1) bug or a feature, as both NetBSD and > OpenBSD behave the same. But I'm pretty sure this is a bug. Will? This is a feature of parallel make. Parallel make combines all of the commands for each target into a single shell command (if possible?). Thus `cd's in one command affect subsequent commands. This feature can be controlled using the undocumented .SINGLESHELL directive. Unfortunately, the implementation of .SINGLESHELL is too primitive for .SINGELSHELL to be worth using. Using it is equivalent to using -B to turn off -j. This has caused problems before. See the log message for rev.1.177 of src/Makefile for a more complicated example. (The problem for `cd's is obvious compared with the one for `&&'s. In the example in log message, the point of the `cd's is to maximise the damage caused by combining non- -j-aware commands. Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: make -jn ?
According to Bob Bishop: > Hmm. -j3 still fails here, in the usual place. Even -j2 failed here. I completed a "make world" at around 15H GMT (suppoed minutes before) w/o any problem and the machine is now happily running an egcs-compiled kernel. Congrats again David. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- robe...@keltia.freenix.fr FreeBSD keltia.freenix.fr 4.0-CURRENT #70: Sat Feb 27 09:43:08 CET 1999 To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: make -jn ?
> Hmm. -j3 still fails here, in the usual place. I haven't even started looking at the -j problem. There is still some bootstrap problem with C++ (appears to be in libstdc++). Sorry. (of course patches gladly accepted :-) ) -- -- David(obr...@nuxi.com -or- obr...@freebsd.org) To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: make -jn ?
At 4:54 pm + 5/4/99, eagle wrote: >On Mon, 5 Apr 1999, eagle wrote: > >> I'm running a test build at -j3 now following the reccomended ncpus +1 >> formula everything looks great so far. if it fails i'll let you know >> >> rob >> >> >build completed successfully will experment some more Hmm. -j3 still fails here, in the usual place. -- Bob Bishop (0118) 977 4017 international code +44 118 r...@gid.co.ukfax (0118) 989 4254 between 0800 and 1800 UK To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: make -jn ?
On Mon, 5 Apr 1999, eagle wrote: > > On Mon, 5 Apr 1999, Bob Bishop wrote: > > > > > World builds OK here now, kernel, bootblocks and all. Good job! > > > > > > Is `make -jn' safe yet? Could turn these test builds round a lot faster > > > :-) > > > > > > > I'm running a test build at -j3 now following the reccomended ncpus +1 > > formula everything looks great so far. if it fails i'll let you know > build completed successfully will experment some more > make -j anything greater than 3 fails rob To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: make -jn ?
On Mon, 5 Apr 1999, eagle wrote: > > > On Mon, 5 Apr 1999, Bob Bishop wrote: > > > World builds OK here now, kernel, bootblocks and all. Good job! > > > > Is `make -jn' safe yet? Could turn these test builds round a lot faster :-) > > > > I'm running a test build at -j3 now following the reccomended ncpus +1 > formula everything looks great so far. if it fails i'll let you know > > rob > > build completed successfully will experment some more rob To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: make -jn ?
On Mon, 5 Apr 1999, Bob Bishop wrote: > World builds OK here now, kernel, bootblocks and all. Good job! > > Is `make -jn' safe yet? Could turn these test builds round a lot faster :-) > I'm running a test build at -j3 now following the reccomended ncpus +1 formula everything looks great so far. if it fails i'll let you know rob To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: make -jn ?
It seems Bob Bishop wrote: > World builds OK here now, kernel, bootblocks and all. Good job! > > Is `make -jn' safe yet? Could turn these test builds round a lot faster :-) Nope... ===> cc_int make: don't know how to make insn-attrtab.c. Stop *** Error code 2 -Søren To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message