From owner-freebsd-stable@FreeBSD.ORG Sat Apr 25 10:58:28 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6443F106564A for ; Sat, 25 Apr 2009 10:58:28 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id D36588FC1F for ; Sat, 25 Apr 2009 10:58:27 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by bwz9 with SMTP id 9so1423352bwz.43 for ; Sat, 25 Apr 2009 03:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=41WHsIH/morwFhBAYlkO2zxJlihwojs+vB6VY877VB4=; b=EEBx5sMq+oH1MBQvwANaTIgfAgzQbWf7p/uSd67Ya2ivUEbr7LdvpFXHvrlA67d+yD +SoiCfT5qc5xmmnGwDZthcqY2bOmKH95nIuq9oRjGel4od/rW3q99zUUkuL6QF1xb0// WZx59UzeGNlQslOsTwDuoWuPU5YtkvA/ok2T0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Qa2K5ukdOQaWsQ/dXoXbpYm3FM1Qot0uVSmIQpLdSLnBDGGc0z9he1gd3gzMWHB/4X USjrn3jROWR0JMcYM1xD5RnbG1mKlo1jWQIGbc08Zn/9DeFDKFsXy3OsfDKVxmTqnjgF ZiVIc/0x1gRPN6ye9e8a7Rk5s9iF4SqnSCasE= MIME-Version: 1.0 Received: by 10.103.228.7 with SMTP id f7mr1913570mur.0.1240657106285; Sat, 25 Apr 2009 03:58:26 -0700 (PDT) In-Reply-To: <49F2E1FC.6090400@bsdforen.de> References: <49F2E1FC.6090400@bsdforen.de> Date: Sat, 25 Apr 2009 03:58:26 -0700 Message-ID: From: pluknet To: Dominic Fandrey Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: cross compile failures 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: Sat, 25 Apr 2009 10:58:28 -0000 2009/4/25 Dominic Fandrey : > I'm trying to build RELENG_7 for i386 on an amd64 machine. > I have done this quite often for a long time. It used to work this way: > > # env MAKEOBJDIRPREFIX=3D/usr/obj/VECTRA-7 make -j3 buildworld buildkerne= l TARGET=3Di386 KERNCONF=3DVECTRA-7 > > This is how it fails (pretty late during kernel build): > =3D=3D=3D> zyd (all) > env CCACHE_PREFIX=3D/usr/local/bin/distcc /usr/local/bin/ccache cc -O2 -f= no-strict > -aliasing -pipe =A0-D_KERNEL -DKLD_MODULE -std=3Dc99 -nostdinc =A0 -DHAVE= _KERNEL_OPTIO > N_HEADERS -include /usr/obj/VECTRA-7/i386/usr/src/sys/VECTRA-7/opt_global= .h -I. > -I@ -I@/contrib/altq -finline-limit=3D8000 --param inline-unit-growth=3D1= 00 --param > large-function-growth=3D1000 -fno-common =A0-I/usr/obj/VECTRA-7/i386/usr/= src/sys/VEC > TRA-7 -mno-align-long-strings -mpreferred-stack-boundary=3D2 =A0-mno-mmx = -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnes= ted-ext > erns -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline= -Wcast-q > ual =A0-Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modu= les/zyd/. > ./../dev/usb/if_zyd.c > ld =A0-d -warn-common -r -d -o if_zyd.kld if_zyd.o > :> export_syms > awk -f /usr/src/sys/modules/zyd/../../conf/kmod_syms.awk if_zyd.kld =A0ex= port_syms > =A0| xargs -J% objcopy % if_zyd.kld > ld -Bshareable =A0-d -warn-common -o if_zyd.ko if_zyd.kld > objcopy --strip-debug if_zyd.ko > 1 error > *** Error code 2 > 1 error > *** Error code 2 > > Stop in /usr/src. > > I don't care about the if_zyd module, to be true, but it still > keeps me from finishing the build. > The -j3 build option hides the actual build error. > Funny, though. The situation is even WORSE without -j3: > ... > cc -c -O2 -pipe -fno-strict-aliasing =A0-std=3Dc99 =A0-Wall -Wredundant-d= ecls -Wnested > -externs -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Win= line -Wca > st-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -nostdinc =A0-I.= -I/usr/src > /sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -= include > =A0opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-gro= wth=3D100 --p > aram large-function-growth=3D1000 =A0-mno-align-long-strings -mpreferred-= stack-bound > ary=3D2 =A0-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestandin= g -Werror > /usr/src/sys/dev/ath/if_ath.c -I/usr/src/sys/dev/ath > /usr/src/sys/dev/ath/if_ath.c: In function 'ath_rx_tap': > /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' h= as no m > ember named 'rs_flags' > /usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct ath_rx_status' h= as no m > ember named 'rs_flags' > *** Error code 1 > > Stop in /usr/obj/VECTRA-7/i386/usr/src/sys/VECTRA-7. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > > As you can see it breaks early during kernel build. > > I just recsupped and there've been no changes, so I didn't get > my sources in the middle of an update. > Since March/12 you need the AH_SUPPORT_AR5416 kernel configuration option (which is a prerequisite, actually). See also src/UPDATING. --=20 wbr, pluknet