I'm upgrading a 7.2 machine to 8.0-p1, but I'm running into some problems when compiling the kernel with my custom config. The config is mostly the same as it was for 7.2, removing a few things that aren't needed (STOP_NMI) or no longer exist/work in 8 (sio). It's also fairly similar to another machine I upgraded to 8.0, which had no compilation issues. My config is:
And, during compilation, this causes:
Anyone have an idea of what devices/options are conflicting/missing? I've looked for a man page related to the aic7xxx device, and found nothing except aic6xxx man pages.
Code:
# Custom kernel config
cpu I686_CPU
ident EMERALD
options SCHED_ULE # ULE 3.0 scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options INET6 # IPv6 communications protocols
options MROUTING # Multicast routing support
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_DIRHASH # Improve performance on big directories
options GEOM_PART_GPT # GUID Partition Tables.
options GEOM_LABEL # Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
device cpufreq
device crypto
device padlock
device pci
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID # Static device numbering
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device kbdmux # keyboard multiplexer
device vga # VGA video card driver
device splash # Splash screen and screen saver support
device sc
device pmtimer
device uart # Generic UART driver
device miibus # MII bus support
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
device vr # VIA Rhine, Rhine II
device vlan # 802.1q
device lagg # Link aggregation
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
device bpf # Berkeley packet filter
device pf
device pflog
device pfsync
options DEVICE_POLLING
options ALTQ
options ALTQ_CBQ # Class Based Queuing
options ALTQ_RED # Random Early Detection
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Fair Service Queuing
options ALTQ_PRIQ # Priority Queuing
# USB support
device uhci # UHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
Code:
cc -O2 -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=gnu99 -Wsystem-headers -Werror -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wno-pointer-sign -c aicasm_gram.c
cc1: warnings being treated as errors
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y: In function 'process_field':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:1407: warning: comparison between signed and unsigned
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y: In function 'add_macro_arg':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:1556: warning: comparison between signed and unsigned
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:1537: warning: unused variable 'i'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:1534: warning: unused parameter 'argnum'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y: In function 'add_version':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:1914: warning: declaration of 'prefix' shadows a global declaration
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:68: warning: shadowed declaration is here
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y: At top level:
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:1933: warning: no previous prototype for 'yyerror'
aicasm_gram.c:1534: warning: no previous prototype for 'yyparse'
aicasm_gram.c: In function 'yyparse':
aicasm_gram.c:1560: warning: implicit declaration of function 'yylex'
aicasm_gram.c:1560: warning: nested extern declaration of 'yylex'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:870: warning: comparison between signed and unsigned
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y:881: warning: comparison between signed and unsigned
*** Error code 1
Stop in /usr/obj/usr/src/sys/EMERALD.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.