Cannot make depend without USB?

Garrett Cooper youshi10 at u.washington.edu
Thu Oct 5 10:53:56 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

up at 3.am wrote:
> Hi:
> 
> I'm trying to recompile a 6.2-PRERELEASE kernel without USB support.
> After commenting out the USB devices in the kernel config file, and doing
> a "make cleandepend" in the kernel source directory, I get this when
> trying to do a "make depend":
> 
> (excerpt):
> 
> rm -f .newdep
> make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES |  MKDEP_CPP="cc -E" CC="cc"
> xargs mkdep -a -f .newdep -O -pipe  -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I.
> -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter
> -I../../../contrib/pf -I../../../contrib/dev/ath
> -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm
> -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
> opt_global.h -fno-common -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -ffreestanding
> ../../../dev/usb/umass.c:119:21: usbdevs.h: No such file or directory
> ../../../dev/usb/ums.c:70:21: usbdevs.h: No such file or directory
> mkdep: compile failed
> *** Error code 1
> 
> Stop in /usr/src/sys/i386/compile/NEW_NS1.SMP.
> 
> I tried doing a "make clean", but that didn't help either...what am I
> forgetting?  Please respond directly, as I am not subscribed.
> 
> TIA!
> 
> James Smallacombe		      PlantageNet, Inc. CEO and Janitor
> up at 3.am							    http://3.am
> =========================================================================

Try using NO_USB=yes in /etc/make.conf--it's a much better way to go
about removing USB support.

Also, do man make.conf to find out the rest of the support you can
disable on your machine; you really shouldn't go manually editing
makefiles in FreeBSD :(..

- -Garrett

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFJUXf6CkrZkzMC68RAibFAJ401+KljNDHxmQLDrY/h3OEd0mcJwCdG6aI
s3jTCCkTQlU5fjl/Dgj4s1I=
=7Lpd
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list