Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 2004 13:58:38 -0700
From:      Bill Fumerola <billf@FreeBSD.org>
To:        "P.D. Seniura" <pdseniura@techie.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: addendum - several modules failing to be built - all related to pccarddevs.h
Message-ID:  <20040604205838.GG80705@elvis.mu.org>
In-Reply-To: <20040604183801.3E3C0790037@ws1-14.us4.outblaze.com>
References:  <20040604183801.3E3C0790037@ws1-14.us4.outblaze.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 04, 2004 at 09:42:25PM +0300, Ruslan Ermilov wrote:
> FWIW, running ``make depend'' is almost always optional.

except when it's not, apparently.

On Fri, Jun 04, 2004 at 12:38:01PM -0600, P.D. Seniura wrote:
> The 'make buildworld' did that.
> The log shown was a "re-run".
> No other patches/updates were applied in-between.

make buildworld builds in the objdir (/usr/obj/blah). when you build
within /sys/modules/ you're no longer building in the objdir.

so here's a thought: try it before telling me i'm wrong. i did.

-- 
- bill fumerola / fumerola@yahoo-inc.com / billf@FreeBSD.org


[ SECURE !6 ]% make clean                                    (/sys/modules/aic)
rm -f /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic/export_syms aic.ko aic.kld aic.o aic_pccard.o aic_isa.o @ machine symb.tmp tmp.o opt_cam.h opt_scsi.h bus_if.h device_if.h isa_if.h card_if.h pci_if.h pccarddevs.h
[choker.corp.yahoo(p4)-fumerola Fri04/13:33:23]
[ SECURE !7 ]% make                                          (/sys/modules/aic)
Warning: Object directory not changed from original /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic
@ -> /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys
machine -> /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
touch opt_cam.h
cc -O -pipe -march=pentium4  -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/../include -I/usr/include -finline-limit=8000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/dev/aic/aic.c
awk -f @/tools/makeobjops.awk @/dev/pccard/card_if.m -h
make: don't know how to make @/dev/pccard/pccarddevs.h. Stop
[choker.corp.yahoo(p4)-fumerola Fri04/13:33:28]
[ SECURE !8 ]% make depend                                   (/sys/modules/aic)
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/makeobjops.awk @/isa/isa_if.m -h
awk -f @/tools/pccarddevs2h.awk @/dev/pccard/pccarddevs
touch opt_scsi.h
rm -f .depend
mkdep -f .depend -a   -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@ -I@/../include /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic/../../dev/aic/aic.c /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic/../../dev/aic/aic_pccard.c /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic/../../dev/aic/aic_isa.c
[choker.corp.yahoo(p4)-fumerola Fri04/13:33:32]
[ SECURE !9 ]% make                                          (/sys/modules/aic)
Warning: Object directory not changed from original /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic
cc -O -pipe -march=pentium4  -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/../include -finline-limit=8000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/dev/aic/aic_pccard.c
cc -O -pipe -march=pentium4  -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/../include -finline-limit=8000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/dev/aic/aic_isa.c
ld  -d -warn-common -r -d -o aic.kld aic.o aic_pccard.o aic_isa.o
touch /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic/export_syms
awk -f /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic/../../conf/kmod_syms.awk aic.kld  /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/modules/aic/export_syms |  xargs -J% objcopy % aic.kld
ld -Bshareable  -d -warn-common -o aic.ko aic.kld
objcopy --strip-debug aic.ko
[choker.corp.yahoo(p4)-fumerola Fri04/13:34:56]
[ SECURE !10 ]%    



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