From owner-freebsd-bugs@freebsd.org Fri Apr 30 02:35:55 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 DE1825E4E57 for ; Fri, 30 Apr 2021 02:35:55 +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 4FWc1R5jGdz3kp6 for ; Fri, 30 Apr 2021 02:35:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C21015E4E56; Fri, 30 Apr 2021 02:35:55 +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 C1CC25E4FBE for ; Fri, 30 Apr 2021 02:35:55 +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 4FWc1R4vWDz3l2X for ; Fri, 30 Apr 2021 02:35:55 +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 9B60A2490C for ; Fri, 30 Apr 2021 02:35:55 +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 13U2Zt1J044236 for ; Fri, 30 Apr 2021 02:35:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13U2ZtoI044235 for bugs@FreeBSD.org; Fri, 30 Apr 2021 02:35:55 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 02:35:55 +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 02:35:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233735 --- Comment #8 from Mark Millard --- (In reply to Li-Wen Hsu from comment #7) I just got this on release/13.0.0 on arm64 cross building to target armv7, where buildworld worked fine but buildkernel then got the problem. (I'll note that I've had other successful buildworld buildkernel makes in recent days.) I was building release/13.0.0 from release/13.0.0 (again). However, I was able to repeat the failure by manually repeating just the cc command that the .o.meta file reported (from the directory it also reported). This eliminates any potential for a race. Yet, before and after doing the cc show the file and links and such as in place and working and having existed for some time: # date Thu Apr 29 15:55:36 PDT 2021 # ls -PTld /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 -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 # find / -name endian.h -print | grep sys/arm/include/endian.h=20 /usr/13_0R-src/sys/arm/include/endian.h /usr/13S-src/sys/arm/include/endian.h /usr/main-src/sys/arm/include/endian.h # ls -Tld /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp= /* -rw-r--r-- 1 root wheel 0 Apr 29 12:32:35 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/_worldtmp drwxr-xr-x 2 root wheel 2 Apr 20 21:51:31 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/bin drwxr-xr-x 4 root wheel 4 Apr 21 02:26:20 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/etc drwxr-xr-x 5 root wheel 6 Apr 29 12:32:36 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/legacy drwxr-xr-x 4 root wheel 65 Apr 29 15:10:19 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/lib drwxrwxr-x 2 root wheel 2 Apr 21 03:39:07 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/obj-kerne= l-tools drwxrwxr-x 9 root wheel 9 Apr 20 21:52:00 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/obj-tools lrwxr-xr-x 1 root wheel 18 Apr 29 12:37:44 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/sys -> /usr/13_0R-src/sys drwxr-xr-x 12 root wheel 12 Apr 20 21:51:31 2021 /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/usr # 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 -LTldU /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 For reference: # more /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/genoffset.o.meta=20 # Meta data file /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/genoffset.o.meta CMD cc -mcpu=3Dcortex-a7 -target armv7-gnueabihf-freebsd13.0 --sysroot=3D/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/t= mp -B/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/usr/bin= -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/13_0R-src/sys -I/usr/13_0R-src/sys/contrib/ck/include -I/usr/13_0R-src/sys/contrib/libfdt -I/usr/13_0R-src/sys/contrib/device-tree/include -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -march=3Darmv7a -DLINUX_DTS_VERSION=3D\""5.9"\" -funwind-tables -fdebug-prefix-map=3D./machine=3D/usr/13_0R-src/sys/arm/include -ffreestand= ing -fwrapv -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-comp= are -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mfpu=3Dnone -std=3Diso9899:1999 -fcommon /usr/13_0R-src/sys/kern/genoffset.c CWD /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7 TARGET genoffset.o -- command output -- In file included from /usr/13_0R-src/sys/kern/genoffset.c:35: In file included from /usr/13_0R-src/sys/sys/param.h:99: /usr/13_0R-src/sys/sys/types.h:46:10: fatal error: 'machine/endian.h' file = not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. *** Error code 1 -- filemon acquired metadata -- # filemon version 5 # Target pid 53002 # Start 1619736690.618151 V 5 E 53040 /bin/sh R 53040 /etc/libmap.conf R 53040 /var/run/ld-elf.so.hints R 53040 /lib/libedit.so.8 R 53040 /lib/libc.so.7 R 53040 /lib/libncursesw.so.9 R 53040 /usr/share/locale/C.UTF-8/LC_CTYPE F 53040 53042 E 53042 /usr/bin/cc R 53042 /etc/libmap.conf R 53042 /var/run/ld-elf.so.hints R 53042 /lib/libz.so.6 R 53042 /usr/lib/libexecinfo.so.1 R 53042 /lib/libncursesw.so.9 R 53042 /lib/libthr.so.3 R 53042 /usr/lib/libc++.so.1 R 53042 /lib/libcxxrt.so.1 R 53042 /lib/libm.so.5 R 53042 /lib/libc.so.7 R 53042 /lib/libelf.so.2 R 53042 /lib/libgcc_s.so.1 R 53042 /usr/13_0R-src/sys/kern/genoffset.c R 53042 genoffset-2c08fcfd.o.tmp W 53042 genoffset-2c08fcfd.o.tmp R 53042 ./opt_global.h R 53042 /usr/13_0R-src/sys/sys/cdefs.h R 53042 /usr/13_0R-src/sys/sys/param.h R 53042 /usr/13_0R-src/sys/sys/_null.h R 53042 /usr/13_0R-src/sys/sys/types.h R 53042 /usr/13_0R-src/sys/sys/_types.h R 53042 /usr/13_0R-src/sys/sys/_pthreadtypes.h R 53042 /usr/13_0R-src/sys/sys/_stdint.h R 53042 /usr/13_0R-src/sys/sys/select.h R 53042 /usr/13_0R-src/sys/sys/_sigset.h R 53042 /usr/13_0R-src/sys/sys/_timeval.h R 53042 /usr/13_0R-src/sys/sys/timespec.h R 53042 /usr/13_0R-src/sys/sys/_timespec.h R 53042 /usr/13_0R-src/sys/sys/syslimits.h R 53042 /usr/13_0R-src/sys/sys/errno.h R 53042 /usr/13_0R-src/sys/sys/time.h R 53042 /usr/13_0R-src/sys/sys/priority.h R 53042 /usr/13_0R-src/sys/sys/assym.h R 53042 /usr/13_0R-src/sys/sys/proc.h R 53042 /usr/13_0R-src/sys/sys/callout.h R 53042 /usr/13_0R-src/sys/sys/_callout.h R 53042 /usr/13_0R-src/sys/sys/queue.h R 53042 /usr/13_0R-src/sys/sys/event.h R 53042 /usr/13_0R-src/sys/sys/_eventhandler.h R 53042 /usr/13_0R-src/sys/sys/condvar.h R 53042 /usr/13_0R-src/sys/sys/_lock.h R 53042 /usr/13_0R-src/sys/sys/lock_profile.h R 53042 /usr/13_0R-src/sys/sys/_mutex.h R 53042 /usr/13_0R-src/sys/sys/osd.h R 53042 /usr/13_0R-src/sys/sys/rtprio.h R 53042 /usr/13_0R-src/sys/sys/runq.h R 53042 /usr/13_0R-src/sys/sys/resource.h R 53042 /usr/13_0R-src/sys/sys/sigio.h R 53042 /usr/13_0R-src/sys/sys/signal.h R 53042 /usr/13_0R-src/sys/sys/signalvar.h R 53042 /usr/13_0R-src/sys/sys/pcpu.h R 53042 /usr/13_0R-src/sys/sys/_cpuset.h R 53042 /usr/13_0R-src/sys/sys/_bitset.h R 53042 /usr/13_0R-src/sys/sys/_sx.h R 53042 /usr/13_0R-src/sys/sys/_rmlock.h R 53042 /usr/13_0R-src/sys/sys/systm.h R 53042 /usr/13_0R-src/sys/sys/stdint.h R 53042 /usr/13_0R-src/sys/sys/kpilite.h R 53042 /usr/13_0R-src/sys/sys/libkern.h R 53042 /usr/13_0R-src/sys/sys/ucontext.h R 53042 /usr/13_0R-src/sys/sys/_ucontext.h R 53042 /usr/13_0R-src/sys/sys/ucred.h R 53042 /usr/13_0R-src/sys/bsm/audit.h R 53042 /usr/13_0R-src/sys/sys/_domainset.h D 53042 genoffset-2c08fcfd.o.tmp D 53042 genoffset.o X 53042 1 0 X 53040 1 0 # Stop 1619736690.746151 # Bye bye Stage 3.1 reported: . . . Building /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/genoffset.o Building /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/vnode_if_newproto.h Building /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/vnode_if_typedef.h Building /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/usbdevs_data.h Building /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/sdma-imx6q.c Building /usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-N= ODBG-CA7/vnode_if.c --- genoffset.o --- In file included from /usr/13_0R-src/sys/kern/genoffset.c:35: In file included from /usr/13_0R-src/sys/sys/param.h:99: /usr/13_0R-src/sys/sys/types.h:46:10: fatal error: 'machine/endian.h' file = not found #include ^~~~~~~~~~~~~~~~~~ My build activity here is from experimenting with using zfs for the first time in many years. So that aspect is unlike my prior examples of this failure. But it also explains why I'd rebuild what I'd already built previously. --=20 You are receiving this mail because: You are the assignee for the bug.=