Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 2009 03:58:26 -0700
From:      pluknet <pluknet@gmail.com>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: cross compile failures
Message-ID:  <a31046fc0904250358i7011826fqcfa5df7bbedb2e0d@mail.gmail.com>
In-Reply-To: <49F2E1FC.6090400@bsdforen.de>
References:  <49F2E1FC.6090400@bsdforen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/4/25 Dominic Fandrey <kamikaze@bsdforen.de>:
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0904250358i7011826fqcfa5df7bbedb2e0d>