From owner-freebsd-bugs@freebsd.org Fri Apr 30 03:28:41 2021 Return-Path: Delivered-To: freebsd-bugs@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 5F8C15E5BD4 for ; Fri, 30 Apr 2021 03:28:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FWdBK1y3yz3mcJ for ; Fri, 30 Apr 2021 03:28:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 42D445E6006; Fri, 30 Apr 2021 03:28:41 +0000 (UTC) Delivered-To: bugs@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 429965E5E36 for ; Fri, 30 Apr 2021 03:28: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FWdBK1Mlfz3mjH for ; Fri, 30 Apr 2021 03:28:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 180692530E for ; Fri, 30 Apr 2021 03:28: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 13U3SfI3068459 for ; Fri, 30 Apr 2021 03:28:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13U3Sfah068458 for bugs@FreeBSD.org; Fri, 30 Apr 2021 03:28: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: bugs@FreeBSD.org Subject: [Bug 233735] Possible build race: genoffset.o /usr/src/sys/sys/types.h: error: machine/endian.h: No such file or directory Date: Fri, 30 Apr 2021 03:28:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2021 03:28:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233735 --- Comment #10 from Mark Millard --- (In reply to Mark Millard from comment #9) Some experiments with a command adjusted to be tolerable to gcc10 (just to find the include handling behavior) and using -v that shows the include paths shows: #include "..." search starts here: #include <...> search starts here: . /usr/13_0R-src/sys /usr/13_0R-src/sys/contrib/ck/include /usr/13_0R-src/sys/contrib/libfdt /usr/13_0R-src/sys/contrib/device-tree/include and gets: In file included from /usr/13_0R-src/sys/sys/param.h:99, from /usr/13_0R-src/sys/kern/genoffset.c:35: /usr/13_0R-src/sys/sys/types.h:46:10: fatal error: machine/endian.h: No such file or directory 46 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. Given the search path listed, the failure makes sense. It appears that: --sysroot=3D/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/t= mp is not ending up contributing to the path list. Same when I added a -isysroot for the path. Notably I have: # zfs list=20 NAME USED AVAIL REFER MOUNTPOINT zroot 56.2G 137G 96K /zroot zroot/BUILDs 25.3G 137G 120K /usr/obj/BUILDs . . . zroot/BUILDs/13_0R-CA7-nodbg-clang 5.04G 137G 5.04G=20 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang . . . but there is also: . . . zroot/usr/13_0R-src 2.02G 137G 2.02G /usr/13_0R-src . . . and paths with a /usr/13_0R-src prefix are showing up. (But that does not involve two levels of zfs file systems, however.) It does appear that both system-clang and gcc10 are ending up with similar behavior for the sysroot include file handling during this failure. (I've not rebooted yet.) So either I've got an operator-error problem that I've not noticed or the problem is not specific to system-clang. (I used gcc10 because I'm not aware of a way to have clang report its include search path sequence, just its library search path sequence.) --=20 You are receiving this mail because: You are the assignee for the bug.=