Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2020 07:27:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246766] make kernel does not complete , /usr/src/sys/kern/genoffset.c cc: error: no such file or directory: 'FLAGS'
Message-ID:  <bug-246766-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246766

            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@FreeBSD.org
          Reporter: ulassayginim@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/Late=
st/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=20

/etc/src.conf
OPTIONS_UNSET=3D_ATM=3DYES
OPTIONS_UNSET_BLUETOOTH=3DYES
OPTIONS_UNSET_DICT=3DYES
OPTIONS_UNSET_EXAMPLES=3DYES
OPTIONS_UNSET_GAMES=3DYES
OPTIONS_UNSET_IPFILTER=3DYES
OPTIONS_UNSET_HTML=3DYES
OPTIONS_UNSET_LPR=3DYES=C2=A7
OPTIONS_UNSET_NDIS=3DYES
OPTIONS_UNSET_MAN=3DYES
OPTIONS_UNSET_MANPAGES=3DYES
OPTIONS_UNSET_MAN_UTILS=3DYES
OPTIONS_UNSET_PROFILE=3DYES
OPTIONS_UNSET_WIRELESS=3DYES
OPTIONS_UNSET_WIRELESS_SUPPORT=3DYES
OPTIONS_UNSET_WPA_SUPPLICANT_EAPOL=3DYES
OPTIONS_UNSET_sound=3DYES
OPTIONS_UNSET_ntfs=3DYES
OPTIONS_UNSET_linux=3DYES


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

#Default Versions

DEFAULT_VERSIONS+=3Dssl=3Dlibressl python=3D3.8 python2=3D2.7 python3=3D3.8=
 php=3D7.4
pgsql=3D12 mysql=3D8

# Headless server options
OPTIONS_SET+=3DICONV
OPTIONS_UNSET+=3DCUPS DEBUG DOCS FONTCONFIG NLS X11 MAN EXAMPLES MAN3 MANPA=
GES
## Libre SSL Needs These
ftp_curl_UNSET=3D   TLS_SRP
# LibreSSL doesn't work with GSSAPI_BASE
security_p5-GSSAPI_SET     =3D GSSAPI_MIT
OPTIONS_UNSET             +=3D GSSAPI_BASE
OPTIONS_SET               +=3D GSSAPI_NONE


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

rm -f machine x86 .depend .depend.* GPATH GRTAGS GSYMS GTAGS
=3D=3D=3D> 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=3D/usr/obj/usr/src/amd64.amd64/tmp  INSTALL=3D"sh
/usr/src/tools/install.sh"=20
PATH=3D/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/am=
d64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/s=
bin:/bin:/usr/sbin:/usr/bin
 WORLDTMP=3D/usr/obj/usr/src/amd64.amd64/tmp make  -f Makefile.inc1  DESTDI=
R=3D=20
OBJTOP=3D'/usr/obj/usr/src/amd64.amd64/tmp/obj-kernel-tools'=20
OBJROOT=3D'${OBJTOP}/'  MAKEOBJDIRPREFIX=3D  BOOTSTRAPPING=3D1201516  SSP_C=
FLAGS=3D=20
MK_HTML=3Dno -DNO_LINT MK_MAN=3Dno  -DNO_PIC MK_PROFILE=3Dno -DNO_SHARED=20
-DNO_CPU_CFLAGS MK_RETPOLINE=3Dno MK_WARNS=3Dno MK_CTF=3Dno 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=3Damd64 MACHINE=
=3Damd64
CPUTYPE=3Dnative CC=3D"cc -target x86_64-unknown-freebsd12.1
--sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CXX=3D"c++  -target
x86_64-unknown-freebsd12.1 --sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CPP=3D"cpp -target
x86_64-unknown-freebsd12.1 --sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" AS=3D"as" AR=3D"ar" LD=3D"ld"
LLVM_LINK=3D"" NM=3Dnm OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D SIZE=
=3D"size"
INSTALL=3D"sh /usr/src/tools/install.sh"
PATH=3D/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/am=
d64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/u=
sr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/us=
r/bin:/sbin:/bin:/usr/sbin:/usr/bin
make  -m /usr/src/share/mk  KERNEL=3Dkernel all -DNO_MODULES_OBJ
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
cc -target x86_64-unknown-freebsd12.1
--sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c FLAGS -march=3Dnative -g -nos=
tdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include
-I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -inclu=
de
opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD
-MF.depend.genoffset.o -MTgenoffset.o
-fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include -mcmodel=3Dkernel -mn=
o-red-zone
-mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestandi=
ng
-fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef
-Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-comp=
are
-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=3Diso9899: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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246766-227>