Something odd with devices mmd, mmdsd, and/or sdhci?

David Wolfskill david at catwhisker.org
Sun Sep 11 13:17:34 UTC 2011


I was a bit surprised this morning to find that my daily build of
stable/8 on my laptop failed until I modified my kernel config.

I was running:

FreeBSD g1-227.catwhisker.org 8.2-STABLE FreeBSD 8.2-STABLE #241 r225459: Fri Sep  9 04:02:21 PDT 2011     root at g1-227.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY  i386

(which I had actually last updated yesterday, but there had been
no kernel changes in stable/8 as of r225467).

I had updated my working copy up to r225473 this morning; things
were OK until I tried to build my kernel (CANARY), which I hadn't
changed in several months; this is what I encountered:

>>> Kernel build for CANARY started on Sun Sep 11 04:07:16 PDT 2011
...
>>> stage 1: configuring the kernel
...
>>> stage 2.2: rebuilding the object tree
...
>>> stage 2.3: build tools
...
>>> stage 3.1: making dependencies
...
>>> stage 3.2: building everything
...
MAKE=/usr/obj/usr/src/make.i386/make sh /usr/src/sys/conf/newvers.sh CANARY
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -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 -mno-sse3 -ffreestanding -fstack-protector -Werror  vers.c
linking kernel.debug
ld: kernel.debug: Not enough room for program headers (allocated 5, need 6)
ld: final link failed: Bad value
*** Error code 1

Stop in /common/S1/obj/usr/src/sys/CANARY.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


But I had no trouble building GENERIC (on the same laptop), or
GENERIC and a couple of other lightly-customized configs on my build
machine.

So I started poking at the kernel config; the following change is
what allowed the kernel build to succeed:


Index: CANARY
===================================================================
RCS file: /cvs/local/src/kernels/FreeBSD-8/CANARY,v
retrieving revision 1.3
diff -u -r1.3 CANARY
--- CANARY	7 Mar 2011 19:17:03 -0000	1.3
+++ CANARY	11 Sep 2011 12:40:46 -0000
@@ -47,17 +43,6 @@
 nodevice  	wi		# I want to use the module, for hacking
 
 #
-# MMC/SD
-#
-# mmc 		MMC/SD bus
-# mmcsd		MMC/SD memory card
-# sdhci		Generic PCI SD Host Controller
-#
-device		mmc
-device		mmcsd
-device		sdhci
-
-#
 # SMB bus
 #
 # System Management Bus support is provided by the 'smbus' device.


Hence the query in the Subject -- any thoughts?

Thanks!

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20110911/75cad3f5/attachment.pgp


More information about the freebsd-stable mailing list