Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 1999 00:47:42 -0500 (EST)
From:      "John W. DeBoskey" <jwd@unx.sas.com>
To:        freebsd-current@FreeBSD.ORG
Subject:   Crunchgen during make release (failure)
Message-ID:  <199901080547.AAA32786@bb01f39.unx.sas.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901080547.AAA32786>