[Bug 246766] make kernel does not complete , /usr/src/sys/kern/genoffset.c cc: error: no such file or directory: 'FLAGS'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 27 07:27:04 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246766

            Bug ID: 246766
           Summary: make kernel does not complete ,
                    /usr/src/sys/kern/genoffset.c cc: error: no such file
                    or directory: 'FLAGS'
           Product: Base System
           Version: 12.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: ulassayginim at gmail.com

I have tried to upgrade my system from 12.1-stable to latest version.
I checkout with svn to revision 361546.
I am using
https://download.freebsd.org/ftp/releases/VM-IMAGES/12.1-RELEASE/amd64/Latest/FreeBSD-12.1-RELEASE-amd64.raw.xz
image on ovh vps.
2gb ram 20gb hdd.


I have completed makeworld without problem.
but make kernel gives error below.

my src.conf and make.conf like this 

/etc/src.conf
OPTIONS_UNSET=_ATM=YES
OPTIONS_UNSET_BLUETOOTH=YES
OPTIONS_UNSET_DICT=YES
OPTIONS_UNSET_EXAMPLES=YES
OPTIONS_UNSET_GAMES=YES
OPTIONS_UNSET_IPFILTER=YES
OPTIONS_UNSET_HTML=YES
OPTIONS_UNSET_LPR=YES§
OPTIONS_UNSET_NDIS=YES
OPTIONS_UNSET_MAN=YES
OPTIONS_UNSET_MANPAGES=YES
OPTIONS_UNSET_MAN_UTILS=YES
OPTIONS_UNSET_PROFILE=YES
OPTIONS_UNSET_WIRELESS=YES
OPTIONS_UNSET_WIRELESS_SUPPORT=YES
OPTIONS_UNSET_WPA_SUPPLICANT_EAPOL=YES
OPTIONS_UNSET_sound=YES
OPTIONS_UNSET_ntfs=YES
OPTIONS_UNSET_linux=YES


/etc/make.conf
# allow compiler optimizations specific to our CPU model
CPUTYPE?=native
# optimization level O2 is the highest supported by FreeBSD and most ports.
CFLAGS=-O2 -pipe -fno-strict-aliasing
# COPTFLAGS only apply when building the kernel
COPTFLAGS=\$CFLAGS
# disable profiling, unless you like 1hr compile times
MK_PROFILE=no

#Default Versions

DEFAULT_VERSIONS+=ssl=libressl python=3.8 python2=2.7 python3=3.8 php=7.4
pgsql=12 mysql=8

# Headless server options
OPTIONS_SET+=ICONV
OPTIONS_UNSET+=CUPS DEBUG DOCS FONTCONFIG NLS X11 MAN EXAMPLES MAN3 MANPAGES
## Libre SSL Needs These
ftp_curl_UNSET=   TLS_SRP
# LibreSSL doesn't work with GSSAPI_BASE
security_p5-GSSAPI_SET     = GSSAPI_MIT
OPTIONS_UNSET             += GSSAPI_BASE
OPTIONS_SET               += GSSAPI_NONE


########## Error is ############

rm -f machine x86 .depend .depend.* GPATH GRTAGS GSYMS GTAGS
===> zlib (cleandir)
rm -f export_syms machine x86 zlib.ko zlib.kld zlib.o zlib.ko.full
zlib.ko.debug offset.inc genoffset.o
rm -f machine x86 .depend .depend.* GPATH GRTAGS GSYMS GTAGS

--------------------------------------------------------------
>>> stage 2.3: build tools
--------------------------------------------------------------
cd /usr/src; TOOLS_PREFIX=/usr/obj/usr/src/amd64.amd64/tmp  INSTALL="sh
/usr/src/tools/install.sh" 
PATH=/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin
 WORLDTMP=/usr/obj/usr/src/amd64.amd64/tmp make  -f Makefile.inc1  DESTDIR= 
OBJTOP='/usr/obj/usr/src/amd64.amd64/tmp/obj-kernel-tools' 
OBJROOT='${OBJTOP}/'  MAKEOBJDIRPREFIX=  BOOTSTRAPPING=1201516  SSP_CFLAGS= 
MK_HTML=no -DNO_LINT MK_MAN=no  -DNO_PIC MK_PROFILE=no -DNO_SHARED 
-DNO_CPU_CFLAGS MK_RETPOLINE=no MK_WARNS=no MK_CTF=no kernel-tools
mkdir -p /usr/obj/usr/src/amd64.amd64/tmp/usr
mtree -deUW -f /usr/src/etc/mtree/BSD.usr.dist  -p
/usr/obj/usr/src/amd64.amd64/tmp/usr >/dev/null

--------------------------------------------------------------
>>> stage 3.1: building everything
--------------------------------------------------------------
cd /usr/obj/usr/src/amd64.amd64/sys/GENERIC; MACHINE_ARCH=amd64 MACHINE=amd64
CPUTYPE=native CC="cc -target x86_64-unknown-freebsd12.1
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CXX="c++  -target
x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CPP="cpp -target
x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
LLVM_LINK="" NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
INSTALL="sh /usr/src/tools/install.sh"
PATH=/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
make  -m /usr/src/share/mk  KERNEL=kernel all -DNO_MODULES_OBJ
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
cc -target x86_64-unknown-freebsd12.1
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c FLAGS -march=native -g -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include
-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 -MD
-MF.depend.genoffset.o -MTgenoffset.o
-fdebug-prefix-map=./machine=/usr/src/sys/amd64/include
-fdebug-prefix-map=./x86=/usr/src/sys/x86/include -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 -mno-aes -mno-avx
-std=iso9899:1999 /usr/src/sys/kern/genoffset.c
cc: error: no such file or directory: 'FLAGS'
*** Error code 1

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

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

Stop.
make: stopped in /usr/src

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list