From owner-freebsd-bugs@freebsd.org Fri Apr 30 04:20:19 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 9C0335E6DDB for ; Fri, 30 Apr 2021 04:20:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FWfKv3Tp8z3pd5 for ; Fri, 30 Apr 2021 04:20:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 754295E6B48; Fri, 30 Apr 2021 04:20:19 +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 750405E6BB8 for ; Fri, 30 Apr 2021 04:20:19 +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 4FWfKv15CGz3pgP for ; Fri, 30 Apr 2021 04:20:19 +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 14F4425E7E for ; Fri, 30 Apr 2021 04:20:19 +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 13U4KJBZ096293 for ; Fri, 30 Apr 2021 04:20:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13U4KJrO096292 for bugs@FreeBSD.org; Fri, 30 Apr 2021 04:20:19 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 04:20:19 +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 04:20:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233735 --- Comment #11 from Mark Millard --- (In reply to Mark Millard from comment #10) [Back to system-clang.] clang may not report its search path sequence but truss reports the following involving "machine": 52747: fstatat(AT_FDCWD,"./machine",0xffffffff9190,0x0) ERR#2 'No such file= or directory' 52747: fstatat(AT_FDCWD,"/usr/13_0R-src/sys/machine",0xffffffff9190,0x0) ER= R#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/13_0R-src/sys/contrib/ck/include/machine",0xffffffff= 9190,0x0) ERR#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/13_0R-src/sys/contrib/libfdt/machine",0xffffffff9190= ,0x0) ERR#2 'No such file or directory'=20=20=20 52747: fstatat(AT_FDCWD,"/usr/13_0R-src/sys/contrib/device-tree/include/machine",0= xffffffff9190,0x0) ERR#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/13_0R-src/sys/sys/machine",0xffffffff9ab0,0x0) ERR#2 'No such file or directory' It is not even trying the sysroot as a path prefix for the include involving "machine". The usage involving "BUILDs" was: # grep BUILDs truss.txt 52747: fstatat(AT_FDCWD,"/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.a= rmv7/tmp/usr/local/cuda",0xffffffffc430,0x0) ERR#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.a= rmv7/tmp/usr/local/cuda-8.0",0xffffffffc430,0x0) ERR#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.a= rmv7/tmp/usr/local/cuda-7.5",0xffffffffc430,0x0) ERR#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.a= rmv7/tmp/usr/local/cuda-7.0",0xffffffffc430,0x0) ERR#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.a= rmv7/tmp/opt/rocm",0xffffffffc4e0,0x0) ERR#2 'No such file or directory' 52747: fstatat(AT_FDCWD,"/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.a= rmv7/sys/GENERIC-NODBG-CA7",{ mode=3Ddrwxr-xr-x ,inode=3D6,size=3D3187,blksize=3D16384 },0x0) =3D 0 (0x0) 52747: __realpathat(AT_FDCWD,"./opt_global.h","/usr/obj/BUILDs/13_0R-CA7-nodbg-cla= ng/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-CA7/opt_global.h",1024,0) =3D 0 (0x0) There is no evidence of any attempted use of sysroot has a general include path prefix. A "cc -###" with the other parameters as in the .o.meta does report: "-isysroot" "/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/= tmp" So the following would seem to apply if otherwise /usr/include/ usage would be expected: # ls -PTldU /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/usr/inclu= de/machine/endian.h lrwxr-xr-x 1 root wheel 33 Apr 29 12:38:12 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/usr/inclu= de/machine/endian.h -> ../../../sys/arm/include/endian.h # ls -LTld /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/usr/inclu= de/machine/endian.h -rw-r--r-- 1 root wheel 4311 Apr 28 02:03:34 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/usr/inclu= de/machine/endian.h # ls -LTld /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/sys/arm/i= nclude/endian.h -rw-r--r-- 1 root wheel 4311 Apr 28 02:03:34 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/sys/arm/i= nclude/endian.h But I see no evidence that -isysroot ( or any /usr/include ) is being put to use. --=20 You are receiving this mail because: You are the assignee for the bug.=