From owner-freebsd-stable@FreeBSD.ORG Sat Apr 25 11:20:48 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 3E62C1065675 for ; Sat, 25 Apr 2009 11:20:48 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id B71018FC0C for ; Sat, 25 Apr 2009 11:20:47 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (unknown [88.130.206.124]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 1CB638A00D1; Sat, 25 Apr 2009 13:20:45 +0200 (CEST) Message-ID: <49F2F209.3090909@bsdforen.de> Date: Sat, 25 Apr 2009 13:20:41 +0200 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.21 (X11/20090408) MIME-Version: 1.0 To: pluknet References: <49F2E1FC.6090400@bsdforen.de> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 11:20:48 -0000 pluknet wrote: > 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=/usr/obj/VECTRA-7 make -j3 buildworld buildkernel TARGET=i386 KERNCONF=VECTRA-7 >> >> This is how it fails (pretty late during kernel build): >> ===> zyd (all) >> env CCACHE_PREFIX=/usr/local/bin/distcc /usr/local/bin/ccache cc -O2 -fno-strict >> -aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -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=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-common -I/usr/obj/VECTRA-7/i386/usr/src/sys/VEC >> TRA-7 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow >> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-ext >> erns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-q >> ual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/zyd/. >> ./../dev/usb/if_zyd.c >> ld -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 export_syms >> | xargs -J% objcopy % if_zyd.kld >> ld -Bshareable -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 -std=c99 -Wall -Wredundant-decls -Wnested >> -externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wca >> st-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 --p >> aram large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-bound >> ary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -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' has no m >> ember named 'rs_flags' >> /usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct ath_rx_status' has 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. > > I actually read this, but I didn't figure that I have to remove the lines device ath_hal # Atheros HAL (Hardware Access Layer) device ath_rate_sample # SampleRate tx rate control for ath from my kernel config. I'm on a retry, thanks for the hint.