Raspberry Pi2 11-STABLE kernel build fails
Jukka Ukkonen
jau789 at gmail.com
Sat Jul 15 11:28:12 UTC 2017
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 at sentry.org> wrote:
>
> Build machine: FreeBSD rpi2 11.0-STABLE FreeBSD 11.0-STABLE #0 r318134: Wed May 10 23:01:57 UTC 2017 root at releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm
>
> svn source version r321000
>
> Having suffered through a successful overnight buildworld and thinking I was home and hosed, my buildkernel failed, so definitely hosed but not home yet :)
>
> /home/src/sys/kern/kern_exec.c:1353:19: error: implicit declaration of function
> 'atomic_readandclear_ptr' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
> argkva = (void *)atomic_readandclear_ptr(
> ^
> /home/src/sys/kern/kern_exec.c:1353:19: error: this function declaration is not
> a prototype [-Werror,-Wstrict-prototypes]
> 2 errors generated.
>
> The offending code appears to have been added by this commit:
>
> ------------------------------------------------------------------------
> r320797 | markj | 2017-07-08 11:56:48 +1000 (Sat, 08 Jul 2017) | 3 lines
>
> MFC r311346, r311352, r313756:
> Add an allocator for KVA for execve arguments.
> ------------------------------------------------------------------------
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
More information about the freebsd-arm
mailing list