Re: buildworld panic on ia64

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Tue, 7 Jul 2009 13:44:05 +0100
On Tue, Jul 07, 2009 at 11:50:58AM +0200, Rink Springer wrote:
> On Tue, Jul 07, 2009 at 10:48:08AM +0100, Anton Shterenlikht wrote:
> > panic: mtx_lock_spin() of destroyed mutex _at_ /usr/src/sys/ia64/ia64/trap.c:680
> > cpuid = 0
> > KDB: enter: panic
> > [thread pid 67078 tid 100097 ]
> > Stopped at      kdb_enter+0x92: [I2]    addl r14=0xffffffffffe2a8e8,gp ;;
> 
> Do you have a backtrace ?

no, sorry, I was too quick to reboot.
I tried to reproduce the error, got this on the way:

	# XXX: bogusly disabled high FP regs

which is reported from by sys/ia64/ia64/trap.c, and then this error
(but no panic this time):

===> usr.bin/yacc (all)
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/closure.
c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/error.c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/lalr.c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/lr0.c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/mkpar.c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/output.c

cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/reader.c

cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/main.c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/skeleton
.c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/symtab.c

cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/verbose.
c
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yacc/warshall
.c
gzip -cn /usr/src/usr.bin/yacc/yacc.1 > yacc.1.gz
gzip -cn /usr/src/usr.bin/yacc/yyfix.1 > yyfix.1.gz
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99   -o yacc closure.o error.o lalr.o
 lr0.o main.o mkpar.o output.o reader.o skeleton.o symtab.o verbose.o warshall.o

===> usr.bin/yes (all)
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/yes/yes.c
gzip -cn /usr/src/usr.bin/yes/yes.1 > yes.1.gz
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99   -o yes yes.o
===> usr.bin/ypcat (all)
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/ypcat/ypcat.c

gzip -cn /usr/src/usr.bin/ypcat/ypcat.1 > ypcat.1.gz
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99   -o ypcat ypcat.o
===> usr.bin/ypmatch (all)
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/ypmatch/ypmat
ch.c
gzip -cn /usr/src/usr.bin/ypmatch/ypmatch.1 > ypmatch.1.gz
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99   -o ypmatch ypmatch.o
===> usr.bin/ypwhich (all)
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99  -c /usr/src/usr.bin/ypwhich/ypwhi
ch.c
gzip -cn /usr/src/usr.bin/ypwhich/ypwhich.1 > ypwhich.1.gz
cc -O2 -fno-strict-aliasing -pipe  -std=gnu99   -o ypwhich ypwhich.o
1 error
*** Error code 2
1 error
*** Error code 2
1 error
#


**********************

Below are dmesg and make.conf, if it matters.
There are several backtraces in dmesg,
but I'm not sure now at what stage they appeared.

many thanks

**********************


GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT-200906 #0: Fri Jun 12 22:56:41 UTC 2009
    root_at_hob.lan.xcllnt.net:/usr/obj/usr/src/sys/GENERIC
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Madison (1500.00-Mhz Itanium 2)
  Origin = "GenuineIntel"  Revision = 5
  Features = 0x1<LB>
real memory  = 2126766080 (2028 MB)
avail memory = 2013437952 (1920 MB)
FPSWA Revision = 0x10012, Entry = 0xe00000407fe60050
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0: SAPIC Id=0, SAPIC Eid=0 (BSP)
cpu1: SAPIC Id=1, SAPIC Eid=0
ACPI Warning: 32/64X length mismatch in Gpe0Block: 32/16 20090521 tbfadt-625
ACPI Warning: 32/64X length mismatch in Gpe1Block: 32/16 20090521 tbfadt-625
acpi0: <HP> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> iomem 0xff5c1004-0xff5c1007 on acpi0
acpi_tz0: <Thermal Zone> on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
pci0: <ACPI PCI bus> on pcib0
ohci0: <NEC uPD 9210 USB controller> mem 0x80023000-0x80023fff irq 16 at device 1.0 on pci0
ohci0: [ITHREAD]
usbus0: <NEC uPD 9210 USB controller> on ohci0
ohci1: <NEC uPD 9210 USB controller> mem 0x80022000-0x80022fff irq 17 at device 1.1 on pci0
ohci1: [ITHREAD]
usbus1: <NEC uPD 9210 USB controller> on ohci1
ehci0: <NEC uPD 720100 USB 2.0 controller> mem 0x80021000-0x800210ff irq 18 at device 1.2 on pci0
ehci0: [ITHREAD]
usbus2: EHCI version 0.95
usbus2: <NEC uPD 720100 USB 2.0 controller> on ehci0
atapci0: <SiI (CMD) 649 UDMA100 controller> port 0xd58-0xd5f,0xd64-0xd67,0xd50-0xd57,0xd60-0xd63,0xd40-0xd4f irq 21 at device 2.0 on pci0
atapci0: [ITHREAD]
atapci0: HW has secondary channel disabled
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
fxp0: <Intel 82550 Pro/100 Ethernet> port 0xd00-0xd3f mem 0x80020000-0x80020fff,0x80000000-0x8001ffff irq 20 at device 3.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> PHY 1 on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:11:0a:31:d6:ec
fxp0: [ITHREAD]
pcib1: <ACPI Host-PCI bridge> on acpi0
pci32: <ACPI PCI bus> on pcib1
mpt0: <LSILogic 1030 Ultra4 Adapter> port 0x2100-0x21ff mem 0x90840000-0x9084ffff,0x90830000-0x9083ffff irq 27 at device 1.0 on pci32
mpt0: [ITHREAD]
mpt0: MPI Version=1.2.12.0
mpt1: <LSILogic 1030 Ultra4 Adapter> port 0x2000-0x20ff mem 0x90820000-0x9082ffff,0x90810000-0x9081ffff irq 28 at device 1.1 on pci32
mpt1: [ITHREAD]
mpt1: MPI Version=1.2.12.0
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x105> mem 0x90800000-0x9080ffff irq 29 at device 2.0 on pci32
miibus1: <MII bus> on bge0
brgphy0: <BCM5701 10/100/1000baseTX PHY> PHY 1 on miibus1
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:11:0a:31:36:40
bge0: [ITHREAD]
pcib2: <ACPI Host-PCI bridge> on acpi0
pci64: <ACPI PCI bus> on pcib2
pcib3: <ACPI Host-PCI bridge> on acpi0
pci96: <ACPI PCI bus> on pcib3
pcib4: <ACPI Host-PCI bridge> on acpi0
pci128: <ACPI PCI bus> on pcib4
pcib5: <ACPI Host-PCI bridge> on acpi0
pci192: <ACPI PCI bus> on pcib5
pcib6: <ACPI Host-PCI bridge> on acpi0
pci224: <ACPI PCI bus> on pcib6
uart0: <16550 or compatible> mem 0xf4051000-0xf405100f irq 82 at device 1.0 on pci224
uart0: [FILTER]
puc0: <HP Diva Serial [GSP] Multiport UART - Everest SP2> mem 0xf4050000-0xf4050fff,0xf4020000-0xf403ffff irq 82 at device 1.1 on pci224
puc0: [FILTER]
uart1: <Non-standard ns8250 class UART with FIFOs> on puc0
uart1: [FILTER]
uart1: console (9600,n,8,1)
uart2: <Non-standard ns8250 class UART with FIFOs> on puc0
uart2: [FILTER]
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xf0000000-0xf3ffffff,0xf4040000-0xf404ffff at device 2.0 on pci224
uart3: <16550 or compatible> iomem 0xff5e0000-0xff5e0007 irq 34 on acpi0
uart3: [FILTER]
uart4: <16550 or compatible> iomem 0xff5e2000-0xff5e2007 irq 35 on acpi0
uart4: [FILTER]
uart4: debug port (9600,n,8,1)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
ugen0.1: <NEC> at usbus0
uhub0: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <NEC> at usbus1
uhub1: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
usbus2: 480Mbps High Speed USB v2.0
ugen2.1: <NEC> at usbus2
uhub2: <NEC EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
acd0: DVDROM <DV-28E-C/C.4D> at ata2-master PIO4
Waiting 5 seconds for SCSI devices to settle
uhub1: 2 ports with 2 removable, self powered
uhub0: 3 ports with 3 removable, self powered
uhub2: 5 ports with 5 removable, self powered
WARNING: WITNESS option enabled, expect reduced performance.
da0 at mpt0 bus 0 target 0 lun 0
da0: <HP 73.4G ST373454LC HPC2> Fixed Direct Access SCSI-3 device 
da0: 320.000MB/s transfers (160.000MHz, offset 63, 16bit)
da0: Command Queueing Enabled
da0: 70007MB (143374738 512 byte sectors: 255H 63S/T 8924C)
da1 at mpt0 bus 0 target 1 lun 0
da1: <HP 73.4G ST373454LC HPC2> Fixed Direct Access SCSI-3 device 
da1: 320.000MB/s transfers (160.000MHz, offset 63, 16bit)
da1: Command Queueing Enabled
da1: 70007MB (143374738 512 byte sectors: 255H 63S/T 8924C)
GEOM_MIRROR: Device mirror/efi launched (2/2).
GEOM_MIRROR: Device mirror/root launched (2/2).
GEOM_MIRROR: Device mirror/swap launched (2/2).
GEOM_MIRROR: Device mirror/var launched (2/2).
GEOM_MIRROR: Device mirror/tmp launched (1/2).
GEOM_MIRROR: Device tmp: rebuilding provider da0p5.
GEOM_MIRROR: Device mirror/usr launched (1/2).
GEOM_MIRROR: Device usr: rebuilding provider da0p6.
Trying to mount root from ufs:/dev/mirror/root
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
/tmp: mount pending error: blocks 24 files 6
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
GEOM_MIRROR: Device tmp: rebuilding provider da0p5 finished.
lock order reversal:
 1st 0xe0000000109596b8 ufs (ufs) _at_ /usr/src/sys/ufs/ffs/ffs_snapshot.c:423
 2nd 0xa00000001e4bad40 bufwait (bufwait) _at_ /usr/src/sys/kern/vfs_bio.c:2558
 3rd 0xe000000010792448 ufs (ufs) _at_ /usr/src/sys/ufs/ffs/ffs_snapshot.c:544
KDB: stack backtrace:
db_trace_self(0xe000000004115b50) at db_trace_self+0x20
db_trace_self_wrapper(0xe000000004654560) at db_trace_self_wrapper+0x70
kdb_backtrace(0xe000000004cf9c38, 0xe00000000467bf60) at kdb_backtrace+0xc0
_witness_debugger(0x1, 0xe000000004b4bac0, 0xe00000000467d800, 0x999, 0xe000000004b71740) at _witness_debugger+0x60
witness_checkorder(0xe000000010792448, 0x9, 0x0, 0x220, 0x0) at witness_checkorder+0x12c0
__lockmgr_args(0xe000000010792448, 0x80100, 0xe000000010792470, 0xe000000004b3a158, 0x50, 0x33, 0xe000000004b71740, 0x220) at __lockmgr_args+0xe10
ffs_lock(0xa000000032a78dd0, 0xe000000010792448, 0x80100) at ffs_lock+0x130
VOP_LOCK1_APV(0xe000000004cc19f0, 0xa000000032a78db0, 0xe0000000045d5b90) at VOP_LOCK1_APV+0x1d0
_vn_lock(0xe0000000107923b0, 0x80100, 0xe000000004b71740, 0x220, 0xe0000000107923c0, 0xa000000032a78dd0, 0xa000000032a78dc8, 0xa000000032a78dc0) at _vn_lock+0xf0
ffs_snapshot(0xe0000000107b45e0, 0xa000000032a78fc8, 0xe0000000107923b0, 0xe000000010792470, 0x1, 0x0, 0xa00000000037a000, 0x0) at ffs_snapshot+0x2280
ffs_mount(0x0, 0xe000000004b735e8, 0xa000000032a79100, 0xa000000032a79100) at ffs_mount+0x2160
vfs_donmount(0x0, 0x211000, 0xe0000000106c5400) at vfs_donmount+0x1d80
nmount(0xe000000010886000, 0xa000000032a794e8, 0x0, 0xe000000004ac03e0) at nmount+0xe0
syscall(0xa000000032a79400, 0x17a, 0x201000, 0xe000000010886000, 0xe00000001087ccd8, 0xe000000004c99a28, 0x17a, 0xa000000032a794e8) at syscall+0x3e0
epc_syscall_return() at epc_syscall_return
lock order reversal:
 1st 0xa00000001e4bad40 bufwait (bufwait) _at_ /usr/src/sys/kern/vfs_bio.c:2558
 2nd 0xe000000010a2a330 snaplk (snaplk) _at_ /usr/src/sys/ufs/ffs/ffs_snapshot.c:793
KDB: stack backtrace:
db_trace_self(0xe000000004115b50) at db_trace_self+0x20
db_trace_self_wrapper(0xe000000004654560) at db_trace_self_wrapper+0x70
kdb_backtrace(0xe000000004cf9c38, 0xe00000000467bf60) at kdb_backtrace+0xc0
_witness_debugger(0x1, 0xe000000004b4bac0, 0xe00000000467d800, 0x999, 0xe000000004b71740) at _witness_debugger+0x60
witness_checkorder(0xe000000010a2a330, 0x9, 0xffffffffffffffff, 0x319, 0xe0000000109596e0) at witness_checkorder+0x12c0
__lockmgr_args(0xe000000010a2a330, 0x80400, 0xe0000000109596e0, 0xe000000004b717a8, 0x50, 0x33, 0xe000000004b71740, 0x319) at __lockmgr_args+0xe10
ffs_lock(0xa000000032a78dd0, 0xe000000010a2a330, 0x80400) at ffs_lock+0x130
VOP_LOCK1_APV(0xe000000004cc19f0, 0xa000000032a78db0, 0xe000000004b51bb0) at VOP_LOCK1_APV+0x1d0
_vn_lock(0xe000000010959620, 0x80400, 0xe000000004b71740, 0x319, 0xe000000010959630, 0xa000000032a78dd0, 0xa000000032a78dc8, 0xa000000032a78dc0) at _vn_lock+0xf0
ffs_snapshot(0xe0000000107b45e0, 0xa000000032a78fc8, 0xa000000032a78e08, 0xe0000000107ae000, 0xe00000001096d100, 0x0, 0xe00000001062a030, 0xe00000001096d000) at ffs_snapshot+0x3f50
ffs_mount(0x0, 0xe000000004b735e8, 0xa000000032a79100, 0xa000000032a79100) at ffs_mount+0x2160
vfs_donmount(0x0, 0x211000, 0xe0000000106c5400) at vfs_donmount+0x1d80
nmount(0xe000000010886000, 0xa000000032a794e8, 0x0, 0xe000000004ac03e0) at nmount+0xe0
syscall(0xa000000032a79400, 0x17a, 0x201000, 0xe000000010886000, 0xe00000001087ccd8, 0xe000000004c99a28, 0x17a, 0xa000000032a794e8) at syscall+0x3e0
epc_syscall_return() at epc_syscall_return
lock order reversal:
 1st 0xe000000010a2a330 snaplk (snaplk) _at_ /usr/src/sys/kern/vfs_vnops.c:295
 2nd 0xe0000000109596b8 ufs (ufs) _at_ /usr/src/sys/ufs/ffs/ffs_snapshot.c:1587
KDB: stack backtrace:
db_trace_self(0xe000000004115b50) at db_trace_self+0x20
db_trace_self_wrapper(0xe000000004654560) at db_trace_self_wrapper+0x70
kdb_backtrace(0xe000000004cf9c38, 0xe00000000467bf60) at kdb_backtrace+0xc0
_witness_debugger(0x1, 0xe000000004b4bac0, 0xe00000000467d800, 0x999, 0xe000000004b71740) at _witness_debugger+0x60
witness_checkorder(0xe0000000109596b8, 0x9, 0xffffffffffffffff, 0x633, 0x0) at witness_checkorder+0x12c0
__lockmgr_args(0xe0000000109596b8, 0x80000, 0x0, 0xe000000004b3a158, 0x50, 0x33, 0xe000000004b71740, 0x633) at __lockmgr_args+0xe10
ffs_snapremove(0xe000000010959620, 0xe000000004b71740, 0xe000000004b55ab8, 0xe0000000109596b8) at ffs_snapremove+0x200
softdep_releasefile(0xe00000001086f6f8, 0xa000000032a792d0, 0x29f, 0xe000000004a12470, 0x48e) at softdep_releasefile+0x90
ufs_inactive(0xe000000010886000, 0xe00000001086f6f8, 0xe000000010959710) at ufs_inactive+0x400
VOP_INACTIVE_APV(0xe000000004cc21c0, 0xa000000032a792e0, 0xe000000004b54550, 0xe00000000470f940) at VOP_INACTIVE_APV+0x1c0
vinactive(0xe000000010959620, 0xe000000010886000, 0x800, 0xe0000000109596e0) at vinactive+0x110
vput(0xe000000010959620, 0xa000000032a79308, 0xe000000004b55ab8, 0xe0000000109596e0) at vput+0x3f0
vn_close(0xe000000010959620, 0x1, 0xe000000010363c00, 0xe000000010886000) at vn_close+0x310
vn_closefile(0xe000000010723590, 0xe000000010886000, 0xe000000010959620) at vn_closefile+0x1e0
_fdrop(0xe000000010723590, 0xe000000010886000, 0xe000000004589d10, 0xb9b) at _fdrop+0xb0
closef(0xe000000010723590, 0xe000000010886000, 0x0, 0xe00000000458a4c0) at closef+0x570
kern_close(0xe000000010886000, 0xe000000004b3c520) at kern_close+0x270
close(0xe000000010886000, 0xa000000032a794e8, 0xe000000004ac03e0, 0x58f) at close+0x30
syscall(0xa000000032a79400, 0x6, 0x0, 0xe000000010886000, 0xe00000001087ccd8, 0xe000000004c95468, 0x6, 0xa000000032a794e8) at syscall+0x3e0
epc_syscall_return() at epc_syscall_return
GEOM_MIRROR: Device usr: rebuilding provider da0p6 finished.
lock order reversal:
 1st 0xa00000001e6a59c8 bufwait (bufwait) _at_ /usr/src/sys/kern/vfs_bio.c:2558
 2nd 0xe0000000107bcc00 dirhash (dirhash) _at_ /usr/src/sys/ufs/ufs/ufs_dirhash.c:285
KDB: stack backtrace:
db_trace_self(0xe000000004115b50) at db_trace_self+0x20
db_trace_self_wrapper(0xe000000004654560) at db_trace_self_wrapper+0x70
kdb_backtrace(0xe000000004cf9c38, 0xe00000000467bf60) at kdb_backtrace+0xc0
_witness_debugger(0x1, 0xe000000004b4bac0, 0xe00000000467d800, 0x999, 0xe000000004b73fd0) at _witness_debugger+0x60
witness_checkorder(0xe0000000107bcc00, 0x9, 0xffffffffffffffff, 0x11d, 0x0) at witness_checkorder+0x12c0
_sx_xlock(0xe0000000107bcc00, 0x0, 0xe000000004b73fd0, 0x11d) at _sx_xlock+0xc0
ufsdirhash_acquire(0xe000000010abbd88, 0xe0000000107bcc00, 0xe000000004a0ef40, 0x38b) at ufsdirhash_acquire+0x50
ufsdirhash_remove(0xe000000010abbd88, 0xa000000023710018, 0x18, 0xa000000032a79328) at ufsdirhash_remove+0x20
ufs_dirremove(0xe000000012b997f8, 0xe000000010bee2a0, 0x0, 0x1, 0xa000000023710018) at ufs_dirremove+0x240
ufs_rmdir(0xa000000032a79390, 0xe000000010bee2a0, 0xe000000010abbd88) at ufs_rmdir+0x230
VOP_RMDIR_APV(0xe000000004cc21c0, 0xa000000032a793d8, 0x2, 0xe00000000471aff0) at VOP_RMDIR_APV+0x1c0
kern_rmdirat(0xe000000010886000, 0xffffffffffffff9c, 0x200000004041a508, 0x0) at kern_rmdirat+0x340
kern_rmdir(0xe000000010886000, 0x200000004041a508, 0x0) at kern_rmdir+0x30
rmdir(0xe000000010886000, 0xa000000032a794e8, 0xe000000004ac03e0, 0x58f) at rmdir+0x30
syscall(0xa000000032a79400, 0x89, 0x200000004041a400, 0xe000000010886000, 0xe00000001087ccd8, 0xe000000004c96cf8, 0x89, 0xa000000032a794e8) at syscall+0x3e0
epc_syscall_return() at epc_syscall_return
XXX: bogusly disabled high FP regs


--->>> make.conf <<<---


# $FreeBSD: src/share/examples/etc/make.conf,v 1.279 2007/01/17 12:43:06 des Exp $
# copied from /usr/share/examples/etc/make.conf
#
# Currently the following CPU types are recognized:
#   Intel x86 architecture:
#       (AMD CPUs)	opteron athlon64 athlon-mp athlon-xp athlon-4
#			athlon-tbird athlon k8 k6-3 k6-2 k6 k5
#       (Intel CPUs)	core2 core nocona pentium4m pentium4 prescott
#			pentium3m pentium3 pentium-m pentium2
#			pentiumpro pentium-mmx pentium i486 i386
#       (Via CPUs)	c3 c3-2
#   Alpha/AXP architecture: ev67 ev6 pca56 ev56 ev5 ev45 ev4
#   AMD64 architecture: opteron, athlon64, nocona, prescott, core2
#   Intel ia64 architecture: itanium2, itanium
#
# (?= allows to buildworld for a different CPUTYPE.)
#

CPUTYPE=ia64

#NO_CPU_CFLAGS=		# Don't add -march=<cpu> to CFLAGS automatically
#NO_CPU_COPTFLAGS=	# Don't add -march=<cpu> to COPTFLAGS automatically
#
# CFLAGS controls the compiler settings used when compiling C code.
# Note that optimization settings other than -O and -O2 are not recommended
# or supported for compiling the world or the kernel - please revert any
# nonstandard optimization settings to "-O" or "-O2 -fno-strict-aliasing"
# before submitting bug reports without patches to the developers.
#
# Compiling with -fstrict-aliasing optimization breaks some [notable] ports.
# GCC turns on -fstrict-aliasing optimization at all levels above -O[1], so
# explicitly turn it off when using compiling with the -O2 optimization level.
#

CFLAGS= -O2 -fno-strict-aliasing -pipe

#
# CXXFLAGS controls the compiler settings used when compiling C++ code.
# Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
# to add to CXXFLAGS value, "+=" must be used rather than "=".  Using "="
# alone will remove the often needed contents of CFLAGS from CXXFLAGS.
#

CXXFLAGS+= -fconserve-space

#
# MAKE_SHELL controls the shell used internally by make(1) to process the
# command scripts in makefiles.  Three shells are supported, sh, ksh, and
# csh.  Using sh is most common, and advised.  Using ksh *may* work, but is
# not guaranteed to.  Using csh is absurd.  The default is to use sh.
#

MAKE_SHELL=sh

#
# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
# for use in developing FreeBSD and testing changes.  They can be used by
# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.  -Wconversion is not
# included here due to compiler bugs, e.g., mkdir()'s mode_t argument.
#

BDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
		-Wcast-qual -Wchar-subscripts -Winline \
		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings

#
# To compile just the kernel with special optimizations, you should use
# this instead of CFLAGS (which is not applicable to kernel builds anyway).
# There is very little to gain by using higher optimization levels, and doing
# so can cause problems.
#

COPTFLAGS= -O -pipe

#
# Compare before install

INSTALL=install -C

#
# Mtree will follow symlinks
#MTREE_FOLLOWS_SYMLINKS= -L
#
# To enable installing ssh(1) with the setuid bit turned on
#ENABLE_SUID_SSH=
#
# To enable installing newgrp(1) with the setuid bit turned on.
# Without the setuid bit, newgrp cannot change users' groups.
#ENABLE_SUID_NEWGRP=
#
# To avoid building various parts of the base system:
#NO_MODULES=		# do not build modules with the kernel
#NO_SHARE=		# do not go into the share subdir
#NO_SHARED= 		# build /bin and /sbin statically linked (bad idea)
#
# Variables that control how ppp(8) is built.
#PPP_NO_NAT= 		# do not build with NAT support (see make.conf(5))
#PPP_NO_NETGRAPH= 	# do not build with Netgraph support
#PPP_NO_RADIUS= 	# do not build with RADIUS support
#PPP_NO_SUID=		# build with normal permissions
#
#TRACEROUTE_NO_IPSEC= 	# do not build traceroute(8) with IPSEC support
#
# To build sys/modules when building the world (our old way of doing things)
#MODULES_WITH_WORLD=	# do not build modules when building kernel
#
# The list of modules to build instead of all of them.

MODULES_OVERRIDE=

#
# The list of modules to never build, applied *after* MODULES_OVERRIDE.
#WITHOUT_MODULES=	bktr plip
#
# If you do not want unformatted manual pages to be compressed
# when they are installed:
#
#NO_MANCOMPRESS=
#
#
# Default format for system documentation, depends on your printer.
# Set this to "ascii" for simple printers or screen
#
#PRINTERDEVICE=	ps
#
#
# How long to wait for a console keypress before booting the default kernel.
# This value is approximately in milliseconds. Keypresses are accepted by the
# BIOS before booting from disk, making it possible to give custom boot
# parameters even when this is set to 0.
#
#BOOTWAIT=0
#BOOTWAIT=30000
#
# By default, the system will always use the keyboard/video card as system
# console.  However, the boot blocks may be dynamically configured to use a
# serial port in addition to or instead of the keyboard/video console.
#
# By default we use COM1 as our serial console port *if* we're going to use
# a serial port as our console at all.  Alter as necessary.
#
#   COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8
#
#BOOT_COMCONSOLE_PORT=	0x3F8
#
# The default serial console speed is 9600.  Set the speed to a larger value
# for better interactive response.
#
#BOOT_COMCONSOLE_SPEED=	115200
#
# By default the 'pxeboot' loader retrieves the kernel via NFS.  Defining
# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel
# via TFTP.  This allows pxeboot to load a custom BOOTP diskless kernel yet
# still mount the server's '/' (i.e. rather than load the server's kernel).
#
#LOADER_TFTP_SUPPORT= YES
#
#
# Kerberos 5 su (k5su)
# If you want to use the k5su utility, define this to have it installed
# set-user-ID.
#ENABLE_SUID_K5SU=
#
#
# CVSup update flags.  Edit SUPFILE settings to reflect whichever distribution
# file(s) you use on your site (see /usr/share/examples/cvsup/README for more
# information on CVSup and these files).  To use, do "make update" in /usr/src.
#
#SUP_UPDATE=
#
#SUP=            /usr/bin/csup
#SUPFLAGS=       -g -L 2
#SUPHOST=        cvsup.uk.FreeBSD.org
#SUPFILE=        /usr/share/examples/cvsup/standard-supfile
#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
#DOCSUPFILE=     /usr/share/examples/cvsup/doc-supfile
#
# top(1) uses a hash table for the user names.  The size of this hash
# can be tuned to match the number of local users.  The table size should
# be a prime number approximately twice as large as the number of lines in
# /etc/passwd.  The default number is 20011.
#
#TOP_TABLE_SIZE= 101
#
# Documentation
#
# The list of languages and encodings to build and install
#

DOC_LANG=	en_US.ISO8859-1

#
#
# sendmail
#
# The following sets the default m4 configuration file to use at
# install time.  Use with caution as a make install will overwrite
# any existing /etc/mail/sendmail.cf.  Note that SENDMAIL_CF is now
# deprecated.  The value should be a fully qualified path name.
#
#SENDMAIL_MC=/etc/mail/myconfig.mc
#
# The following sets the default m4 configuration file for mail
# submission to use at install time.  Use with caution as a make
# install will overwrite any existing /etc/mail/submit.cf.  The
# value should be a fully qualified path name.
#
#SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc
#
# If you need to build additional .cf files during a make buildworld,
# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC.
#
#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc
#
# The following overrides the default location for the m4 configuration
# files used to build a .cf file from a .mc file.
#
#SENDMAIL_CF_DIR=/usr/local/share/sendmail/cf
#
# Setting the following variable modifies the flags passed to m4 when
# building a .cf file from a .mc file.  It can be used to enable
# features disabled by default.
#
#SENDMAIL_M4_FLAGS=
#
# Setting the following variables modifies the build environment for
# sendmail and its related utilities. For example, SASL support can be
# added with settings such as:
#
#    with SASLv1:
#	SENDMAIL_CFLAGS=-I/usr/local/include/sasl1 -DSASL
#	SENDMAIL_LDFLAGS=-L/usr/local/lib
#	SENDMAIL_LDADD=-lsasl
#
#    with SASLv2:
#	SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
#	SENDMAIL_LDFLAGS=-L/usr/local/lib
#	SENDMAIL_LDADD=-lsasl2
#
# Note: If you are using Cyrus SASL with other applications which require
#	access to the sasldb file, you should add the following to your
#	sendmail.mc file:
#
#	define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile')
#
#SENDMAIL_CFLAGS=
#SENDMAIL_LDFLAGS=
#SENDMAIL_LDADD=
#SENDMAIL_DPADD=
#
# Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a
# set-user-ID root binary instead of a set-group-ID smmsp binary and will
# prevent the installation of /etc/mail/submit.cf.
# This is a deprecated mode of operation.  See etc/mail/README for more
# information.
#
#SENDMAIL_SET_USER_ID=
#
# The permissions to use on alias and map databases generated using
# /etc/mail/Makefile.  Defaults to 0640.
#
#SENDMAIL_MAP_PERMS=

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
Received on Tue Jul 07 2009 - 10:44:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC