make CROSS_COMPILE=riscv64 KERNCONF=QEMU TARGET_ARCH=riscv64 buildkernel fails sys/contrib/ck/include/ck_stdbool.h:30:10: fatal error: stdbool.h: No such file or directory

From: Dennis Clarke <dclarke_at_blastwave.org>
Date: Sat, 23 Nov 2019 14:09:49 +0000
I have been seeing this for days and not sure why :

.
.
.
/opt/rv64/tools/bin/riscv64-unknown-elf-gcc 
--sysroot=/opt/rv64/obj/usr/src/20191122121007/freebsd-riscv/riscv.riscv64/tmp 
-B/opt/rv64/tools/bin/ -c -O -pipe  -g -nostdinc  -I. 
-I/usr/src/20191122121007/freebsd-riscv/sys 
-I/usr/src/20191122121007/freebsd-riscv/sys/contrib/ck/include 
-I/usr/src/20191122121007/freebsd-riscv/sys/contrib/libfdt -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 
-fno-omit-frame-pointer -fno-optimize-sibling-calls -MD 
-MF.depend.ck_array.o -MTck_array.o 
-fdebug-prefix-map=./machine=/usr/src/20191122121007/freebsd-riscv/sys/riscv/include 
-march=rv64imafdc -mabi=lp64 -ffreestanding -fwrapv -fstack-protector 
-gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef 
-Wno-pointer-sign -Wno-format -Wmissing-include-dirs 
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=address 
-Wno-error=aggressive-loop-optimizations -Wno-error=array-bounds 
-Wno-error=attributes -Wno-error=cast-qual -Wno-error=enum-compare 
-Wno-error=inline -Wno-error=maybe-uninitialized -Wno-error=overflow 
-Wno-error=sequence-point -Wno-unused-but-set-variable 
-Wno-error=misleading-indentation -Wno-error=nonnull-compare 
-Wno-error=shift-overflow -Wno-error=tautological-compare 
-Wno-error=memset-elt-size -Wno-error=packed-not-aligned 
-Wno-format-zero-length   -fno-common -fms-extensions 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -fms-extensions -mcmodel=medany 
-std=iso9899:1999 -Werror 
/usr/src/20191122121007/freebsd-riscv/sys/contrib/ck/src/ck_array.c 
-I/usr/src/20191122121007/freebsd-riscv/sys/contrib/ck/include
In file included from 
/usr/src/20191122121007/freebsd-riscv/sys/contrib/ck/include/ck_malloc.h:30,
                  from 
/usr/src/20191122121007/freebsd-riscv/sys/contrib/ck/include/ck_array.h:32,
                  from 
/usr/src/20191122121007/freebsd-riscv/sys/contrib/ck/src/ck_array.c:28:
/usr/src/20191122121007/freebsd-riscv/sys/contrib/ck/include/ck_stdbool.h:30:10: 
fatal error: stdbool.h: No such file or directory
    30 | #include <stdbool.h>
       |          ^~~~~~~~~~~
compilation terminated.
*** Error code 1

Stop.
make[2]: stopped in 
/opt/rv64/obj/usr/src/20191122121007/freebsd-riscv/riscv.riscv64/sys/QEMU
*** Error code 1

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

Stop.
make: stopped in /usr/src/20191122121007/freebsd-riscv
vesta#
vesta#


I am using my own cross tools made from the RISC-V projects GNU Toolchain :

vesta#
vesta# /opt/rv64/tools/bin/riscv64-unknown-elf-gcc --version
riscv64-unknown-elf-gcc (GCC) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

vesta#

Which seems to work fine for buildworld but then the kernel fails to 
build due to a mysterious missing header.



-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
Received on Sat Nov 23 2019 - 13:10:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC