buildkernel: make[2]: exec(ctfconvert) failed (No such file or directory)

From: Gyrd Thane Lange <gyrd-se_at_thanelange.no>
Date: Tue, 28 Oct 2014 23:50:11 +0100
Hi!

I'm trying to build CURRENT r273800 with an empty
(actually nonexisting) /etc/src.conf when it previously had contained:

WITHOUT_MODULES=dtrace
WITHOUT_CDDL=

# uname -a
FreeBSD onyx.thanelange.no 11.0-CURRENT FreeBSD 11.0-CURRENT #7
r273066M: Sun Oct 19 20:12:57 CEST 2014
root_at_onyx.thanelange.no:/usr/obj/usr/src/sys/ONYX  amd64

# rm -rf /usr/obj/*
# make buildworld buildkernel

The world build succeeds fine, but the kernel build fails with:

--------------------------------------------------------------
>>> stage 3.2: building everything
--------------------------------------------------------------
cd /usr/obj/usr/src/sys/ONYX; MAKEOBJDIRPREFIX=/usr/obj
MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE=
GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin
GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font
GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac
_SHLIBDIRPREFIX=/usr/obj/usr/src/tmp  _LDSCRIPTROOT=  VERSION="FreeBSD
11.0-CURRENT amd64 1100040"  INSTALL="sh /usr/src/tools/install.sh"
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
CC="cc " CXX="c++  "  DEPFLAGS=""  CPP="cpp "  AS="as" AR="ar" LD="ld"
NM=nm  OBJDUMP= OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SIZE="size"
make  -m /usr/src/share/mk  KERNEL=kernel all -DNO_MODULES_OBJ

cc -c -x assembler-with-cpp -DLOCORE -O2 -pipe -fno-strict-aliasing
-std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
-fdiagnostics-show-option  -Wno-error-tautological-compare
-Wno-error-empty-body  -Wno-error-parentheses-equality
-Wno-error-unused-function -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-gdwarf-2 -mno-aes -mno-avx  -Werror /usr/src/sys/amd64/amd64/locore.S

cc  -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
-fdiagnostics-show-option  -Wno-error-tautological-compare
-Wno-error-empty-body  -Wno-error-parentheses-equality
-Wno-error-unused-function -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-gdwarf-2 -mno-aes -mno-avx -Werror  /usr/src/sys/cam/cam.c

ctfconvert -L VERSION -g cam.o
make[2]: exec(ctfconvert) failed (No such file or directory)
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/sys/ONYX
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src


# find /usr/src/ /usr/obj -name ctfconvert -type f | xargs ls -l

-rwxr-xr-x  1 root  wheel  371211 Oct 28 22:06
/usr/obj/usr/src/cddl/usr.bin/ctfconvert/ctfconvert

This tells me that buildworld succeeded in building the ctfconvert
binary, but buildkernel is not picking up the newly built tool.

Any advice on getting around this?

I would prefer not having to install the new world before building and
installing the new kernel.

Best regards,
Gyrd ^_^
Received on Tue Oct 28 2014 - 21:56:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:53 UTC