Hi, I've recvsuped and removed /usr/src and /usr/obj, same symtoms in RELENG_5 and RELENG_5_3. Is this expected/known? -------------------------------------------------------------->>> stage 1.2: bootstrap tools-------------------------------------------------------------- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386 INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin WORLDTMP=/usr/obj/usr/src/i386 MAKEFLAGS="-m /usr/src/tools/build/mk -D ALWAYS_CHECK_MAKE -m /usr/src/share/mk" make -f Makefile.inc1 DESTDIR= BOOTSTRAPPING=503001 -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools ===> games/fortune/strfile /usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for /usr/src/games/fortune/strfile rm -f .depend mkdep -f .depend -a -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend cc -O -pipe -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c cc -O -pipe -I/usr/obj/usr/src/i386/legacy/usr/include -static -L/usr/obj/usr/src/i386/legacy/usr/lib -o strfile strfile.o -legacy sh /usr/src/tools/install.sh "" -o root -g wheel -m 555 strfile /usr/obj/usr/src/i386/legacy/usr/games install: /usr/obj/usr/src/i386/legacy/usr/games/strfile: chown/chgrp: Operation not permitted *** Error code 71 Stop in /usr/src/games/fortune/strfile. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. How do I get it to work again? Why is strfile a needed to boostrap the build? tks -- pica
On Tue, Nov 09, 2004 at 08:00:57PM +0100, Joan Picanyol wrote:> sh /usr/src/tools/install.sh "" -o root -g wheel -m 555 strfile /usr/obj/usr/src/i386/legacy/usr/games > install: /usr/obj/usr/src/i386/legacy/usr/games/strfile: chown/chgrp: Operation not permitted > *** Error code 71You are not the owner of that directory?> How do I get it to work again?Build with an objdir that you own completely.> Why is strfile a needed to boostrap the > build?Because otherwise the build will fail when upgrading from certain versions of FreeBSD. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041109/12fbcaf3/attachment.bin
On 2004-11-09 at 20:00:57 Joan Picanyol wrote:>===>> games/fortune/strfile...> sh /usr/src/tools/install.sh "" -o root -g wheel -m 555 strfile > /usr/obj/usr/src/i386/legacy/usr/games > install: /usr/obj/usr/src/i386/legacy/usr/games/strfile: > chown/chgrp: Operation not permitted > *** Error code 71This is actually a quirk of the install.sh script that is used. It discards any unwanted install options (see the script itself for the details), but that fails if the first argument is "", as it is in your case. It seems install.sh is run from bsd.prog.mk, as follows: ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR} So I guess that you've managed to set ${STRIP} to "", for some reason. Try unsetting it, or setting it to -s if you like, and run buildworld again. As a comparison, here's part of a (successful) buildworld log from one of my machines, from today: ===> games/fortune/strfile /usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for /usr/src/games/fortune/strfile rm -f .depend mkdep -f .depend -a -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend cc -O -pipe -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c cc -O -pipe -I/usr/obj/usr/src/i386/legacy/usr/include -static -L/usr/obj/usr/src/i386/legacy/usr/lib -o strfile strfile.o -le sh /usr/src/tools/install.sh -s -o root -g wheel -m 555 strfile /usr/obj/usr/src/i386/legacy/usr/games -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 183 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041110/2c7a54c3/attachment.bin
On Tue, Nov 09, 2004 at 08:00:57PM +0100, Joan Picanyol wrote:> Hi, > > I've recvsuped and removed /usr/src and /usr/obj, same symtoms in > RELENG_5 and RELENG_5_3. Is this expected/known? > > -------------------------------------------------------------- > >>> stage 1.2: bootstrap tools > -------------------------------------------------------------- > cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386 INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin WORLDTMP=/usr/obj/usr/src/i386 MAKEFLAGS="-m /usr/src/tools/build/mk -D ALWAYS_CHECK_MAKE -m /usr/src/share/mk" make -f Makefile.inc1 DESTDIR= BOOTSTRAPPING=503001 -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools > ===> games/fortune/strfile > /usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for /usr/src/games/fortune/strfile > rm -f .depend > mkdep -f .depend -a -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/games/fortune/strfile/strfile.c > echo strfile: /usr/lib/libc.a /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend > cc -O -pipe -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c > cc -O -pipe -I/usr/obj/usr/src/i386/legacy/usr/include -static -L/usr/obj/usr/src/i386/legacy/usr/lib -o strfile strfile.o -legacy > sh /usr/src/tools/install.sh "" -o root -g wheel -m 555 strfile /usr/obj/usr/src/i386/legacy/usr/games > install: /usr/obj/usr/src/i386/legacy/usr/games/strfile: chown/chgrp: Operation not permitted > *** Error code 71 > > Stop in /usr/src/games/fortune/strfile. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > How do I get it to work again? Why is strfile a needed to boostrap the > build? >This is due to you overriding the STRIP variable to ""; this causes src/tools/install.sh to *not* ignore the -o and -g options, as expected. If you really don't want to strip, just define STRIP to an empty value. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041110/bbcfc67e/attachment.bin
In message: <20041109190057.GA99585@grummit.biaix.org> Joan Picanyol <lists-freebsd-stable@biaix.org> writes: : Hi, : : I've recvsuped and removed /usr/src and /usr/obj, same symtoms in : RELENG_5 and RELENG_5_3. Is this expected/known? No. I've built many many many times w/o root, both current and RELENG_5 over the past few weeks... Warner