[Bug 278822] Errors in building the kernel config with its own value MSGBUF_SIZE, MCLSHIFT and NBUF
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 278822] Errors in building the kernel config with its own value MSGBUF_SIZE, MCLSHIFT and NBUF"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 278822] Errors in building the kernel config with its own value MSGBUF_SIZE, MCLSHIFT and NBUF"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 278822] Errors in building the kernel config with its own value MSGBUF_SIZE, MCLSHIFT and NBUF"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 278822] Errors in building the kernel config with its own value MSGBUF_SIZE, MCLSHIFT and NBUF"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 278822] Errors in building the kernel config with its own value MSGBUF_SIZE, MCLSHIFT and NBUF"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 May 2024 00:53:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278822 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=40960 ## mbuf options MCLSHIFT=12 # mbuf cluster shift in bits, 12 == 4KB options MSIZE=512 # mbuf size in bytes options MBUF_PROFILING options NBUF=1024 # 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=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -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-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.freebsd32_misc.o -MTfreebsd32_misc.o -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -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 -mno-aes -mno-avx -std=gnu99 -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 -- You are receiving this mail because: You are the assignee for the bug.