DragonFly BSD
DragonFly users List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Build problems - both release and stable


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Wed, 13 Oct 2004 01:07:39 +0900

On Tue, Oct 12, 2004 at 03:36:12PM +0900, YONETANI Tomokazu wrote:
> > Buildworld then went fine.  Building a GENERIC kernel, though:
> > # make buildkernel KERNCONF=GENERIC
> > /usr/obj/usr/src/sys/GENERIC/usr/src/sys/libiconv created for /usr/src/sys/libiconv
> > ===> bus
> > ===> bus/cam
> > ===> bus/cam/scsi
> > @ -> /usr/src/sys/bus/cam/scsi/../../..
> > machine -> /usr/src/sys/bus/cam/scsi/../../../i386/include
> > i386 ->
> 
> The `i386 ->' is suspicious. Any chance you have
> 
> ARCH=i386
> 
> in your /etc/make.conf? If so, please try commenting it out.

Or maybe an environment variable named $ARCH. In either way,
`make depend' in /sys/bus/cam/scsi breaks this way:

|$ export MAKEOBJDIRPREFIX=$HOME/obj
|$ cd /sys/bus/cam/scsi
|$ make -s obj && env ARCH=i386 make depend
|@ -> /home/source/dragonfly/current/src/sys/bus/cam/scsi/../../..
|machine -> /home/source/dragonfly/current/src/sys/bus/cam/scsi/../../../i386/include
|i386 ->
|touch opt_ddb.h
|touch opt_scsi.h
|touch opt_cam.h
|awk -f @/tools/makeobjops.awk -- -h @/kern/bus_if.m
|awk -f @/tools/makeobjops.awk -- -h @/kern/device_if.m
|rm -f .depend
|mkdep -f .depend -a   -nostdinc -D_KERNEL -DKLD_MODULE -I. -I@ -I@/../include -I/usr/include  /home/source/dragonfly/current/src/sys/bus/cam/scsi/scsi_low.c /home/source/dragonfly/current/src/sys/bus/cam/scsi/scsi_low_pisa.c
|In file included from /home/source/dragonfly/current/src/sys/bus/cam/scsi/scsi_low.c:82:
|@/bus/cam/scsi/scsi_low.h:58:29: ./i386/isa/ccbque.h: Too many levels of symbolic links
|In file included from /home/source/dragonfly/current/src/sys/bus/cam/scsi/scsi_low_pisa.c:45:
|@/bus/cam/scsi/scsi_low.h:58:29: ./i386/isa/ccbque.h: Too many levels of symbolic links
|mkdep: compile failed
|*** Error code 1
|
|Stop in /home/source/dragonfly/current/src/sys/bus/cam/scsi.

The following modification to kmod.mk catch this and displays an error
message a little easier to track down.

Index: sys/conf/kmod.mk
===================================================================
RCS file: /home/source/dragonfly/cvs/src/sys/conf/kmod.mk,v
retrieving revision 1.16
diff -u -r1.16 kmod.mk
--- sys/conf/kmod.mk	17 Aug 2004 18:57:30 -0000	1.16
+++ sys/conf/kmod.mk	12 Oct 2004 15:59:52 -0000
@@ -168,6 +168,8 @@
 		path=${SYSDIR} ;; \
 	arch_*) \
 		path=${.CURDIR}/${MACHINE_ARCH} ;; \
+	*) \
+		echo "Unknown target \`${.TARGET}' in _ILINKS"; false;; \
 	esac ; \
 	${ECHO} ${.TARGET} "->" $$path ; \
 	ln -s $$path ${.TARGET}



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]