Project

General

Profile

Bug #2729

DragonFly_RELEASE_4_0 make buildkernel error

Added by lhmwzy over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
-Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
-nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
-I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
/usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
-Wold-style-declaration -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 -fno-common
-ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
-mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
-mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
-mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
-mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
-mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
-fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self -std=c99
-Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
/usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
/usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
[-Werror=unused-variable]
/usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
/usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
[-Werror=unused-variable]
cc1: all warnings being treated as errors
*** Error code 1

Stop.
make[4]: stopped in /usr/src/sys/net/pf
*** Error code 1

#git status
On branch DragonFly_RELEASE_4_0
#cat /etc/make.conf
MODULES_WITH_WORLD=true
MODULES_OVERRIDE = dev/acpica net/pf

uname -a
DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy x86_64

History

#1

Updated by lhmwzy over 5 years ago

the kernel config:
platform pc64
machine x86_64
machine_arch x86_64
cpu HAMMER_CPU
ident lhmwzy
maxusers 0
#options CPU_DISABLE_AVX

options INET #InterNETworking
options HAMMER #Hammer Filesystem
options NULLFS #NULL filesystem
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep
this!]
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big
directories
options MFS #Memory Filesystem
options TMPFS #Temporary Filesystem
#options MD_ROOT #MD is a potential root device
#options NFS #Network Filesystem
#options NFS_ROOT #NFS usable as root device, NFS
required
#options MSDOSFS #MSDOS Filesystem
#options CD9660 #ISO 9660 Filesystem
##options PROCFS #Process filesystem
#options COMPAT_43 #Compatible with BSD 4.3
options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI
##options IFPOLL_ENABLE # Support mixed
interrupt-polling
# handling of network device drivers
##options UCONSOLE #Allow users to grab the console
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
##options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM #Rate limit bad replies
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
##options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~128k to driver.
##options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~215k to driver.
options DSCHED_FQ # Fair-queuing disk scheduler

# ALTQ
#options ALTQ #alternate queueing
#options ALTQ_CBQ #class based queueing
#options ALTQ_RED #random early detection
#options ALTQ_RIO #triple red for diffserv (needs RED)
#options ALTQ_HFSC #hierarchical fair service curve
#options ALTQ_PRIQ #priority queue
#options ALTQ_FAIRQ #fair queueing
#options ALTQ_NOPCC #don't use processor cycle counter
#options ALTQ_DEBUG #for debugging

# Debugging for Development
#options DDB
#options DDB_TRACE
#options INVARIANTS

device isa
device pci

# AHCI driver, this will override NATA for AHCI devices,
# both drivers may be included.
#
device ahci
# NEW-ATA (NATA) and ATAPI devices
#
device nata
device natadisk # ATA disk drives
#device natapicd # ATAPI CDROM drives
#device natapifd # ATAPI floppy drives
#device natapist # ATAPI tape drives
#device natapicam # Emulate ATAPI devices as SCSI
#device nataraid # support for ATA software RAID
# controllers
#device natausb # ATA-over-USB support
options ATA_STATIC_ID # Static device numbering

# SCSI peripherals
device mpt
device scbus # SCSI bus (required)
device da # Direct Access (disks)
#device cd # CD
device pass # Passthrough device (direct SCSI access)
#device sg # Passthrough device (linux scsi generic)

# VirtIO support
#device virtio # VirtIO core
#device virtio_blk # VirtIO disk driver
#device virtio_pci # VirtIO transport over PCI bus

# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12

device vga0 at isa?

# kbdmux is the keyboard multiplexer
device kbdmux

# splash screen/screen saver
pseudo-device splash

# syscons is the default console driver, resembling an SCO console
device sc0 at isa? flags 0x100
options SC_PIXEL_MODE # add support for the raster text
mode

device agp # support several AGP chipsets

device em # Intel PRO/1000 adapter Gigabit Ethernet
Card (``Wiseman'')
# Requires ig_hal
# Requires ig_hal
device ig_hal # Intel PRO/1000 hardware abstraction layer

device miibus # MII bus support

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
##pseudo-device sl 1 # Kernel SLIP
##pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
#pseudo-device md # Memory "disks"

# CARP support
#options CARP
#pseudo-device carp

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
##pseudo-device bpf #Berkeley packet filter

##pseudo-device crypto # core crypto support, used by wlan

# FireWire support
#device firewire # FireWire bus code
#device sbp # SCSI over FireWire (Requires scbus and da)
#device fwe # Ethernet over FireWire (non-standard!)

2014-11-05 11:03 GMT+08:00 <>:

> Issue #2729 has been reported by lhmwzy.
>
> ----------------------------------------
> Bug #2729: DragonFly_RELEASE_4_0 make buildkernel error
> http://bugs.dragonflybsd.org/issues/2729
>
> * Author: lhmwzy
> * Status: New
> * Priority: Normal
> * Assignee:
> * Category:
> * Target version:
> ----------------------------------------
> cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
> -Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
> -nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
> -I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
> /usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
> -Wold-style-declaration -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000 -fno-common
> -ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
> -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> -mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
> -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
> -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
> -mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
> -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self -std=c99
> -Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
> /usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
> /usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> cc1: all warnings being treated as errors
> *** Error code 1
>
> Stop.
> make[4]: stopped in /usr/src/sys/net/pf
> *** Error code 1
>
> #git status
> On branch DragonFly_RELEASE_4_0
> #cat /etc/make.conf
> MODULES_WITH_WORLD=true
> MODULES_OVERRIDE = dev/acpica net/pf
>
> uname -a
> DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
> 14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy x86_64
>
>
>
> --
> You have received this notification because you have either subscribed to
> it, or are involved in it.
> To change your notification preferences, please click here:
> http://bugs.dragonflybsd.org/my/account
>

#2

Updated by lhmwzy over 5 years ago

make a patch and solved it.
please review it.

--- sys/net/pf/pf_table.c.orig 2014-11-05 12:37:46.563579000 +0800
+++ sys/net/pf/pf_table.c 2014-11-05 12:26:31.879782000 +0800
@@ -1976,7 +1976,9 @@
struct pfr_kentry *ke = NULL;
int match;
struct sockaddr_in pfr_sin;
+#ifdef INET6
struct sockaddr_in6 pfr_sin6;
+#endif

if (!(kt->pfrkt_flags & PFR_TFLAG_ACTIVE) && kt->pfrkt_root != NULL)
kt = kt->pfrkt_root;
@@ -2023,7 +2025,9 @@
{
struct pfr_kentry *ke = NULL;
struct sockaddr_in pfr_sin;
+#ifdef INET6
struct sockaddr_in6 pfr_sin6;
+#endif

if (!(kt->pfrkt_flags & PFR_TFLAG_ACTIVE) && kt->pfrkt_root != NULL)
kt = kt->pfrkt_root;

2014-11-05 12:23 GMT+08:00 <>:

> Issue #2729 has been updated by lhmwzy.
>
>
> the kernel config:
> platform pc64
> machine x86_64
> machine_arch x86_64
> cpu HAMMER_CPU
> ident lhmwzy
> maxusers 0
> #options CPU_DISABLE_AVX
>
>
> options INET #InterNETworking
> options HAMMER #Hammer Filesystem
> options NULLFS #NULL filesystem
> options FFS #Berkeley Fast Filesystem
> options FFS_ROOT #FFS usable as root device [keep
> this!]
> options SOFTUPDATES #Enable FFS soft updates support
> options UFS_DIRHASH #Improve performance on big
> directories
> options MFS #Memory Filesystem
> options TMPFS #Temporary Filesystem
> #options MD_ROOT #MD is a potential root device
> #options NFS #Network Filesystem
> #options NFS_ROOT #NFS usable as root device, NFS
> required
> #options MSDOSFS #MSDOS Filesystem
> #options CD9660 #ISO 9660 Filesystem
> ##options PROCFS #Process filesystem
> #options COMPAT_43 #Compatible with BSD 4.3
> options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI
> ##options IFPOLL_ENABLE # Support mixed
> interrupt-polling
> # handling of network device
> drivers
> ##options UCONSOLE #Allow users to grab the console
> options KTRACE #ktrace(1) support
> options SYSVSHM #SYSV-style shared memory
> options SYSVMSG #SYSV-style message queues
> options SYSVSEM #SYSV-style semaphores
> ##options P1003_1B #Posix P1003_1B real-time
> extensions
> options _KPOSIX_PRIORITY_SCHEDULING
> options ICMP_BANDLIM #Rate limit bad replies
> options KBD_INSTALL_CDEV # install a CDEV entry in /dev
> ##options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
> # output. Adds ~128k to driver.
> ##options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
> # output. Adds ~215k to driver.
> options DSCHED_FQ # Fair-queuing disk scheduler
>
> # ALTQ
> #options ALTQ #alternate queueing
> #options ALTQ_CBQ #class based queueing
> #options ALTQ_RED #random early detection
> #options ALTQ_RIO #triple red for diffserv (needs
> RED)
> #options ALTQ_HFSC #hierarchical fair service curve
> #options ALTQ_PRIQ #priority queue
> #options ALTQ_FAIRQ #fair queueing
> #options ALTQ_NOPCC #don't use processor cycle counter
> #options ALTQ_DEBUG #for debugging
>
> # Debugging for Development
> #options DDB
> #options DDB_TRACE
> #options INVARIANTS
>
> device isa
> device pci
>
> # AHCI driver, this will override NATA for AHCI devices,
> # both drivers may be included.
> #
> device ahci
> # NEW-ATA (NATA) and ATAPI devices
> #
> device nata
> device natadisk # ATA disk drives
> #device natapicd # ATAPI CDROM drives
> #device natapifd # ATAPI floppy drives
> #device natapist # ATAPI tape drives
> #device natapicam # Emulate ATAPI devices as SCSI
> #device nataraid # support for ATA software RAID
> # controllers
> #device natausb # ATA-over-USB support
> options ATA_STATIC_ID # Static device numbering
>
>
> # SCSI peripherals
> device mpt
> device scbus # SCSI bus (required)
> device da # Direct Access (disks)
> #device cd # CD
> device pass # Passthrough device (direct SCSI access)
> #device sg # Passthrough device (linux scsi generic)
>
>
> # VirtIO support
> #device virtio # VirtIO core
> #device virtio_blk # VirtIO disk driver
> #device virtio_pci # VirtIO transport over PCI bus
>
> # atkbdc0 controls both the keyboard and the PS/2 mouse
> device atkbdc0 at isa? port IO_KBD
> device atkbd0 at atkbdc? irq 1 flags 0x1
> device psm0 at atkbdc? irq 12
>
> device vga0 at isa?
>
> # kbdmux is the keyboard multiplexer
> device kbdmux
>
> # splash screen/screen saver
> pseudo-device splash
>
> # syscons is the default console driver, resembling an SCO console
> device sc0 at isa? flags 0x100
> options SC_PIXEL_MODE # add support for the raster text
> mode
>
> device agp # support several AGP chipsets
>
>
>
> device em # Intel PRO/1000 adapter Gigabit Ethernet
> Card (``Wiseman'')
> # Requires ig_hal
> # Requires ig_hal
> device ig_hal # Intel PRO/1000 hardware abstraction layer
>
>
> device miibus # MII bus support
>
>
> # Pseudo devices - the number indicates how many units to allocate.
> pseudo-device loop # Network loopback
> pseudo-device ether # Ethernet support
> ##pseudo-device sl 1 # Kernel SLIP
> ##pseudo-device tun # Packet tunnel.
> pseudo-device pty # Pseudo-ttys (telnet etc)
> #pseudo-device md # Memory "disks"
>
> # CARP support
> #options CARP
> #pseudo-device carp
>
> # The `bpf' pseudo-device enables the Berkeley Packet Filter.
> # Be aware of the administrative consequences of enabling this!
> ##pseudo-device bpf #Berkeley packet filter
>
> ##pseudo-device crypto # core crypto support, used by wlan
>
>
> # FireWire support
> #device firewire # FireWire bus code
> #device sbp # SCSI over FireWire (Requires scbus and
> da)
> #device fwe # Ethernet over FireWire (non-standard!)
>
> 2014-11-05 11:03 GMT+08:00 <>:
>
> > Issue #2729 has been reported by lhmwzy.
> >
> > ----------------------------------------
> > Bug #2729: DragonFly_RELEASE_4_0 make buildkernel error
> > http://bugs.dragonflybsd.org/issues/2729
> >
> > * Author: lhmwzy
> > * Status: New
> > * Priority: Normal
> > * Assignee:
> > * Category:
> > * Target version:
> > ----------------------------------------
> > cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> > -Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
> > -Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
> > -nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
> > -I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
> > /usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
> > -Wold-style-declaration -finline-limit=8000 --param
> > inline-unit-growth=100 --param large-function-growth=1000 -fno-common
> > -ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
> > -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> > -mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
> > -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
> > -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
> > -mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
> > -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
> > -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> > -Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self
> -std=c99
> > -Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
> > /usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
> > /usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
> > [-Werror=unused-variable]
> > /usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
> > /usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
> > [-Werror=unused-variable]
> > cc1: all warnings being treated as errors
> > *** Error code 1
> >
> > Stop.
> > make[4]: stopped in /usr/src/sys/net/pf
> > *** Error code 1
> >
> > #git status
> > On branch DragonFly_RELEASE_4_0
> > #cat /etc/make.conf
> > MODULES_WITH_WORLD=true
> > MODULES_OVERRIDE = dev/acpica net/pf
> >
> > uname -a
> > DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
> > 14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy
> x86_64
> >
> >
> >
> > --
> > You have received this notification because you have either subscribed to
> > it, or are involved in it.
> > To change your notification preferences, please click here:
> > http://bugs.dragonflybsd.org/my/account
> >
>
> ----------------------------------------
> Bug #2729: DragonFly_RELEASE_4_0 make buildkernel error
> http://bugs.dragonflybsd.org/issues/2729#change-12240
>
> * Author: lhmwzy
> * Status: New
> * Priority: Normal
> * Assignee:
> * Category:
> * Target version:
> ----------------------------------------
> cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
> -Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
> -nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
> -I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
> /usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
> -Wold-style-declaration -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000 -fno-common
> -ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
> -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> -mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
> -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
> -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
> -mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
> -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self -std=c99
> -Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
> /usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
> /usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> cc1: all warnings being treated as errors
> *** Error code 1
>
> Stop.
> make[4]: stopped in /usr/src/sys/net/pf
> *** Error code 1
>
> #git status
> On branch DragonFly_RELEASE_4_0
> #cat /etc/make.conf
> MODULES_WITH_WORLD=true
> MODULES_OVERRIDE = dev/acpica net/pf
>
> uname -a
> DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
> 14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy x86_64
>
>
>
> --
> You have received this notification because you have either subscribed to
> it, or are involved in it.
> To change your notification preferences, please click here:
> http://bugs.dragonflybsd.org/my/account
>

#3

Updated by ftigeot over 5 years ago

Just to clarify, this is about building a special kernel without INET6 support, right ?

#4

Updated by lhmwzy over 5 years ago

YES,I don't have any inet6 now,so I don't need inet6.

2014-11-05 16:02 GMT+08:00 <>:

> Issue #2729 has been updated by ftigeot.
>
>
> Just to clarify, this is about building a special kernel without INET6
> support, right ?
>
> ----------------------------------------
> Bug #2729: DragonFly_RELEASE_4_0 make buildkernel error
> http://bugs.dragonflybsd.org/issues/2729#change-12246
>
> * Author: lhmwzy
> * Status: New
> * Priority: Normal
> * Assignee:
> * Category:
> * Target version:
> ----------------------------------------
> cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
> -Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
> -nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
> -I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
> /usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
> -Wold-style-declaration -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000 -fno-common
> -ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
> -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> -mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
> -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
> -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
> -mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
> -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self -std=c99
> -Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
> /usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
> /usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> cc1: all warnings being treated as errors
> *** Error code 1
>
> Stop.
> make[4]: stopped in /usr/src/sys/net/pf
> *** Error code 1
>
> #git status
> On branch DragonFly_RELEASE_4_0
> #cat /etc/make.conf
> MODULES_WITH_WORLD=true
> MODULES_OVERRIDE = dev/acpica net/pf
>
> uname -a
> DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
> 14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy x86_64
>
>
>
> --
> You have received this notification because you have either subscribed to
> it, or are involved in it.
> To change your notification preferences, please click here:
> http://bugs.dragonflybsd.org/my/account
>

#5

Updated by ftigeot over 5 years ago

Thanks for the patch, it has been pushed to -master.

Even though it allows pf(4) to build, I still wouldn't count on it working properly afterwards.

#6

Updated by marino over 5 years ago

  • Status changed from New to Closed

In the future, I'd make it extremely clear in the very first lines that you are getting an error while building a CUSTOM kernel. That doesn't make your report any less valid but it definitely helps to frame the problem.

Closing PR as it was committed in master (maybe 4.0 too, pending)

#7

Updated by lhmwzy over 5 years ago

YES,there is still issue.
After build complete,run "kldload pf" give error "kldload: an error
occurred while loading the module. Please check dmesg(8) for more details".
dmesg shows:
link_elf_obj_obj: symbol bpf_mtap_hdr undefined
linker_load_file: Unsupported file type

2014-11-05 18:15 GMT+08:00 <>:

> Issue #2729 has been updated by ftigeot.
>
>
> Thanks for the patch, it has been pushed to -master.
>
> Even though it allows pf(4) to build, I still wouldn't count on it working
> properly afterwards.
>
> ----------------------------------------
> Bug #2729: DragonFly_RELEASE_4_0 make buildkernel error
> http://bugs.dragonflybsd.org/issues/2729#change-12257
>
> * Author: lhmwzy
> * Status: New
> * Priority: Normal
> * Assignee:
> * Category:
> * Target version:
> ----------------------------------------
> cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
> -Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
> -nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
> -I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
> /usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
> -Wold-style-declaration -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000 -fno-common
> -ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
> -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> -mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
> -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
> -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
> -mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
> -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self -std=c99
> -Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
> /usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
> /usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> cc1: all warnings being treated as errors
> *** Error code 1
>
> Stop.
> make[4]: stopped in /usr/src/sys/net/pf
> *** Error code 1
>
> #git status
> On branch DragonFly_RELEASE_4_0
> #cat /etc/make.conf
> MODULES_WITH_WORLD=true
> MODULES_OVERRIDE = dev/acpica net/pf
>
> uname -a
> DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
> 14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy x86_64
>
>
>
> --
> You have received this notification because you have either subscribed to
> it, or are involved in it.
> To change your notification preferences, please click here:
> http://bugs.dragonflybsd.org/my/account
>

#8

Updated by lhmwzy over 5 years ago

sorry for my urgent.
It needs to add "pseudo-device bpf" to kernel config.
After add and make kernel again,all run well

Thanks for everyone's reply.

2014-11-05 19:45 GMT+08:00 <>:

> Issue #2729 has been updated by lhmwzy.
>
>
> YES,there is still issue.
> After build complete,run "kldload pf" give error "kldload: an error
> occurred while loading the module. Please check dmesg(8) for more details".
> dmesg shows:
> link_elf_obj_obj: symbol bpf_mtap_hdr undefined
> linker_load_file: Unsupported file type
>
> 2014-11-05 18:15 GMT+08:00 <>:
>
> > Issue #2729 has been updated by ftigeot.
> >
> >
> > Thanks for the patch, it has been pushed to -master.
> >
> > Even though it allows pf(4) to build, I still wouldn't count on it
> working
> > properly afterwards.
> >
> > ----------------------------------------
> > Bug #2729: DragonFly_RELEASE_4_0 make buildkernel error
> > http://bugs.dragonflybsd.org/issues/2729#change-12257
> >
> > * Author: lhmwzy
> > * Status: New
> > * Priority: Normal
> > * Assignee:
> > * Category:
> > * Target version:
> > ----------------------------------------
> > cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> > -Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
> > -Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
> > -nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
> > -I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
> > /usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
> > -Wold-style-declaration -finline-limit=8000 --param
> > inline-unit-growth=100 --param large-function-growth=1000 -fno-common
> > -ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
> > -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> > -mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
> > -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
> > -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
> > -mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
> > -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
> > -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> > -Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self
> -std=c99
> > -Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
> > /usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
> > /usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
> > [-Werror=unused-variable]
> > /usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
> > /usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
> > [-Werror=unused-variable]
> > cc1: all warnings being treated as errors
> > *** Error code 1
> >
> > Stop.
> > make[4]: stopped in /usr/src/sys/net/pf
> > *** Error code 1
> >
> > #git status
> > On branch DragonFly_RELEASE_4_0
> > #cat /etc/make.conf
> > MODULES_WITH_WORLD=true
> > MODULES_OVERRIDE = dev/acpica net/pf
> >
> > uname -a
> > DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
> > 14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy
> x86_64
> >
> >
> >
> > --
> > You have received this notification because you have either subscribed to
> > it, or are involved in it.
> > To change your notification preferences, please click here:
> > http://bugs.dragonflybsd.org/my/account
> >
>
> ----------------------------------------
> Bug #2729: DragonFly_RELEASE_4_0 make buildkernel error
> http://bugs.dragonflybsd.org/issues/2729#change-12259
>
> * Author: lhmwzy
> * Status: Closed
> * Priority: Normal
> * Assignee:
> * Category:
> * Target version:
> ----------------------------------------
> cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -Wold-style-definition -Wno-inline -Wno-pointer-sign
> -Winit-self -std=c99 -Wno-unused-but-set-variable -Werror -DKLD_MODULE
> -nostdinc -I. -I@ -I/usr/obj/usr/src/sys/lhmwzy
> -I/usr/obj/usr/src/sys/lhmwzy/include -I@/../include -include
> /usr/obj/usr/src/sys/lhmwzy/opt_global.h -fno-omit-frame-pointer
> -Wold-style-declaration -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000 -fno-common
> -ffreestanding -fno-stack-protector -mcmodel=kernel -mno-red-zone
> -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> -mpreferred-stack-boundary=4 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
> -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
> -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
> -mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
> -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -std=gnu99 -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -Wold-style-definition -Wno-inline -Wno-pointer-sign -Winit-self -std=c99
> -Wno-unused-but-set-variable -c /usr/src/sys/net/pf/pf_table.c
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_match_addr':
> /usr/src/sys/net/pf/pf_table.c:1979:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> /usr/src/sys/net/pf/pf_table.c: In function 'pfr_update_stats':
> /usr/src/sys/net/pf/pf_table.c:2026:23: error: unused variable 'pfr_sin6'
> [-Werror=unused-variable]
> cc1: all warnings being treated as errors
> *** Error code 1
>
> Stop.
> make[4]: stopped in /usr/src/sys/net/pf
> *** Error code 1
>
> #git status
> On branch DragonFly_RELEASE_4_0
> #cat /etc/make.conf
> MODULES_WITH_WORLD=true
> MODULES_OVERRIDE = dev/acpica net/pf
>
> uname -a
> DragonFly 3.8-RELEASE DragonFly v3.8.2.22.g2464c-RELEASE #3: Mon Nov 3
> 14:20:51 CST 2014 :/usr/obj/usr/src/sys/lhmwzy x86_64
>
>
>
> --
> You have received this notification because you have either subscribed to
> it, or are involved in it.
> To change your notification preferences, please click here:
> http://bugs.dragonflybsd.org/my/account
>

Also available in: Atom PDF