From owner-freebsd-current@freebsd.org Sat Nov 23 14:10:02 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DD8521B6A41 for ; Sat, 23 Nov 2019 14:10:02 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob11.myregisteredsite.com (jax4mhob11.myregisteredsite.com [64.69.218.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47KwD96fV0z45sp for ; Sat, 23 Nov 2019 14:10:01 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com (atl4qobmail02pod2.registeredsite.com [10.30.77.36]) by jax4mhob11.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id xANE9xlh012032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sat, 23 Nov 2019 09:09:59 -0500 Received: (qmail 23173 invoked by uid 0); 23 Nov 2019 14:09:58 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 23 Nov 2019 14:09:58 -0000 To: FreeBSD Current From: Dennis Clarke Subject: 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 Message-ID: Date: Sat, 23 Nov 2019 14:09:49 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47KwD96fV0z45sp X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.91) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [3.16 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_MEDIUM(0.92)[0.919,0]; NEURAL_SPAM_LONG(0.82)[0.819,0]; RCVD_IN_DNSWL_NONE(0.00)[91.218.69.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.52)[ipnet: 64.69.218.0/23(1.01), asn: 19871(1.67), country: US(-0.05)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Nov 2019 14:10:02 -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 | ^~~~~~~~~~~ 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