From nobody Mon Jan 5 13:45:25 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dlFtS0Hs4z6MVVS for ; Mon, 05 Jan 2026 13:45:36 +0000 (UTC) (envelope-from saper@saper.info) Received: from q.saper.info (q.saper.info [IPv6:2605:2700:0:2:a800:ff:fec7:5c61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "q.saper.info", Issuer "E7" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dlFtQ421fz3XdZ for ; Mon, 05 Jan 2026 13:45:34 +0000 (UTC) (envelope-from saper@saper.info) Authentication-Results: mx1.freebsd.org; dkim=fail ("body hash did not verify") header.d=saper.info header.s=Sep2014 header.b=TI6x9DfH; dmarc=none; spf=none (mx1.freebsd.org: domain of saper@saper.info has no SPF policy when checking 2605:2700:0:2:a800:ff:fec7:5c61) smtp.mailfrom=saper@saper.info Received: from q.saper.info (localhost [127.0.0.1]) by q.saper.info (8.18.1/8.18.1) with ESMTPS id 605DjP1p030521 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 5 Jan 2026 13:45:25 GMT (envelope-from saper@saper.info) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=saper.info; s=Sep2014; t=1767620725; bh=AdWmtH+AErwPlU8NZbt1jA5YFZ9pAj5iFx7w0Jne1Rg=; h=Date:From:To:Subject; b=TI6x9DfH91Jk0a+w8yrUkj5MnezRPfRvpEpYd9HHs/znKs2VoVzNIbQNwgqeISiRE neVDM3HpF+KTXd9c0djQdYsVM+50bZuRTWSLyyQYQKty+EicghMGAQD94BqQcFejpR G2iz3AKk4V2P1+IThyJW3d6xYOxoz+xRgrxcdFbM= Received: from localhost (saper@localhost) by q.saper.info (8.18.1/8.18.1/Submit) with ESMTP id 605DjPPu030514 for ; Mon, 5 Jan 2026 13:45:25 GMT (envelope-from saper@saper.info) X-Authentication-Warning: q.saper.info: saper owned process doing -bs Date: Mon, 5 Jan 2026 13:45:25 +0000 From: Marcin Cieslak To: FreeBSD Current Subject: strange build error in usr.sbin/makefs (unknown type name 'bool') Message-ID: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Content-Transfer-Encoding: 8BIT X-Spamd-Bar: - X-Spamd-Result: default: False [-1.60 / 15.00]; R_DKIM_REJECT(1.00)[saper.info:s=Sep2014]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; CTE_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; ASN(0.00)[asn:47066, ipnet:2605:2700::/32, country:US]; MIME_TRACE(0.00)[0:+]; RECEIVED_HELO_LOCALHOST(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[saper.info]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[saper.info:-] X-Rspamd-Queue-Id: 4dlFtQ421fz3XdZ I am trying to rebuild the world from some old 15.x version to 1b69ade6b5e8665dfb4d0cb683854705192a68 and the build fails with not knowing "bool" type. using FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) ===> usr.sbin/mailwrapper (all) ===> usr.sbin/makefs (all) cc -target x86_64-unknown-freebsd16.0 --sysroot=/big/obj/usr/src/amd64.amd64/tmp -B/big/obj/usr/src/amd64.amd64/tmp/usr/bin -fpie -DPIC -O2 -pipe -fno-common -I/usr/src/usr.sbin/makefs -I/usr/src/usr.sbin/makefs/zfs -I/usr/src/stand/libsa -I/usr/src/sys/cddl/boot -DHAVE_ZFS -I/usr/src/sys/fs/cd9660/ -DMAKEFS -D_WANT_MSDOSFS_INTERNALS -I/usr/src/sys/fs/msdosfs -I/usr/src/sbin/newfs_msdos -DHAVE_STRUCT_STAT_ST_FLAGS=1 -I/usr/src/contrib/mtree -I/usr/src/contrib/mknod -I/usr/src/lib/libnetbsd -fPIE -g -gz=zlib -MD -MF.depend.cd9660.pieo -MTcd9660.pieo -std=gnu17 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-st! ring-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Wno-error=cast-function-type-mismatch -Qunused-arguments -c /usr/src/usr.sbin/makefs/cd9660.c -o cd9660.pieo In file included from /usr/src/usr.sbin/makefs/cd9660.c:102: /usr/src/stand/libsa/ctype.h:169:5: error: type name requires a specifier or qualifier 169 | bool (*dv_match)(struct devsw *, const char *); | ^ /usr/src/stand/libsa/ctype.h:169:12: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] 169 | bool (*dv_match)(struct devsw *, const char *); | ^ | int /usr/src/stand/libsa/ctype.h:177:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 177 | extern int errno; | ^ /big/obj/usr/src/amd64.amd64/tmp/usr/include/sys/errno.h:45:26: note: expanded from macro 'errno' 45 | #define errno (* __error()) | ^ In file included from /usr/src/usr.sbin/makefs/cd9660.c:102: /usr/src/stand/libsa/ctype.h:512:1: error: unknown type name 'bool' 512 | bool is_tftp(void); | ^ /usr/src/stand/libsa/ctype.h:515:68: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] 515 | typedef void (feature_iter_fn)(void *, const char *, const char *, bool); | ^ | int /usr/src/stand/libsa/ctype.h:518:8: error: unknown type name 'bool' 518 | extern bool feature_name_is_enabled(const char *); | ^ In file included from /usr/src/usr.sbin/makefs/cd9660.c:105: In file included from /usr/src/lib/libnetbsd/util.h:38: /big/obj/usr/src/amd64.amd64/tmp/usr/include/libutil.h:108:6: error: conflicting types for 'hexdump' 108 | void hexdump(const void *_ptr, int _length, const char *_hdr, int _flags); | ^ /usr/src/stand/libsa/ctype.h:530:6: note: previous declaration is here 530 | void hexdump(caddr_t region, size_t len); | ^ In file included from /usr/src/usr.sbin/makefs/cd9660.c:105: /usr/src/lib/libnetbsd/util.h:49:1: error: unknown type name 'FILE' 49 | FILE *efopen(const char *, const char *); | ^ In file included from /usr/src/usr.sbin/makefs/cd9660.c:108: /usr/src/usr.sbin/makefs/cd9660.h:307:36: error: unknown type name 'FILE' 307 | int cd9660_write_generic_bootimage(FILE *); | ^ /usr/src/usr.sbin/makefs/cd9660.h:308:39: error: unknown type name 'FILE' 308 | int cd9660_write_boot(iso9660_disk *, FILE *); | ^ /usr/src/usr.sbin/makefs/cd9660.h:319:38: error: unknown type name 'FILE' 319 | int cd9660_copy_file(iso9660_disk *, FILE *, off_t, const char *); | ^ /usr/src/usr.sbin/makefs/cd9660.h:329:35: error: unknown type name 'FILE' 329 | void debug_dump_to_xml_path_table(FILE *, off_t, int, int); | ^ /usr/src/usr.sbin/makefs/cd9660.h:330:24: error: unknown type name 'FILE' 330 | void debug_dump_to_xml(FILE *); | ^ /usr/src/usr.sbin/makefs/cd9660.c:478:8: error: use of undeclared identifier 'EXIT_FAILURE' 478 | errx(EXIT_FAILURE, "allow-multidot requires iso level of 2"); | ^ /usr/src/usr.sbin/makefs/cd9660.c:511:8: error: use of undeclared identifier 'EXIT_FAILURE' 511 | errx(EXIT_FAILURE, "%s: converted directory is empty. " | ^ /usr/src/usr.sbin/makefs/cd9660.c:514:8: error: use of undeclared identifier 'EXIT_FAILURE' 514 | errx(EXIT_FAILURE, "%s: tree conversion failed", __func__); | ^ /usr/src/usr.sbin/makefs/cd9660.c:546:9: error: use of undeclared identifier 'EXIT_FAILURE' 546 | errx(EXIT_FAILURE, "setup_boot failed"); | ^ /usr/src/usr.sbin/makefs/cd9660.c:1341:3: error: use of undeclared identifier 'EXIT_FAILURE' 1341 | CD9660_MEM_ALLOC_ERROR(__func__); | ^ /usr/src/usr.sbin/makefs/cd9660.h:96:9: note: expanded from macro 'CD9660_MEM_ALLOC_ERROR' 96 | err(EXIT_FAILURE, "%s, %s l. %d", _F, __FILE__, __LINE__) | ^ /usr/src/usr.sbin/makefs/cd9660.c:1437:6: error: use of undeclared identifier 'EXIT_FAILURE' 1437 | CD9660_MEM_ALLOC_ERROR(__func__); | ^ /usr/src/usr.sbin/makefs/cd9660.h:96:9: note: expanded from macro 'CD9660_MEM_ALLOC_ERROR' 96 | err(EXIT_FAILURE, "%s, %s l. %d", _F, __FILE__, __LINE__) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. *** Error code 1 Stop. make[4]: stopped making "all" in /usr/src/usr.sbin/makefs *** Error code 1 Stop. make[3]: stopped making "all" in /usr/src/usr.sbin *** Error code 1 Stop. make[2]: stopped making "all" in /usr/src 478,10 real 89,05 user 222,56 sys *** Error code 1 Stop. make[1]: stopped making "buildworld" in /usr/src *** Error code 1 Stop. make: stopped making "buildworld" in /usr/src Command exit status: 1 Script done on Mon Jan 5 14:14:17 2026