[Bug 233735] Possible build race: genoffset.o /usr/src/sys/sys/types.h: error: machine/endian.h: No such file or directory
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Apr 30 02:35:55 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233735
--- Comment #8 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(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/include/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/include/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/include/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/include/machine/endian.h
-> ../../../sys/arm/include/endian.h
# find / -name endian.h -print | grep sys/arm/include/endian.h
/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-kernel-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/include/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/include/machine/endian.h
# ls -LTldU
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp/usr/include/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/include/machine/endian.h
For reference:
# more
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-CA7/genoffset.o.meta
# Meta data file
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-CA7/genoffset.o.meta
CMD cc -mcpu=cortex-a7 -target armv7-gnueabihf-freebsd13.0
--sysroot=/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/tmp
-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=armv7a
-DLINUX_DTS_VERSION=\""5.9"\" -funwind-tables
-fdebug-prefix-map=./machine=/usr/13_0R-src/sys/arm/include -ffreestanding
-fwrapv -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare
-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=none -std=iso9899: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-NODBG-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 <machine/endian.h>
^~~~~~~~~~~~~~~~~~
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-NODBG-CA7/genoffset.o
Building
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-CA7/vnode_if_newproto.h
Building
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-CA7/vnode_if_typedef.h
Building
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-CA7/usbdevs_data.h
Building
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-CA7/sdma-imx6q.c
Building
/usr/obj/BUILDs/13_0R-CA7-nodbg-clang/usr/13_0R-src/arm.armv7/sys/GENERIC-NODBG-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 <machine/endian.h>
^~~~~~~~~~~~~~~~~~
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list