Date: Fri, 30 Apr 2021 04:20:19 +0000 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 Message-ID: <bug-233735-227-IlTtE3g7c2@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-233735-227@https.bugs.freebsd.org/bugzilla/> References: <bug-233735-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233735 --- Comment #11 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233735-227-IlTtE3g7c2>