Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2024 00:53:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278822] Errors in building the kernel config with its own value MSGBUF_SIZE, MCLSHIFT and NBUF
Message-ID:  <bug-278822-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 278822
           Summary: Errors in building the kernel config with its own
                    value MSGBUF_SIZE, MCLSHIFT and NBUF
           Product: Base System
           Version: 14.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: admin@support.od.ua

FreeBSD 14.1-PRERELEASE #0 stable/14-n267586-19e335596658: Thu May  2 20:41=
:56
UTC 2024
# cat /usr/src/.gituprevision
stable/14:45764d1d4

# cat << EOF >> /usr/src/sys/amd64/conf/test-14-0

include GENERIC
ident test-14-0
hints   "GENERIC.hints" # Default places to look for devices.

# Size of the kernel message buffer.  Should be N * pagesize.
options         MSGBUF_SIZE=3D40960

## mbuf
options         MCLSHIFT=3D12                     # mbuf cluster shift in b=
its,
12 =3D=3D 4KB
options         MSIZE=3D512                       # mbuf size in bytes

options         MBUF_PROFILING
options         NBUF=3D1024                       # Number of buffer headers

EOF

When building stable/13 (13.3-STABLE d9ec850bd) there is no such problem.


cc -target x86_64-unknown-freebsd14.1
--sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe  -fno-strict-aliasi=
ng=20
-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 -inclu=
de
opt_global.h -fno-common    -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -MD  -MF.depend.freebsd32_misc.o
-MTfreebsd32_misc.o -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/inc=
lude
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
-fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include -mcmodel=3Dkernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tabl=
es
-ffreestanding -fwrapv -fstack-protector -Wall -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=3Dtautological-co=
mpare
-Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality
-Wno-error=3Dunused-function -Wno-error=3Dpointer-sign
-Wno-error=3Dshift-negative-value -Wno-address-of-packed-member
-Wno-format-zero-length   -mno-aes -mno-avx  -std=3Dgnu99 -Werror
/usr/src/sys/compat/freebsd32/freebsd32_misc.c
In file included from /usr/src/sys/compat/freebsd32/freebsd32_misc.c:57:
/usr/src/sys/sys/mbuf.h:887:7: error: duplicate case value '4096'
  887 |         case MJUMPAGESIZE:
      |              ^
/usr/src/sys/sys/param.h:205:22: note: expanded from macro 'MJUMPAGESIZE'
  205 | #define MJUMPAGESIZE    PAGE_SIZE
      |                         ^
./machine/param.h:98:19: note: expanded from macro 'PAGE_SIZE'
   98 | #define PAGE_SIZE       (1<<PAGE_SHIFT) /* bytes/page */
      |                         ^
/usr/src/sys/sys/mbuf.h:884:7: note: previous case defined here
  884 |         case MCLBYTES:
      |              ^
/usr/src/sys/sys/param.h:202:18: note: expanded from macro 'MCLBYTES'
  202 | #define MCLBYTES        (1 << MCLSHIFT) /* size of an mbuf cluster =
*/
      |                         ^
In file included from /usr/src/sys/compat/freebsd32/freebsd32_misc.c:57:
/usr/src/sys/sys/mbuf.h:935:7: error: duplicate case value '4096'
  935 |         case MJUMPAGESIZE:
      |              ^
/usr/src/sys/sys/param.h:205:22: note: expanded from macro 'MJUMPAGESIZE'
  205 | #define MJUMPAGESIZE    PAGE_SIZE
      |                         ^
./machine/param.h:98:19: note: expanded from macro 'PAGE_SIZE'
   98 | #define PAGE_SIZE       (1<<PAGE_SHIFT) /* bytes/page */
      |                         ^
/usr/src/sys/sys/mbuf.h:932:7: note: previous case defined here
  932 |         case MCLBYTES:
      |              ^
/usr/src/sys/sys/param.h:202:18: note: expanded from macro 'MCLBYTES'
  202 | #define MCLBYTES        (1 << MCLSHIFT) /* size of an mbuf cluster =
*/
      |                         ^
2 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/test-14-0
       14.46 real         4.05 user        10.24 sys
*** 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-278822-227>