From eugen at kuzbass.ru Sat Aug 29 16:56:29 2009 From: eugen at kuzbass.ru (Eugene Grosbein) Date: Sat Aug 29 16:56:35 2009 Subject: 8.0-BETA3: make WITHOUT_INSTALLLIB=yes buildworld broken Message-ID: <20090829162248.GA6826@svzserv.kemerovo.su> Hi! WITHOUT_INSTALLLIB= knob is documented in src.conf(5) as feature useful for nanobsb build to skip *.a libraries. In 8.0-BETA3, make buildworld breaks in 3 seconds after start when this knob is used: cc -O2 -pipe -DNEED_SOLARIS_BOOLEAN -I/usr/local/src/cddl/usr.bin/sgsmsg/../../../sys/cddl/compat/opensolaris -I/usr/local/src/cddl/usr.bin/sgsmsg/../../../cddl/compat/opensolaris/include -I/usr/local/src/cddl/usr.bin/sgsmsg/../../../cddl/contrib/opensolaris/cmd/sgs/include -I/usr/local/src/cddl/usr.bin/sgsmsg/../../../sys/cddl/contrib/opensolaris/uts/common -DNEED_SOLARIS_BOOLEAN -Wno-unknown-pragmas -I/usr/obj/usr/local/src/tmp/legacy/usr/include -c /usr/local/src/cddl/usr.bin/sgsmsg/../../../cddl/contrib/opensolaris/cmd/sgs/tools/common/findprime.c make: don't know how to make /usr/obj/usr/local/src/tmp/legacy/usr/lib/libegacy.a. Stop *** Error code 2 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. From eugen at kuzbass.ru Sat Aug 29 17:34:47 2009 From: eugen at kuzbass.ru (Eugene Grosbein) Date: Sat Aug 29 17:34:54 2009 Subject: 8.0-BETA3/i386: make WITHOUT_TOOLCHAIN=yes buildworld broken Message-ID: <20090829173443.GA10192@svzserv.kemerovo.su> Hi! In 8.0-BETA3, make WITHOUT_TOOLCHAIN=yes buildworld breaks in 15 minutes after start: In file included from /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:32: /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:47:20: error: stddef.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:48:19: error: float.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:87:20: error: stdarg.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:96:19: error: errno.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:103:20: error: string.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:105:20: error: unistd.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:108:20: error: limits.h: No such file or directory /usr/local/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:111:18: error: time.h: No such file or directory [lots of extra errors skipped] Stop in /usr/local/src/gnu/lib/libgcc. *** Error code 1 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. *** Error code 1 Stop in /usr/local/src. From simon at FreeBSD.org Sat Aug 29 18:47:25 2009 From: simon at FreeBSD.org (Simon L. Nielsen) Date: Sat Aug 29 18:47:31 2009 Subject: 8.0-BETA3/i386: make WITHOUT_TOOLCHAIN=yes buildworld broken In-Reply-To: <20090829173443.GA10192@svzserv.kemerovo.su> References: <20090829173443.GA10192@svzserv.kemerovo.su> Message-ID: <20090829184723.GE1301@arthur.nitro.dk> On 2009.08.30 01:34:43 +0800, Eugene Grosbein wrote: > In 8.0-BETA3, make WITHOUT_TOOLCHAIN=yes buildworld breaks in 15 minutes > after start: I'm pretty sure WITHOUT_TOOLCHAIN=yes hasn't worked with buildworld since 7.x, so this is nothing new. You need to specify it with installworld, not buildworld. At least I ran into that with NanoBSD some time ago. But thanks for report in any case. -- Simon L. Nielsen From eugen at kuzbass.ru Sat Aug 29 19:08:48 2009 From: eugen at kuzbass.ru (Eugene Grosbein) Date: Sat Aug 29 19:10:13 2009 Subject: 8.0-BETA3/i386: make WITHOUT_TOOLCHAIN=yes buildworld broken In-Reply-To: <20090829184723.GE1301@arthur.nitro.dk> References: <20090829173443.GA10192@svzserv.kemerovo.su> <20090829184723.GE1301@arthur.nitro.dk> Message-ID: <20090829190845.GA22333@svzserv.kemerovo.su> On Sat, Aug 29, 2009 at 08:47:23PM +0200, Simon L. Nielsen wrote: > > In 8.0-BETA3, make WITHOUT_TOOLCHAIN=yes buildworld breaks in 15 minutes > > after start: > > I'm pretty sure WITHOUT_TOOLCHAIN=yes hasn't worked with buildworld > since 7.x, so this is nothing new. You need to specify it with > installworld, not buildworld. At least I ran into that with NanoBSD > some time ago. > > But thanks for report in any case. Then it should be ignored for buildworld target, shouldn't it? Eugene Grosbein From eugen at kuzbass.ru Sun Aug 30 11:37:56 2009 From: eugen at kuzbass.ru (Eugene Grosbein) Date: Sun Aug 30 11:38:03 2009 Subject: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module Message-ID: <200908301123.n7UBN6M7001670@kuzbass.ru> >Submitter-Id: current-users >Originator: Eugene Grosbein >Organization: Private person >Confidential: no >Synopsis: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module >Severity: serious >Priority: high >Category: kern >Class: sw-bug >Release: FreeBSD 8.0-BETA3 i386 >Environment: System: FreeBSD grosbein.pp.ru 8.0-BETA3 FreeBSD 8.0-BETA3 #6: Fri Aug 28 22:34:15 KRAST 2009 eugen@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386 >Description: NanoBSD does not builds: ===> sys/modules/sysvipc/sysvmsg (depend) machine -> /usr/local/src/sys/i386/include :> opt_sysvipc.h @ -> /usr/local/src/sys rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I. -I@ -I@/contrib/altq /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c:53:24: error: opt_compat.h: No such file or directory mkdep: compile failed *** Error code 1 >How-To-Repeat: Try to build NanoBSD. >Fix: Apply next patch to /usr/src: --- sys/modules/sysvipc/sysvmsg/Makefile.orig 2009-08-30 19:12:16.000000000 +0800 +++ sys/modules/sysvipc/sysvmsg/Makefile 2009-08-30 19:14:13.000000000 +0800 @@ -5,4 +5,11 @@ KMOD= sysvmsg SRCS= sysv_msg.c opt_sysvipc.h +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_FREEBSD8 1" > ${.TARGET} + +SRCS+= opt_compat.h +.endif + .include From eugen at kuzbass.ru Sun Aug 30 12:40:16 2009 From: eugen at kuzbass.ru (Eugene Grosbein) Date: Sun Aug 30 12:40:22 2009 Subject: kern/138341: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module In-Reply-To: <20090830123408.GC1306@gothic.blackend.org> References: <200908301123.n7UBN6M7001670@kuzbass.ru> <20090830123408.GC1306@gothic.blackend.org> Message-ID: <20090830124006.GA67685@svzserv.kemerovo.su> On Sun, Aug 30, 2009 at 02:34:08PM +0200, Marc Fonvieille wrote: > > ===> sys/modules/sysvipc/sysvmsg (depend) > > machine -> /usr/local/src/sys/i386/include > > :> opt_sysvipc.h > > @ -> /usr/local/src/sys > > rm -f .depend > > mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I. -I@ -I@/contrib/altq /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c > > /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c:53:24: error: opt_compat.h: No such file or directory > > mkdep: compile failed > > *** Error code 1 > > > > >How-To-Repeat: > > Try to build NanoBSD. > > > > >Fix: > > > > Apply next patch to /usr/src: > > > > --- sys/modules/sysvipc/sysvmsg/Makefile.orig 2009-08-30 19:12:16.000000000 +0800 > > +++ sys/modules/sysvipc/sysvmsg/Makefile 2009-08-30 19:14:13.000000000 +0800 > > @@ -5,4 +5,11 @@ > > KMOD= sysvmsg > > SRCS= sysv_msg.c opt_sysvipc.h > > > > +.if !defined(KERNBUILDDIR) > > +opt_compat.h: > > + echo "#define COMPAT_FREEBSD8 1" > ${.TARGET} > > + > > +SRCS+= opt_compat.h > > +.endif > > + > > .include > > > > > > I suspect it's the problem I met when I tried to do a > > make -DMODULES_WITH_WORLD="YES" buildworld > > and many modules were concerned. See the following patch: > > Index: sys/modules/dtrace/lockstat/Makefile > =================================================================== > --- sys/modules/dtrace/lockstat/Makefile (revision 196013) > +++ sys/modules/dtrace/lockstat/Makefile (working copy) > @@ -5,7 +5,7 @@ > KMOD= lockstat > SRCS= lockstat.c > > -SRCS+= vnode_if.h > +SRCS+= vnode_if.h opt_kdtrace.h > > CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ > -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ > Index: sys/modules/sysvipc/sysvsem/Makefile > =================================================================== > --- sys/modules/sysvipc/sysvsem/Makefile (revision 196013) > +++ sys/modules/sysvipc/sysvsem/Makefile (working copy) > @@ -3,6 +3,6 @@ > .PATH: ${.CURDIR}/../../../kern > > KMOD= sysvsem > -SRCS= sysv_sem.c opt_sysvipc.h > +SRCS= sysv_sem.c opt_sysvipc.h opt_compat.h > > .include > Index: sys/modules/sysvipc/sysvmsg/Makefile > =================================================================== > --- sys/modules/sysvipc/sysvmsg/Makefile (revision 196013) > +++ sys/modules/sysvipc/sysvmsg/Makefile (working copy) > @@ -3,6 +3,6 @@ > .PATH: ${.CURDIR}/../../../kern > > KMOD= sysvmsg > -SRCS= sysv_msg.c opt_sysvipc.h > +SRCS= sysv_msg.c opt_sysvipc.h opt_compat.h > > .include > You are right, other modules are concerned and your patch is more complete and correct. Vote for commit :-) Eugene Grosbein From blackend at FreeBSD.org Sun Aug 30 12:45:28 2009 From: blackend at FreeBSD.org (Marc Fonvieille) Date: Sun Aug 30 12:45:35 2009 Subject: kern/138341: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module In-Reply-To: <200908301123.n7UBN6M7001670@kuzbass.ru> References: <200908301123.n7UBN6M7001670@kuzbass.ru> Message-ID: <20090830123408.GC1306@gothic.blackend.org> On Sun, Aug 30, 2009 at 07:23:06PM +0800, Eugene Grosbein wrote: > > >Number: 138341 > >Category: kern > >Synopsis: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module > >Confidential: no > >Severity: serious > >Priority: high > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Aug 30 11:40:02 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Eugene Grosbein > >Release: FreeBSD 8.0-BETA3 i386 > >Organization: > Private person > >Environment: > System: FreeBSD grosbein.pp.ru 8.0-BETA3 FreeBSD 8.0-BETA3 #6: Fri Aug 28 22:34:15 KRAST 2009 eugen@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386 > > >Description: > > NanoBSD does not builds: > > ===> sys/modules/sysvipc/sysvmsg (depend) > machine -> /usr/local/src/sys/i386/include > :> opt_sysvipc.h > @ -> /usr/local/src/sys > rm -f .depend > mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I. -I@ -I@/contrib/altq /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c > /usr/local/src/sys/modules/sysvipc/sysvmsg/../../../kern/sysv_msg.c:53:24: error: opt_compat.h: No such file or directory > mkdep: compile failed > *** Error code 1 > > >How-To-Repeat: > Try to build NanoBSD. > > >Fix: > > Apply next patch to /usr/src: > > --- sys/modules/sysvipc/sysvmsg/Makefile.orig 2009-08-30 19:12:16.000000000 +0800 > +++ sys/modules/sysvipc/sysvmsg/Makefile 2009-08-30 19:14:13.000000000 +0800 > @@ -5,4 +5,11 @@ > KMOD= sysvmsg > SRCS= sysv_msg.c opt_sysvipc.h > > +.if !defined(KERNBUILDDIR) > +opt_compat.h: > + echo "#define COMPAT_FREEBSD8 1" > ${.TARGET} > + > +SRCS+= opt_compat.h > +.endif > + > .include > > I suspect it's the problem I met when I tried to do a make -DMODULES_WITH_WORLD="YES" buildworld and many modules were concerned. See the following patch: Index: sys/modules/dtrace/lockstat/Makefile =================================================================== --- sys/modules/dtrace/lockstat/Makefile (revision 196013) +++ sys/modules/dtrace/lockstat/Makefile (working copy) @@ -5,7 +5,7 @@ KMOD= lockstat SRCS= lockstat.c -SRCS+= vnode_if.h +SRCS+= vnode_if.h opt_kdtrace.h CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ Index: sys/modules/sysvipc/sysvsem/Makefile =================================================================== --- sys/modules/sysvipc/sysvsem/Makefile (revision 196013) +++ sys/modules/sysvipc/sysvsem/Makefile (working copy) @@ -3,6 +3,6 @@ .PATH: ${.CURDIR}/../../../kern KMOD= sysvsem -SRCS= sysv_sem.c opt_sysvipc.h +SRCS= sysv_sem.c opt_sysvipc.h opt_compat.h .include Index: sys/modules/sysvipc/sysvmsg/Makefile =================================================================== --- sys/modules/sysvipc/sysvmsg/Makefile (revision 196013) +++ sys/modules/sysvipc/sysvmsg/Makefile (working copy) @@ -3,6 +3,6 @@ .PATH: ${.CURDIR}/../../../kern KMOD= sysvmsg -SRCS= sysv_msg.c opt_sysvipc.h +SRCS= sysv_msg.c opt_sysvipc.h opt_compat.h .include -- Marc From blackend at FreeBSD.org Sun Aug 30 13:16:31 2009 From: blackend at FreeBSD.org (Marc Fonvieille) Date: Sun Aug 30 13:16:36 2009 Subject: kern/138341: [patch] 8.0-BETA3: nanobsd build broken due to sysipc kernel module In-Reply-To: <20090830124006.GA67685@svzserv.kemerovo.su> References: <200908301123.n7UBN6M7001670@kuzbass.ru> <20090830123408.GC1306@gothic.blackend.org> <20090830124006.GA67685@svzserv.kemerovo.su> Message-ID: <20090830131625.GA24582@abigail.blackend.org> On Sun, Aug 30, 2009 at 08:40:07PM +0800, Eugene Grosbein wrote: > > > > I suspect it's the problem I met when I tried to do a > > > > make -DMODULES_WITH_WORLD="YES" buildworld > > > > and many modules were concerned. See the following patch: > > > > Index: sys/modules/dtrace/lockstat/Makefile > > =================================================================== > > --- sys/modules/dtrace/lockstat/Makefile (revision 196013) > > +++ sys/modules/dtrace/lockstat/Makefile (working copy) > > @@ -5,7 +5,7 @@ > > KMOD= lockstat > > SRCS= lockstat.c > > > > -SRCS+= vnode_if.h > > +SRCS+= vnode_if.h opt_kdtrace.h > > > > CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ > > -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ > > Index: sys/modules/sysvipc/sysvsem/Makefile > > =================================================================== > > --- sys/modules/sysvipc/sysvsem/Makefile (revision 196013) > > +++ sys/modules/sysvipc/sysvsem/Makefile (working copy) > > @@ -3,6 +3,6 @@ > > .PATH: ${.CURDIR}/../../../kern > > > > KMOD= sysvsem > > -SRCS= sysv_sem.c opt_sysvipc.h > > +SRCS= sysv_sem.c opt_sysvipc.h opt_compat.h > > > > .include > > Index: sys/modules/sysvipc/sysvmsg/Makefile > > =================================================================== > > --- sys/modules/sysvipc/sysvmsg/Makefile (revision 196013) > > +++ sys/modules/sysvipc/sysvmsg/Makefile (working copy) > > @@ -3,6 +3,6 @@ > > .PATH: ${.CURDIR}/../../../kern > > > > KMOD= sysvmsg > > -SRCS= sysv_msg.c opt_sysvipc.h > > +SRCS= sysv_msg.c opt_sysvipc.h opt_compat.h > > > > .include > > > > You are right, other modules are concerned and your patch is more complete > and correct. Vote for commit :-) > For info this unbreak things for most of archs but mips and arm which need more work in sys/modules/Makefile. However we can already commit this patch. -- Marc From bms at incunabulum.net Mon Aug 31 11:45:55 2009 From: bms at incunabulum.net (Bruce Simpson) Date: Mon Aug 31 11:46:06 2009 Subject: 8.0-BETA3/i386: make WITHOUT_TOOLCHAIN=yes buildworld broken In-Reply-To: <20090829184723.GE1301@arthur.nitro.dk> References: <20090829173443.GA10192@svzserv.kemerovo.su> <20090829184723.GE1301@arthur.nitro.dk> Message-ID: <4A9BB556.9010901@incunabulum.net> Simon L. Nielsen wrote: > I'm pretty sure WITHOUT_TOOLCHAIN=yes hasn't worked with buildworld > since 7.x, so this is nothing new. You need to specify it with > installworld, not buildworld. At least I ran into that with NanoBSD > some time ago. > Any chance we could get the C++ runtime coaxed away from under this option? Just now, to get libstdc++, I have to ship binutils too in a NanoBSD install... From jhb at freebsd.org Mon Aug 31 12:23:58 2009 From: jhb at freebsd.org (John Baldwin) Date: Mon Aug 31 12:24:14 2009 Subject: 8.0-BETA3/i386: make WITHOUT_TOOLCHAIN=yes buildworld broken In-Reply-To: <20090829190845.GA22333@svzserv.kemerovo.su> References: <20090829173443.GA10192@svzserv.kemerovo.su> <20090829184723.GE1301@arthur.nitro.dk> <20090829190845.GA22333@svzserv.kemerovo.su> Message-ID: <200908310806.04614.jhb@freebsd.org> On Saturday 29 August 2009 3:08:45 pm Eugene Grosbein wrote: > On Sat, Aug 29, 2009 at 08:47:23PM +0200, Simon L. Nielsen wrote: > > > > In 8.0-BETA3, make WITHOUT_TOOLCHAIN=yes buildworld breaks in 15 minutes > > > after start: > > > > I'm pretty sure WITHOUT_TOOLCHAIN=yes hasn't worked with buildworld > > since 7.x, so this is nothing new. You need to specify it with > > installworld, not buildworld. At least I ran into that with NanoBSD > > some time ago. > > > > But thanks for report in any case. > > Then it should be ignored for buildworld target, shouldn't it? I think that is sort of difficult to do (or at least very messy) as usually the WITH/WITHOUT options just ignore subdirectories for all targets rather than only doing so for certain targets. -- John Baldwin From jhb at freebsd.org Mon Aug 31 12:23:58 2009 From: jhb at freebsd.org (John Baldwin) Date: Mon Aug 31 12:24:14 2009 Subject: 8.0-BETA3/i386: make WITHOUT_TOOLCHAIN=yes buildworld broken In-Reply-To: <20090829190845.GA22333@svzserv.kemerovo.su> References: <20090829173443.GA10192@svzserv.kemerovo.su> <20090829184723.GE1301@arthur.nitro.dk> <20090829190845.GA22333@svzserv.kemerovo.su> Message-ID: <200908310806.04614.jhb@freebsd.org> On Saturday 29 August 2009 3:08:45 pm Eugene Grosbein wrote: > On Sat, Aug 29, 2009 at 08:47:23PM +0200, Simon L. Nielsen wrote: > > > > In 8.0-BETA3, make WITHOUT_TOOLCHAIN=yes buildworld breaks in 15 minutes > > > after start: > > > > I'm pretty sure WITHOUT_TOOLCHAIN=yes hasn't worked with buildworld > > since 7.x, so this is nothing new. You need to specify it with > > installworld, not buildworld. At least I ran into that with NanoBSD > > some time ago. > > > > But thanks for report in any case. > > Then it should be ignored for buildworld target, shouldn't it? I think that is sort of difficult to do (or at least very messy) as usually the WITH/WITHOUT options just ignore subdirectories for all targets rather than only doing so for certain targets. -- John Baldwin