From owner-freebsd-stable@FreeBSD.ORG Sun Sep 11 13:17:34 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A348106564A for ; Sun, 11 Sep 2011 13:17:34 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 6304B8FC19 for ; Sun, 11 Sep 2011 13:17:34 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.5/8.14.5) with ESMTP id p8BD7ElT064116 for ; Sun, 11 Sep 2011 06:07:14 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id p8BD7Eh4064115 for stable@freebsd.org; Sun, 11 Sep 2011 06:07:14 -0700 (PDT) (envelope-from david) Date: Sun, 11 Sep 2011 06:07:13 -0700 From: David Wolfskill To: stable@freebsd.org Message-ID: <20110911130713.GV42450@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , stable@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uOZhbHG+Ruum37TI" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: Something odd with devices mmd, mmdsd, and/or sdhci? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2011 13:17:34 -0000 --uOZhbHG+Ruum37TI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: F= ri Sep 9 04:02:21 PDT 2011 root@g1-227.catwhisker.org:/common/S1/obj/u= sr/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 =2E.. >>> stage 1: configuring the kernel =2E.. >>> stage 2.2: rebuilding the object tree =2E.. >>> stage 2.3: build tools =2E.. >>> stage 3.1: making dependencies =2E.. >>> stage 3.2: building everything =2E.. MAKE=3D/usr/obj/usr/src/make.i386/make sh /usr/src/sys/conf/newvers.sh CANA= RY cc -c -O -pipe -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wst= rict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual = -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sy= s -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -inclu= de opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growt= h=3D100 --param large-function-growth=3D1000 -mno-align-long-strings -mpre= ferred-stack-boundary=3D2 -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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =20 # -# 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 --=20 David H. Wolfskill david@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. --uOZhbHG+Ruum37TI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk5ssoEACgkQmprOCmdXAD2A3gCggskTpdkJL8Dz4reLbaMIAW8Y LJEAniDCf8Zd37qHj65tY+JWL+rPl2uD =F5L+ -----END PGP SIGNATURE----- --uOZhbHG+Ruum37TI--