Date: Sat, 15 Jul 2017 14:28:05 +0300 From: Jukka Ukkonen <jau789@gmail.com> To: Trev <freebsd-arm@sentry.org> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Raspberry Pi2 11-STABLE kernel build fails Message-ID: <F49FD301-4FFB-46B2-B5DB-97D1AC82A739@gmail.com> In-Reply-To: <d301105c-6267-33aa-58fd-8d2406061b6e@sentry.org> References: <d301105c-6267-33aa-58fd-8d2406061b6e@sentry.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I remedied this by adding the definition to the appropriate atomic.h file (sys/arm/include/atomic.h if my memory serves me right) Simply add... #define atomic_readandclear_ptr atomic_readandclear_32 in the file and the build should complete just fine. --jau > On 15 Jul 2017, at 8.39, Trev <freebsd-arm@sentry.org> wrote: >=20 > Build machine: FreeBSD rpi2 11.0-STABLE FreeBSD 11.0-STABLE #0 r318134: We= d May 10 23:01:57 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/u= sr/src/sys/RPI2 arm >=20 > svn source version r321000 >=20 > Having suffered through a successful overnight buildworld and thinking I w= as home and hosed, my buildkernel failed, so definitely hosed but not home y= et :) >=20 > /home/src/sys/kern/kern_exec.c:1353:19: error: implicit declaration of fun= ction > 'atomic_readandclear_ptr' is invalid in C99 > [-Werror,-Wimplicit-function-declaration] > argkva =3D (void *)atomic_readandclear_ptr( > ^ > /home/src/sys/kern/kern_exec.c:1353:19: error: this function declaration i= s not > a prototype [-Werror,-Wstrict-prototypes] > 2 errors generated. >=20 > The offending code appears to have been added by this commit: >=20 > ------------------------------------------------------------------------ > r320797 | markj | 2017-07-08 11:56:48 +1000 (Sat, 08 Jul 2017) | 3 lines >=20 > MFC r311346, r311352, r313756: > Add an allocator for KVA for execve arguments. > ------------------------------------------------------------------------ >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F49FD301-4FFB-46B2-B5DB-97D1AC82A739>