Bug 239489 - sysutils/openzfs-kmod cc: error: no such file or directory: 'ERROR-tried-to-rebuild-during-make-install'
Summary: sysutils/openzfs-kmod cc: error: no such file or directory: 'ERROR-tried-to-r...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ryan Moeller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-28 09:48 UTC by Graham Perrin
Modified: 2021-01-13 20:12 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (kmoore)


Attachments
Full log (294.89 KB, application/gzip)
2019-07-28 09:48 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2019-07-28 09:48:16 UTC
Created attachment 206108 [details]
Full log

root@momh167-gjp4-8570p:/usr/src # date ; uname -v
Sun Jul 28 10:00:05 BST 2019
FreeBSD 13.0-CURRENT r350027 GENERIC 
root@momh167-gjp4-8570p:/usr/src # make -j2 buildkernel
--- buildkernel ---

…

===>  Building for openzfs-kmod-2019072200_1
(cd /usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/module/ && make -f Makefile.bsd CC=cc )
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
Warning: Object directory not changed from original /usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/module
cc  -O2 -pipe  -std=gnu99 -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   -Qunused-arguments    ERROR-tried-to-rebuild-during-make-install -include /usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/include/os/freebsd/spl/sys/ccompile.h -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS -D__BSD_VISIBLE=1 -DHAVE_UIO_ZEROCOPY -DHAVE_KSID -DWITHOUT_NETDUMP -D_SYS_VMEM_H_ -D_MACHINE_ENDIAN_H_ -DKDTRACE_HOOKS -DHAVE_AVX2 -DHAVE_AVX -D__x86_64 -DHAVE_SSE2 -DHAVE_AVX512F -DNDEBUG -DBITS_PER_LONG=64 -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/include -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/include/spl -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/include/os/freebsd -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/include/os/freebsd/spl -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/include/os/freebsd/zfs -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  -Qunused-arguments -mno-aes -mno-avx  -std=iso9899:1999 -c /usr/obj/usr/src/amd64.amd64/sys/GENERIC/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/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/usr/ports/sysutils/openzfs-kmod/work/ZoF-05f627f/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
1 error

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
*** [buildkernel] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildkernel] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src
root@momh167-gjp4-8570p:/usr/src # 

----

root@momh167-gjp4-8570p:/usr/src # cat /etc/make.conf
PORTS_MODULES= sysutils/openzfs-kmod graphics/gpu-firmware-kmod graphics/drm-legacy-kmod
DEFAULT_VERSIONS+=samba=4.8
# <https://forums.freebsd.org/threads/share-your-make-conf-and-src-conf.63544/#post-402964>
# WITHOUT_LLVM_TARGET_AARCH64=
# WITHOUT_LLVM_TARGET_ARM=
# WITHOUT_LLVM_TARGET_MIPS=
# WITHOUT_LLVM_TARGET_POWERPC=
# WITHOUT_LLVM_TARGET_SPARC=
# WITHOUT_LLVM_TARGET_X86=
# <https://forums.freebsd.org/threads/share-your-make-conf-and-src-conf.63544/#post-430516>
WITHOUT_LLVM_TARGET_ALL=
root@momh167-gjp4-8570p:/usr/src #
Comment 1 Graham Perrin 2020-12-13 03:03:04 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
Comment 2 Graham Perrin 2020-12-13 03:03:55 UTC
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
Comment 3 Ryan Moeller freebsd_committer 2021-01-13 20:12:23 UTC
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.