Re: git: 07864a8a2466 - main - kinst: port to arm64

From: <tuexen_at_freebsd.org>
Date: Wed, 19 Jul 2023 16:44:26 UTC
> On 19. Jul 2023, at 16:59, Christos Margiolis <christos@freebsd.org> wrote:
> 
> The branch main has been updated by christos:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=07864a8a2466b8ab3d6fa6623a7eaaf0834c0b51
> 
> commit 07864a8a2466b8ab3d6fa6623a7eaaf0834c0b51
> Author:     Christos Margiolis <christos@FreeBSD.org>
> AuthorDate: 2023-07-19 14:58:18 +0000
> Commit:     Christos Margiolis <christos@FreeBSD.org>
> CommitDate: 2023-07-19 14:58:18 +0000
> 
>   kinst: port to arm64
> 
>   Reviewed by:    markj
>   Approved by:    markj (mentor)
>   Sponsored by:   The FreeBSD Foundation
>   Differential Revision:  https://reviews.freebsd.org/D40337
> ---
> sys/cddl/dev/kinst/aarch64/kinst_isa.c | 455 +++++++++++++++++++++++++++++++++
> sys/cddl/dev/kinst/aarch64/kinst_isa.h |  26 ++
> sys/modules/dtrace/Makefile            |   2 +-
> 3 files changed, 482 insertions(+), 1 deletion(-)
> 
This doesn't compile on my system:

===> dtrace/kinst (all)
cc -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/home/tuexen/freebsd-src/arm64.aarch64/tmp -B/usr/obj/usr/home/tuexen/freebsd-src/arm64.aarch64/tmp/usr/bin  -O2 -pipe -fno-common -D_SYS_VMEM_H_   -D__KERNEL__  -nostdinc  -DSMP  -I/usr/home/tuexen/freebsd-src/sys/contrib/openzfs/include   -I/usr/home/tuexen/freebsd-src/sys/contrib/openzfs/include/os/freebsd  -I/usr/home/tuexen/freebsd-src/sys/contrib/openzfs/include/os/freebsd/spl  -I/usr/home/tuexen/freebsd-src/sys/contrib/openzfs/include/os/freebsd/zfs  -I/usr/home/tuexen/freebsd-src/sys/cddl/compat/opensolaris  -I/usr/home/tuexen/freebsd-src/sys/cddl/contrib/opensolaris/uts/common  -include /usr/home/tuexen/freebsd-src/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -DKLD_TIED -nostdinc  -I/usr/home/tuexen/freebsd-src/sys/cddl/dev/kinst -I/usr/home/tuexen/freebsd-src/sys/cddl/dev/kinst/aarch64 -I/usr/home/tuexen/freebsd-src/sys/cddl/dev/dtrace/aarch64 -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/home/tuexen/freebsd-src/arm64.aarch64/sys/TCP/opt_global.h -I. -I/usr/home/tuexen/freebsd-src/sys -I/usr/home/tuexen/freebsd-src/sys/contrib/ck/include -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -fdebug-prefix-map=./machine=/usr/home/tuexen/freebsd-src/sys/arm64/include -I/usr/obj/usr/home/tuexen/freebsd-src/arm64.aarch64/sys/TCP   -mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=0  -MD  -MF.depend.kinst_isa.o -MTkinst_isa.o -mgeneral-regs-only -ffixed-x18 -ffreestanding -fwrapv -fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length     -std=gnu99 -include /usr/home/tuexen/freebsd-src/sys/cddl/compat/opensolaris/sys/debug_compat.h -c /usr/home/tuexen/freebsd-src/sys/cddl/dev/kinst/aarch64/kinst_isa.c -o kinst_isa.o
/usr/home/tuexen/freebsd-src/sys/cddl/dev/kinst/aarch64/kinst_isa.c:223:9: error: assigning to 'struct kinst_probe *' from 'const struct kinst_probe *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
       ks->kp = kp;
              ^ ~~
1 error generated.
*** Error code 1

Stop.
make[5]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/dtrace/kinst
*** Error code 1

Stop.
make[4]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/dtrace
*** Error code 1

Stop.
make[3]: stopped in /usr/home/tuexen/freebsd-src/sys/modules
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/home/tuexen/freebsd-src/arm64.aarch64/sys/TCP
       3.00 real         1.97 user         1.07 sys
*** Error code 1

Stop.
make[1]: stopped in /usr/home/tuexen/freebsd-src
*** Error code 1

Stop.
make: stopped in /usr/home/tuexen/freebsd-src

Best regards
Michael