Summary: | sysutils/openzfs-kmod cc: error: no such file or directory: 'ERROR-tried-to-rebuild-during-make-install' | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Graham Perrin <grahamperrin> | ||||
Component: | Individual Port(s) | Assignee: | Ryan Moeller <freqlabs> | ||||
Status: | Closed Unable to Reproduce | ||||||
Severity: | Affects Only Me | CC: | ekillips, freqlabs, mirror176 | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(kmoore) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Graham Perrin
2019-07-28 09:48:16 UTC
Still: … ===> Fetching all distfiles required by openzfs-kmod-2020120100 for building ===> Extracting for openzfs-kmod-2020120100 => SHA256 Checksum OK for openzfs-zfs-v2020120100-aa2778d10_GH0.tar.gz. ===> Patching for openzfs-kmod-2020120100 echo '#define ZFS_META_GITREV "zfs-aa2778d10"' > /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/include/zfs_gitrev.h echo '#define ZFS_META_RELEASE "zfs_aa2778d10"' > /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/zfs_config.h echo '#define ZFS_META_VERSION "v2020120100"' >> /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/zfs_config.h ===> Configuring for openzfs-kmod-2020120100 ===> Building for openzfs-kmod-2020120100 (cd /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/module/ && make -f Makefile.bsd CC=cc SYSDIR=/usr/src/sys) machine -> /usr/src/sys/amd64/include x86 -> /usr/src/sys/x86/include awk -f /usr/src/sys/tools/vnode_if.awk /usr/src/sys/kern/vnode_if.src -p awk -f /usr/src/sys/tools/vnode_if.awk /usr/src/sys/kern/vnode_if.src -q awk -f /usr/src/sys/tools/vnode_if.awk /usr/src/sys/kern/vnode_if.src -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h touch opt_global.h Warning: Object directory not changed from original /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/module cc -O2 -pipe -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/11.0.0/include -fstack-protector-strong -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 -Qunused-arguments ERROR-tried-to-rebuild-during-make-install -include /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/include/os/freebsd/spl/sys/ccompile.h -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS -D__BSD_VISIBLE=1 -DHAVE_UIO_ZEROCOPY -DWITHOUT_NETDUMP -D__KERNEL -D_SYS_CONDVAR_H_ -D_SYS_VMEM_H_ -DKDTRACE_HOOKS -DSMP -DHAVE_KSID -DCOMPAT_FREEBSD11 -DHAVE_AVX2 -DHAVE_AVX -D__x86_64 -DHAVE_SSE2 -DHAVE_AVX512F -DHAVE_SSSE3 -DNDEBUG -DBITS_PER_LONG=64 -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/include -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/include -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/include/os/freebsd -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/include/os/freebsd/spl -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/include/os/freebsd/zfs -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/module/zstd/include -include /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/module/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -MD -MF.depend.avl.o -MTavl.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -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 -Qunused-arguments -mno-aes -mno-avx -std=iso9899:1999 -c /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/module/avl/avl.c -o avl.o cc: error: no such file or directory: 'ERROR-tried-to-rebuild-during-make-install' *** Error code 1 Stop. make[5]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/sysutils/openzfs-kmod/work/zfs-aa2778d10/module *** Error code 1 Stop. make[4]: stopped in /usr/ports/sysutils/openzfs-kmod *** Error code 1 Stop. make[3]: stopped in /usr/ports/sysutils/openzfs-kmod *** [all] Error code 1 make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG 1 error make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG root@mowa219-gjp4-8570p:/usr/src # ---- In brief: cd /usr/src && make -j4 buildworld && make -j4 kernel KERNCONF=GENERIC-NODEBUG Context: root@mowa219-gjp4-8570p:~ # svn up /usr/src && portsnap auto Updating '/usr/src': At revision 368589. Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found. Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done. Latest snapshot on server matches what we already have. No updates needed. Ports tree is already up to date. root@mowa219-gjp4-8570p:~ # svn update -r366696 /usr/src/usr.bin/xinstall Updating '/usr/src/usr.bin/xinstall': U /usr/src/usr.bin/xinstall/xinstall.c Updated to revision 366696. root@mowa219-gjp4-8570p:~ # cd /usr/src/usr.bin/xinstall/ root@mowa219-gjp4-8570p:/usr/src/usr.bin/xinstall # make echo xinstall.full: /usr/lib/libc.a /usr/lib/libmd.a >> .depend cc -O2 -pipe -fno-common -I/usr/src/contrib/mtree -I/usr/src/lib/libnetbsd -g -MD -MF.depend.xinstall.o -MTxinstall.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c /usr/src/usr.bin/xinstall/xinstall.c -o xinstall.o cc -O2 -pipe -fno-common -I/usr/src/contrib/mtree -I/usr/src/lib/libnetbsd -g -MD -MF.depend.getid.o -MTgetid.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c /usr/src/contrib/mtree/getid.c -o getid.o cc -O2 -pipe -fno-common -I/usr/src/contrib/mtree -I/usr/src/lib/libnetbsd -g -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -o xinstall.full xinstall.o getid.o -L/usr/obj/usr/src/amd64.amd64/lib/libmd -lmd objcopy --only-keep-debug xinstall.full install.debug objcopy --strip-debug --add-gnu-debuglink=install.debug xinstall.full xinstall gzip -cn /usr/src/usr.bin/xinstall/install.1 > install.1.gz ===> tests (all) echo '#! /usr/libexec/atf-sh' > install_test.tmp cat /usr/src/usr.bin/xinstall/tests/install_test.sh >>install_test.tmp chmod +x install_test.tmp mv install_test.tmp install_test root@mowa219-gjp4-8570p:/usr/src/usr.bin/xinstall # make install install -s -o root -g wheel -m 555 xinstall /usr/bin/install install -o root -g wheel -m 444 install.debug /usr/lib/debug/usr/bin/install.debug install -o root -g wheel -m 444 install.1.gz /usr/share/man/man1/ ===> tests (install) install -o root -g wheel -m 555 install_test /usr/tests/usr.bin/xinstall/install_test installing DIRS testsFILESDIR install -d -m 0755 -o root -g wheel /usr/tests/usr.bin/xinstall install -o root -g wheel -m 444 Kyuafile /usr/tests/usr.bin/xinstall/Kyuafile root@mowa219-gjp4-8570p:/usr/src/usr.bin/xinstall # cd /usr/src && make -j4 buildworld && make -j4 kernel KERNCONF=GENERIC-NODEBUG grahamperrin@mowa219-gjp4-8570p:~ % grep -v \# /etc/src.conf PORTS_MODULES= graphics/gpu-firmware-kmod graphics/drm-devel-kmod sysutils/sysctlinfo-kmod emulators/virtualbox-ose-kmod sysutils/openzfs-kmod BOOT_FRAMEBUFFER_MODE=yes It looks like this was the xinstall issue discussed on the mailing list a while back. Please reopen if I am mistaken and it is still a problem. I am still seeing this bug I have no idea where "ERROR-tried-to-rebuild-during-make-install" is coming from. It's not in ZFS and I don't see it in the ports tree either. (In reply to Ryan Moeller from comment #5) Commit 29fbb8071fd99dd8f90a29538e30c16a89c2dfd2 from Bryan Drewery in /usr/src/share/mk/bsd.sys.mk line 302 'CFLAGS+= ERROR-tried-to-rebuild-during-make-install' is the source of that flag that is not understood on my FreeBSD stable from within about the past 2 weeks. The change describes it should only impact src tree builds mentioning ports and out of tree builds should not be impacted. Also states that it should be disabled for META_MODE as a rebuild would be forced when CFLAGS is changed. I don't 'think' META_MODE is a variable but I do normally have it set. If still not able to reproduce, let me know and I will begin setting up a VM to narrow down if I have any other changes I can narrow down. Problem to consider here likely come from: 1. building a port 2. in objdir 3. with META_MODE (maybe) I can't complete a `make PORTS_MODULES=sysutils/openzfs-kmod buildkernel` with this present while building directly from the ports tree works just fine. |