From owner-freebsd-current Thu Jan 7 21:48:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA07317 for freebsd-current-outgoing; Thu, 7 Jan 1999 21:48:15 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA07311 for ; Thu, 7 Jan 1999 21:48:13 -0800 (PST) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.8]) by lamb.sas.com (8.9.1/8.9.1) with SMTP id AAA27805 for ; Fri, 8 Jan 1999 00:47:43 -0500 (EST) Received: from bb01f39.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA25225; Fri, 8 Jan 1999 00:47:42 -0500 Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.9.1/8.9.1) id AAA32786 for freebsd-current@freebsd.org; Fri, 8 Jan 1999 00:47:42 -0500 (EST) (envelope-from jwd) From: "John W. DeBoskey" Message-Id: <199901080547.AAA32786@bb01f39.unx.sas.com> Subject: Crunchgen during make release (failure) To: freebsd-current@FreeBSD.ORG Date: Fri, 8 Jan 1999 00:47:42 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have been getting the following the last 2 nights while running a make release: rm -rf /R/stage/crunch mkdir -p /R/stage/crunch export RELEASE_BUILD_FIXIT=noway ; for j in boot fixit ; do rm -rf ${j}_crunch && mkdir ${j}_crunch && ( cd ${j}_crunch && crunchgen /usr/src/release/${j}_crunch.conf && make -DRELEASE_CRUNCH -f ${j}_crunch.mk subclean all NOCRYPT=yes "CFLAGS=-O -pipe -DCRUNCHED_BINARY") && mv ${j}_crunch/${j}_crunch /R/stage/crunch/${j} && true || { rm -rf ${j}_crunch ; false ; } ; done Run "make -f boot_crunch.mk objs exe" to build crunched binary. /usr/src/bin/sh: permission denied "boot_crunch.mk", line 21: warning: "/usr/src/bin/sh" returned non-zero status (cd && make clean) make: don't know how to make clean. Stop *** Error code 2 Note the last 'cd' command has no directory target... Well, in boot_crunch.mk, line 21 is: sh_SRCDIR=/usr/src/bin/sh if I change it to: sh_SRCDIR=echo /usr/src/bin/sh then everything works correctly. I guess there is something about make that I don't understand... The above variable assignment is acting like '!=' instead of just '='. Could someone please shed some light on what is happenning here? This is on a -current system with a /snap/release area built from scratch as of 8 hours ago. Thanks! John The top of boot_crunch.mk follows: (sh_clean is the failing target) -------------------------------------------------------------------------- # boot_crunch.mk - generated from /usr/src/release/boot_crunch.conf by crunchgen 0.2 LIBS= -ll -ledit -lutil -lkvm -lmd -lcrypt -lftpio -lz -ldialog -lncurses -lmyti nfo -L/usr/src/release/libdisk/obj -ldisk -lipx CRUNCHED_OBJS= sh.lo find.lo pwd.lo ppp.lo sysinstall.lo newfs.lo minigzip.lo cp io.lo bad144.lo fsck.lo ifconfig.lo route.lo slattach.lo mount_nfs.lo SUBMAKE_TARGETS= sh_make find_make pwd_make ppp_make sysinstall_make newfs_make minigzip_make cpio_make bad144_make fsck_make ifconfig_make route_make slattach_ make mount_nfs_make SUBCLEAN_TARGETS= sh_clean find_clean pwd_clean ppp_clean sysinstall_clean newfs _clean minigzip_clean cpio_clean bad144_clean fsck_clean ifconfig_clean route_cl ean slattach_clean mount_nfs_clean boot_crunch: boot_crunch.o $(CRUNCHED_OBJS) $(CC) -static -o boot_crunch boot_crunch.o $(CRUNCHED_OBJS) $(LIBS) strip boot_crunch all: objs exe objs: $(SUBMAKE_TARGETS) exe: boot_crunch realclean: clean subclean clean: rm -f boot_crunch *.lo *.o *_stub.c subclean: $(SUBCLEAN_TARGETS) # -------- sh sh_SRCDIR=echo /usr/src/bin/sh sh_OBJS= alias.o arith.o arith_lex.o cd.o echo.o error.o eval.o exec.o expand.o histedit.o input.o jobs.o mail.o main.o memalloc.o miscbltin.o mystring.o option s.o output.o parser.o printf.o redir.o show.o trap.o var.o builtins.o init.o nod es.o syntax.o sh_make: (cd $(sh_SRCDIR) && make depend && make $(sh_OBJS)) sh_clean: (cd $(sh_SRCDIR) && make clean) -------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message