From nobody Wed Jan 8 08:10:41 2025 X-Original-To: standards@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 4YSgb55mNKz5jvpq for ; Wed, 08 Jan 2025 08:10:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSgb53Vdqz47pw for ; Wed, 8 Jan 2025 08:10:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736323841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V8sQ7nJtDuHI5WyCaS2L/T2vtbLGs7j0CvBh60CgvxQ=; b=MJkWmMPtJH78aGN+J6c7FdOLJae2WihWc56c7h+LCW5b39uhCLOMyXd3KwUIz5bJM+qeTM pvzxgUfUqkGVawVcfA6yKSyPV74w8khpo2UcV7SzD38VV9qMUcpdXxXHa+M524tYwjEFDt k9ANVyJUm6PGJZGNkAMRUGkLK7fnvxE39rcN/9ZnenO1xNfOT1V01ycYcpvNCqj+2sbMCr 9orUNp/6QunrVEQSBLhW7vY3HT25cgHFzPG2+FJM99D6hdfiBg68yCstl5j8plMXSkbWA5 d8dPPFQVt0hGcdfbt/IFUmCPh5l7uONZ8wQ0jSL4ib1Anw6ZtHbwYohzkYp8rA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736323841; a=rsa-sha256; cv=none; b=IZrbMouSshb8OiypJRmXRG3hxt1S0OwPEjIxr8W0jtyXKmehdBexDfwOe8VsKS9FQziMh+ yZQfJcjmuiIQ5aAp5e8s5oSUAl4qj5xldHJQ9BaM+AkdZp2TvOMtGbgVuwMpR2GaO8hP1d 9DEKrWf/Kxc/6b27ssLVOjZ/rryWbSFDZN0UZds+GlBF/pzlQ6rIONzZ9d0EBrSrtWnbLj htRR/fTlQ0MBki6heHwO8077XzUhe4Xy9TGIwySK8vKCGWWD8Pval1ZQqCWCtDP6EDQrhy N7RV2b2i1S7YFUL+gKScxdf9VgXBoN4u5YbiE1DYhAlf5dboHa472aW0O8ON+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSgb52dQKznqp for ; Wed, 08 Jan 2025 08:10:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5088Afho067075 for ; Wed, 8 Jan 2025 08:10:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5088AfOC067074 for standards@FreeBSD.org; Wed, 8 Jan 2025 08:10:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 283917] libc failes to include stdint.h with clang>16 and -ffreestanding Date: Wed, 08 Jan 2025 08:10:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: keve@keve.hu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283917 Bug ID: 283917 Summary: libc failes to include stdint.h with clang>16 and -ffreestanding Product: Base System Version: 14.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: keve@keve.hu The trivial code ``` #include #include #include int main(const int argc, const char *argv[]) { uint32_t answer =3D 42; printf("%" PRId32 "\n", answer); return 0; } ``` fails to compile with clang17, clang18, clang19, when -ffreestanding is set ``` # env CC=3Dclang19 CFLAGS=3D-ffreestanding make hello clang19 -ffreestanding hello.c -o hello In file included from hello.c:2: /usr/local/llvm19/lib/clang/19/include/stdint.h:261:25: error: typedef redefinition with different types ('int16_t' (aka 'short') vs '__int_fast16= _t' (aka 'int')) 261 | typedef __int_least16_t int_fast16_t; | ^ /usr/include/sys/stdint.h:51:25: note: previous definition is here 51 | typedef __int_fast16_t int_fast16_t; | ^ In file included from hello.c:2: /usr/local/llvm19/lib/clang/19/include/stdint.h:262:26: error: typedef redefinition with different types ('uint16_t' (aka 'unsigned short') vs '__uint_fast16_t' (aka 'unsigned int')) 262 | typedef __uint_least16_t uint_fast16_t; | ^ /usr/include/sys/stdint.h:56:26: note: previous definition is here 56 | typedef __uint_fast16_t uint_fast16_t; | ^ In file included from hello.c:2: /usr/local/llvm19/lib/clang/19/include/stdint.h:280:24: error: typedef redefinition with different types ('int8_t' (aka 'signed char') vs '__int_fast8_t' (aka 'int')) 280 | typedef __int_least8_t int_fast8_t; | ^ /usr/include/sys/stdint.h:50:24: note: previous definition is here 50 | typedef __int_fast8_t int_fast8_t; | ^ In file included from hello.c:2: /usr/local/llvm19/lib/clang/19/include/stdint.h:281:25: error: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs '__uint_fast8_t' (aka 'unsigned int')) 281 | typedef __uint_least8_t uint_fast8_t; | ^ /usr/include/sys/stdint.h:55:25: note: previous definition is here 55 | typedef __uint_fast8_t uint_fast8_t; | ^ 4 errors generated. *** Error code 1 ``` Other environments (e.g. Linux, Darwin) compile this code just fine with -ffreestanding. A real life project affected by this is e.g. libecc (https://github.com/libecc/libecc) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Jan 8 13:01:09 2025 X-Original-To: standards@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 4YSp2G1gjpz5kPV9 for ; Wed, 08 Jan 2025 13:01:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSp2F29B6z4YyZ for ; Wed, 8 Jan 2025 13:01:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736341269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dRXSmwVvH4Qyew4BiFlrFLn0HOGNrH7nMRbRoKFjvqg=; b=eoo2aAmi0XNHmJ51sE/J9fDEznm27BvwBPetIi9oRiTbpSk4MC1k7Fi27gSZqi4rnw5Gyq 0cIJBaqYw4HGquHkOQyHLp7cfeW2YJee764ti98ejIrjt3S7W5/n8g/zxu1TSaW4Tn5Kcc biLSSJ3incX/fkQGt8+mv0PMzAS5Iqq1yuakF7l/6/ZH5wzCu/dHhhnzoXacTOuDaAi9PF 20X1H2UecT12Ao6qjNKtOpxItL9AisXfA3PgBZGNjTI5eYtDIXZetYkPtjLJUB8LrBEBor nm9WxtG2wm+1/JIlyYFG0ocgpXsVoue4KXXuP37aeKUxjrtgRU35ckoFGaRO/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736341269; a=rsa-sha256; cv=none; b=oSC8bHUKzwEZZBc3nfZxPsXAq7BxnF84VniV2B88gVG9WhOaX3iZ8dSEFyU79C3a5c90NZ 6y0f+3gv9vKiiB1oqxZfowbbhaD5Wn91Hv3HqEINYpCR/ObhD2nwFbwmEjj6+irtks86CQ WaWZ6whns7vgMHus1Dq/tLyAlwxzWsl4GQaXYYuqr5MXqwvg+huLoW3kw7DfY1iAxeV8AS 1B0tGC0ex+zB6jKnX+FdAwN/LSshBcp+BCKcA4ct/OWSH7+KDWq9srGTnRWDyrN70jd9j4 LuBROBkG1IQFGHmKv4VrHQqgO7Rl73taWbMWnZYvcK8Fgt/96lQ4hF9zunmw8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSp2F1bQkzxV4 for ; Wed, 08 Jan 2025 13:01:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 508D19dO093335 for ; Wed, 8 Jan 2025 13:01:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 508D19Hm093334 for standards@FreeBSD.org; Wed, 8 Jan 2025 13:01:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 283917] libc failes to include stdint.h with clang>16 and -ffreestanding Date: Wed, 08 Jan 2025 13:01:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283917 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #1 from Konstantin Belousov --- FreeBSD libc is by definition a provider of ANSI C/POSIX library interfaces for the hosted environment. It cannot work this way. If you want to use -ffreestanding, you at least must disallow use of the standard system compilation environment (includes etc), perhaps by using the -nostdinc option, at least. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Jan 8 13:40:26 2025 X-Original-To: standards@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 4YSpvZ5yy1z5kScV for ; Wed, 08 Jan 2025 13:40:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSpvZ2Dlmz4fCT for ; Wed, 8 Jan 2025 13:40:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736343626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oNP2pVQaS3ePExRTDxBGhWff0GmWWfeyDQxd8Po0iqM=; b=A0wI92onCbrtmRjm2UORSPq2vGte/gRegplf9cwA60rEhlmc5O8V1G0WatlHC5MCrnfnhh SOvaxFABtAtmqZf9yZ/aC3TATVH4/gTbkKSRXzRfu4xEZd5JZaFpCItrbA7cOpA0IxhW0z laJ0MAoLZlo2x0lfnD3MStx5TOhgvENv4+HNhSAOjY0NSLlG4JHH7hdSZC5qzDNSxxHDz6 4JihP226Yx27bIIzlB3z6KMrH5h6e61RrDrevcuj6Akmr1PPE6QeFbsM9Dh/lGMRfdwHKR 7x9HvVqQFzMxr6uJF25271JZUd221qOkkxNpQufiPHjxJR8rkC4wJyV4wGzfng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736343626; a=rsa-sha256; cv=none; b=JxpV8gwVoDPlzX/MC4wYn7iL04pcYf2dHJKbOc/m7WD8JXk9LfSokYpafr6EtXa14jgkWP 0B1aL2X7KDh0FpNievfPFltEZX8Sr6VasbnneB4BnMdS2mGlHsioSdVdfalKg50oTqqEid Nq8sFMJ+4ICYN0ZxWhlqIC9NWORjR6IgXMED0nmViRoVTJr6LEByP1XiwrBUmUmcLWjS5c fdWOHstujs7X/c352ohqRIKxranRFB9I8eTVBkTvzLP5aHX8qxbrT8KabVzISW9I2/Ae48 c/TeKKGt3P8Bz0FVzKsSfZjZ/4Ky1ucbGLuXAlx3dxCEeJJvAnx7aoMNyYwhpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSpvZ1P9gzxq6 for ; Wed, 08 Jan 2025 13:40:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 508DeQ1q058698 for ; Wed, 8 Jan 2025 13:40:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 508DeQ5v058697 for standards@FreeBSD.org; Wed, 8 Jan 2025 13:40:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 283917] libc failes to include stdint.h with clang>16 and -ffreestanding Date: Wed, 08 Jan 2025 13:40:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: keve@keve.hu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283917 --- Comment #2 from keve@keve.hu --- Hi Konstantin,=20 thank you for looking at this. I tend to read it differently: The ISO C standard defines (in clause 4) two classes of conforming implementation. A conforming hosted implementation supports the whole stand= ard including all the library facilities; a conforming freestanding implementat= ion is only required to provide certain library facilities: those in , , , and ; since AMD1, also those in ; since C99, also those in and ; and since C11, also th= ose in and . In addition, complex types, added in C= 99, are not required for freestanding implementations. So since C99 it is ok to assume presence of and include stdint.h even with -ffreestanding. Clang starting with 17 implements C99. Also the standard says that a freestanding implementation _may_ not impleme= nt these headers, it does not say anything about it _must_ not implement them. Btw. just confirmed that NetBSD 10.1 can compile this as well. -nostdinc is unfortunately not a viable workaround. Please reconsider your assessment whether this is an issue with FreeBSD lib= c, or not. Thank you! --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Jan 9 00:52:06 2025 X-Original-To: standards@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 4YT5pb1hwGz5kLfV for ; Thu, 09 Jan 2025 00:52:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YT5pZ5Hs8z4y2H for ; Thu, 9 Jan 2025 00:52:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736383926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bXRhUCXt2viplJFdKBgy7f1IMeCyLQV5ni3h1K3UYvM=; b=swBbCuP32L/kznTDzZuMEJhbbtXQkCz2Na9nOjj9z9UOUvfTUBJN3EN6V1EX913+V93xOq zB5us/PjLHYg3ML26vSaFJAHB5lYaFttLzbi8vpEY0Ml7UCa6T/Zd39Z3Ctvf4FSVvdfN3 Y07lGXmoe3rrM1GPx0KdUKYeJCdFxyclpINuKKUMu6V0vrfu4iHAmK9wDew2PC4jNsKsyE v9BiuivVZKOejLD1beI10YdC6K3fe7LHamne4ybOaiIY3rw/9PFLsaGSOOe5GS7B3WYPdz /kQyPfe/+B4Idxn7CcwbNclSQaUj/14pniQmDmjJ8YsQeVB9ytUXkpURZjZq+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736383926; a=rsa-sha256; cv=none; b=SesMKf39uIleTou//LiKYEE3ZoYf93aaMYlcGbqzVqUy2fuuVSh8HNAO8/wwRh/t7Hghc/ chZgtmViDzKoOsidnuJJC3/oie7O9gzVmk8ihmkxsH9VGIw3uPyHQ4ZKqYaenPTKb/DraU VOAkVZq4bDsVH+gSjnuCnHBc6s38V0ytSk2dYp0iH1QHL68c69n5R57eokZ27N9biMgpvZ vpujB4dE+s3jffHOMk1rerP9ZfsvTlSe9sYrxzyqH+cg7HSy1493gG7BSDLq4j/XbzX59N WqoxJ58wtscPp9k0N5rAalp/DVr+6k90XX1IChrKHgaU7qPdcCo9EWcAQk2DcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YT5pZ4pR0z1HnN for ; Thu, 09 Jan 2025 00:52:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5090q6qT026282 for ; Thu, 9 Jan 2025 00:52:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5090q6MT026281 for standards@FreeBSD.org; Thu, 9 Jan 2025 00:52:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 283917] libc failes to include stdint.h with clang>16 and -ffreestanding Date: Thu, 09 Jan 2025 00:52:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283917 --- Comment #3 from Konstantin Belousov --- What do you propose to reconsider? The project goals? The project aims to provide the environment for executing unix programs, which are hosted by C = std definition. That said, you do get the clang' project idea of freestanding environment w= hen you specify -ffreestanding. But your 'trivial code' is not trivial, it uses a lot of facilities from the FreeBSD hosted environment which surprisingly = to you do not mix with the clang' freestanding implementation. Either use only clang freestanding bits, or use only FreeBSD hosted env. --=20 You are receiving this mail because: You are the assignee for the bug.=