Re: addendum - several modules failing to be built - all related to pccarddevs.h

From: Bill Fumerola <billf_at_FreeBSD.org>
Date: Fri, 4 Jun 2004 13:58:38 -0700
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_at_yahoo-inc.com / billf_at_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 _at_ 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
_at_ -> /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys
machine -> /usr/home/fumerola/malaise/vendor/freebsd_5/src/sys/i386/include
awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
touch opt_cam.h
cc -O -pipe -march=pentium4  -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I. -I_at_ -I_at_/../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 _at_/tools/makeobjops.awk _at_/dev/pccard/card_if.m -h
make: don't know how to make _at_/dev/pccard/pccarddevs.h. Stop
[choker.corp.yahoo(p4)-fumerola Fri04/13:33:28]
[ SECURE !8 ]% make depend                                   (/sys/modules/aic)
awk -f _at_/tools/makeobjops.awk _at_/dev/pci/pci_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/isa/isa_if.m -h
awk -f _at_/tools/pccarddevs2h.awk _at_/dev/pccard/pccarddevs
touch opt_scsi.h
rm -f .depend
mkdep -f .depend -a   -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I_at_ -I_at_/../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_at_ -I_at_/../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_at_ -I_at_/../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 ]%    
Received on Fri Jun 04 2004 - 11:58:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:56 UTC