Re: why does buildworld fail on stable/11 ?

2018-01-26 Thread Ian Lepore
On Fri, 2018-01-26 at 09:52 +, Holger Kipp wrote:
> Dear Scott,
> 
> Am 26.01.2018 um 09:07 schrieb Scott Bennett 
> >:
> 
> cd /usr/src; PATH=/sbin:/bin:/usr/sbin:/usr/bin MAKE_CMD=make 
> /usr/obj/usr/src/make.amd64/bmake -m /usr/src/share/mk -f Makefile.inc1 
> TARGET=amd64 TARGET_ARCH=amd64 MK_META_MODE=no cleandir
> bmake: illegal argument to d option -- p
> 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 ...]
> *** Error code 2
> 
> Stop.
> make: stopped in /usr/src
> hellas# exit
> exit
> 
> Script done on Fri Jan 26 01:33:18 2018
> 
> 
>  Scott Bennett, Comm. ASMELG, CFIAG
> 
> This sound similar to an issue with make in 2013:
> 
> 20130613:
> Some people report the following error after the switch to bmake:
> 
> make: illegal option -- J
> usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable]
> ...
> *** [buildworld] Error code 2
> 
> this likely due to an old instance of make in
> ${MAKEPATH} (${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE})
> which src/Makefile will use that blindly, if it exists, so if
> you see the above error:
> 
> rm -rf `make -V MAKEPATH`
> 
> should resolve it.
> 
> Can you check if you have an older version of make in your makepath and 
> delete / rename it?
> 

Yep, it's definitely running a bad old version of make, and the thought
that it's using /usr/obj/usr/src/make.amd64/bmake even though it's not
up to date fits the symptoms.  I'm a bit confused by the "rm -rf"
command at the end... when I do make -V MAKEPATH I get nothing, so the
rm command would just be an error -- since that's from UPDATING in
2013, I'm thinking it may be out of date advice now.

I think the right fix here is probably "rm -rf /usr/obj/*" followed by
a make buildworld.

-- Ian
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: why does buildworld fail on stable/11 ?

2018-01-26 Thread Holger Kipp
Dear Scott,

Am 26.01.2018 um 09:07 schrieb Scott Bennett 
mailto:benn...@sdf.org>>:

cd /usr/src; PATH=/sbin:/bin:/usr/sbin:/usr/bin MAKE_CMD=make 
/usr/obj/usr/src/make.amd64/bmake -m /usr/src/share/mk -f Makefile.inc1 
TARGET=amd64 TARGET_ARCH=amd64 MK_META_MODE=no cleandir
bmake: illegal argument to d option -- p
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 ...]
*** Error code 2

Stop.
make: stopped in /usr/src
hellas# exit
exit

Script done on Fri Jan 26 01:33:18 2018


 Scott Bennett, Comm. ASMELG, CFIAG

This sound similar to an issue with make in 2013:

20130613:
Some people report the following error after the switch to bmake:

make: illegal option -- J
usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable]
...
*** [buildworld] Error code 2

this likely due to an old instance of make in
${MAKEPATH} (${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE})
which src/Makefile will use that blindly, if it exists, so if
you see the above error:

rm -rf `make -V MAKEPATH`

should resolve it.

Can you check if you have an older version of make in your makepath and delete 
/ rename it?

Best regards,
Holger



Diplom-Mathematiker
Holger Kipp
Senior Consultant   [When logistics needs SAP competence] 


Fon: +49 30 436 58 114
Fax: +49 30 436 58 214
Mobil:?+49 178 36 58 114
alogis AG
Alt-Moabit 90 B
10559 Berlin


holger.k...@alogis.com  www.alogis.com

alogis AG
Sitz/Registergericht: Berlin/AG Charlottenburg, HRB 71484
Vorstand: Arne Friedrichs, Joern Samuelson
Aufsichtsratsvorsitzender: Dirk Nedderhoff


[Spenden statt schenken mit 
alogis!]

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: why does buildworld fail on stable/11 ?

2018-01-26 Thread Scott Bennett
Ian Lepore  wrote:

> On Thu, 2018-01-25 at 00:25 -0600, Scott Bennett wrote:
> > Ian Lepore  wrote:
> > 
> > > 
> > > On Wed, 2018-01-24 at 12:39 +0100, Dimitry Andric wrote:
> > > > 
> > > > On 24 Jan 2018, at 09:51, Scott Bennett  wrote:
> > > > > 
> > > > > 
> > > > > 
> > > > > Subject: Re: why does buildworld fail on stable/11 ?
> > > > > 
> > > > > I wrote:
> > > > > > 
> > > > > > 
> > > > > > ???On Mon, 22 Jan 2018 12:42:58 + lists  wrote:
> > > > > > > 
> > > > > > > 
> > > > > > > On 22/01/2018 09:17, Scott Bennett wrote:
> > > > > > > > 
> > > > > > > > 
> > > > > > > > ???Anyway, I'm stuck.??Can someone please tell me what is going 
> > > > > > > > wrong and
> > > > > > > > how to fix it???I'd really like to be able to update my system, 
> > > > > > > > not only to
> > > > > > > > keep it reasonably current, but also to be able to customize a 
> > > > > > > > kernel.??Thanks
> > > > > > > > in advance for any suggestions/solutions.
> > > > > [much deleted??--SB]
> > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > then
> > > > > > > 
> > > > > > > [/usr/src #] make cleandir && make clean && make buildworld && 
> > > > > > > make
> > > > > > > buildkernel && make installkernel && mergemaster -p
> > > > > > ???At this point, that looks very optimistic, to say the least. 
> > > > > > :-)??I've
> > > > > > tried "make cleanworld" (with /etc/make.conf still in place), and 
> > > > > > it failed
> > > > > > exactly like the buildworld example I posted before.
> > > > > Okay.??Here's what happened.
> > > > > 
> > > > > Script started on Wed Jan 24 02:17:30 2018
> > > > > hellas#   mv /etc/make.conf{,.save}
> > > > > hellas#   mv /etc/src.conf{,.save}
> > > > > hellas#   cd /usr/src
> > > > > hellas#   make cleandir
> > > > > "/usr/src/share/mk/local.sys.mk", line 51: Malformed conditional 
> > > > > (${.MAKE.MODE:Mmeta*} != "")
> > > > > "/usr/src/share/mk/local.sys.mk", line 58: Malformed conditional 
> > > > > (${.MAKE.MODE:Mnofilemon} == "")
> > > > > "/usr/src/share/mk/local.sys.mk", line 76: if-less else
> > > > > "/usr/src/share/mk/local.sys.mk", line 79: if-less endif
> > > > > "/usr/src/share/mk/sys.mk", line 476: if-less endif
> > > > > bmake: fatal errors encountered -- cannot continue
> > > > Looks like your make is broken.??What is the output of "which make"?
> > > > 
> > > > -Dimitry
> > > > 
> > > And also the output of "make -V MAKE_VERSION". ?To me, this looks a lot
> > > like what happens when you try to use old fmake from freebsd 8 to build
> > > modern freebsd source.
> > > 
> > hellas# make -V MAKE_VERSION
> > 20170720
> > hellas#
>
> Well, that kills the wrong-version theory. ?The thing I would try next
> is setting some make debug flags, but it'll generate a ton of output.
>
> I'd start with "make -dlp cleandir" that should list everything it's
> doing while reading makefiles, and list any commands it executes.
> ?Capture that output (stdout and stderr), then a good first-look at the
> file might be something like "grep -v?ParseReadLine make.log", that
> should show us what files it's reading from which directories. ?My
> theory is maybe it's picking up a wrong include file somehow which
> leads it astray. ?If that's not it, we may need to also examine all the
> ParseReadLine stuff, or add some other debug flags.
>
 Okay.  If you really want all of it, let me know, and I'll email it
to you directly.  Here are the last 50 lines or so of it.

# .MAIN, flags 0, type 1, made 0
# _guard, flags 0, type 0, made 0
ParseDoDependency(_guard: .PHONY)
ParseDoDependency(world: .PHONY)
ParseDoDependency(kernel: buildkernel installkernel .PHONY)
# ParseLinkSrc: added child kernel - buildkernel
# kernel, flags 0, type 1, made 0
# buildkernel, flags 0, type 8010201, made 0
# ParseLinkSrc: added child kernel - installkernel
# kernel, flags 0, type 1, made 0
# installkernel, flags 0, type 8010201, made 0
ParseDoDependency(upgrade_checks: .PHONY)
ParseDoDependency(bmake: .PHONY)
ParseDoDependency(regress: .PHONY)
ParseDoDependency(tinderbox toolchains kernel-toolchains kernels worlds: 
upgrade_checks)
# ParseLinkSrc: added child tinderbox - upgrade_checks
# tinderbox, flags 0, type 201, made 0
# upgrade_checks, flags 0, type 10001, made 0
# ParseLinkSrc: added child toolchains - upgrade_checks
# toolchains, flags 0, type 201, made 0
# upgrade_checks, flags 0, type 10001, made 0
# ParseLinkSrc: added child kernel-toolchains - upgrade_checks
# kernel-toolchains, flags 0, type 201, made 0
# upgrade_checks, flags 0, type 10001, made 0
# ParseLinkSrc: added child kernels - upgrade_checks
# kernels, flags 0, type 1, made 0
# upgrade_checks, flags 0, type 10001, made 0
# ParseLinkSrc: added child worlds - upgrade_checks
# worlds, flags 0, type 1, made 0
# upgrade_checks, flags 0, type 10001, made 0
ParseDoDependency(tinderbox: .PHONY)
ParseDoDependency(toolchains: .PHONY)
ParseDoDependency(kernel-toolchains: .PHONY)
ParseDoDependency(kernels: .PHONY)
Pa