Hi, I am trying to compile jdk on openbsd 4.0. I max'ed out all the ulimits I can find:
# ulimit -a time(cpu-seconds) unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 1048576 stack(kbytes) 32768 lockedmem(kbytes) unlimited memory(kbytes) unlimited nofiles(descriptors) 1772 processes 532 [...] usr/ports/devel/jdk/1.5/w-jdk-1.5.0p20/control/build/bsd-amd64/bin/java -classpath ../../../tools/CompileProperties CompileProperties ../../../../src/share/classes/com/sun/tools/javac/resources/compiler.properties /usr/ports/devel/jdk/1.5/w-jdk-1.5.0p20/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. gmake[6]: *** [/usr/ports/devel/jdk/1.5/w-jdk-1.5.0p20/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java] Error 1 [...] Stop in /usr/ports/devel/jdk/1.5 (line 1942 of /usr/ports/infrastructure/mk/bsd. I tried installing the jdk I had built under 3.9, jdk-1.5.0p14, that installed without problems, however: # ulimit -a ;/usr/local/jdk-1.5.0/bin/java -showversion time(cpu-seconds) unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 1048576 stack(kbytes) 32768 lockedmem(kbytes) unlimited memory(kbytes) unlimited nofiles(descriptors) 1772 processes 532 Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. What am I doing wrong? This is openbsd 4.0 on a DL145, dual opteron. Thanx for any pointers! dmesg follows: OpenBSD 4.0 (GENERIC.MP) #967: Sat Sep 16 20:38:15 MDT 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3219894272 (3144428K) avail mem = 2757484544 (2692856K) using 22937 buffers containing 322195456 bytes (314644K) of memory mainbus0 (root) bios0 at mainbus0: SMBIOS rev. 2.34 @ 0xf11f0 (45 entries) bios0: HP ProLiant DL145 G2 : bus_space_map(1 ca0 2 0 0xffffffff80b64c48) failed ipmi at mainbus0 not configured mainbus0: Intel MP Specification (Version 1.4) (AMD HAMMER ) cpu0 at mainbus0: apid 0 (boot processor) cpu0: Dual Core AMD Opteron(tm) Processor 275, 2210.44 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: apic clock running at 200MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Dual Core AMD Opteron(tm) Processor 275, 2210.19 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu2 at mainbus0: apid 2 (application processor) cpu2: Dual Core AMD Opteron(tm) Processor 275, 2210.19 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu3 at mainbus0: apid 3 (application processor) cpu3: Dual Core AMD Opteron(tm) Processor 275, 2210.19 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative mpbios: bus 0 is type PCI mpbios: bus 1 is type PCI mpbios: bus 2 is type PCI mpbios: bus 3 is type PCI mpbios: bus 4 is type PCI mpbios: bus 128 is type PCI mpbios: bus 129 is type PCI mpbios: bus 134 is type PCI mpbios: bus 139 is type ISA ioapic0 at mainbus0 apid 4 pa 0xfec00000, version 11, 24 pins ioapic1 at mainbus0 apid 5 pa 0xd8000000, version 11, 7 pins ioapic2 at mainbus0 apid 6 pa 0xd8001000, version 11, 7 pins pci0 at mainbus0 bus 0: configuration mode 1 "NVIDIA nForce4 DDR" rev 0xa3 at pci0 dev 0 function 0 not configured pcib0 at pci0 dev 1 function 0 "NVIDIA nForce4 ISA" rev 0xa3 nviic0 at pci0 dev 1 function 1 "NVIDIA nForce4 SMBus" rev 0xa2 iic0 at nviic0 iic1 at nviic0 admtm0 at iic1 addr 0x2d: 47m192 ohci0 at pci0 dev 2 function 0 "NVIDIA nForce4 USB" rev 0xa2: apic 4 int 10 (irq 10), version 1.0, legacy support usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: NVIDIA OHCI root hub, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ehci0 at pci0 dev 2 function 1 "NVIDIA nForce4 USB" rev 0xa3: apic 4 int 11 (irq 11) ehci0: timed out waiting for BIOS usb1 at ehci0: USB revision 2.0 uhub1 at usb1 uhub1: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered pciide0 at pci0 dev 6 function 0 "NVIDIA nForce4 IDE" rev 0xa2: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <TEAC, DV-28E-N, C.6B> SCSI0 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 disabled (no drives) pciide1 at pci0 dev 8 function 0 "NVIDIA nForce4 SATA" rev 0xa3: DMA pciide1: using apic 4 int 10 (irq 10) for native-PCI interrupt ppb0 at pci0 dev 9 function 0 "NVIDIA nForce4 PCI-PCI" rev 0xa2 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 "NVIDIA GeForce2 MX" rev 0xb2 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 12 function 0 "NVIDIA nForce4 PCIE" rev 0xa3 pci2 at ppb1 bus 2 bge0 at pci2 dev 0 function 0 "Broadcom BCM5721" rev 0x11, BCM5750 B1 (0x4101): apic 4 int 11 (irq 11), address 00:14:c2:3a:ca:bc brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 ppb2 at pci0 dev 13 function 0 "NVIDIA nForce4 PCIE" rev 0xa3 pci3 at ppb2 bus 3 bge1 at pci3 dev 0 function 0 "Broadcom BCM5721" rev 0x11, BCM5750 B1 (0x4101): apic 4 int 10 (irq 10), address 00:14:c2:3a:ca:bd brgphy1 at bge1 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 ppb3 at pci0 dev 14 function 0 "NVIDIA nForce4 PCIE" rev 0xa3 pci4 at ppb3 bus 4 pchb0 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00 pci5 at pchb0 bus 128 ppb4 at pci5 dev 1 function 0 "AMD 8132 PCIX" rev 0x11 pci6 at ppb4 bus 129 "AMD 8132 PCIX IOAPIC" rev 0x11 at pci5 dev 1 function 1 not configured ppb5 at pci5 dev 2 function 0 "AMD 8132 PCIX" rev 0x11 pci7 at ppb5 bus 134 ami0 at pci7 dev 1 function 0 "Symbios Logic MegaRAID" rev 0x01: apic 4 int 11 (irq 11) ami0: LSI 520, 64b/lhc, FW 1L37, BIOS vG119, 64MB RAM ami0: 1 channels, 0 FC loops, 1 logical drives scsibus1 at ami0: 40 targets sd0 at scsibus1 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed sd0: 140013MB, 140013 cyl, 64 head, 32 sec, 512 bytes/sec, 286746624 sec total scsibus2 at ami0: 16 targets "AMD 8132 PCIX IOAPIC" rev 0x11 at pci5 dev 2 function 1 not configured pchb1 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00 pchb2 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00 pchb3 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00 pchb4 at pci0 dev 25 function 0 "AMD AMD64 HyperTransport" rev 0x00 pchb5 at pci0 dev 25 function 1 "AMD AMD64 Address Map" rev 0x00 pchb6 at pci0 dev 25 function 2 "AMD AMD64 DRAM Cfg" rev 0x00 pchb7 at pci0 dev 25 function 3 "AMD AMD64 Misc Cfg" rev 0x00 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 uhub2 at uhub0 port 2 uhub2: Dell Dell USB Keyboard Hub, rev 1.10/2.00, addr 2 uhub2: 3 ports with 2 removable, bus powered uhidev0 at uhub2 port 1 configuration 1 interface 0 uhidev0: Dell Dell USB Keyboard Hub, rev 1.10/2.00, addr 3, iclass 3/1 ukbd0 at uhidev0: 8 modifier keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub2 port 1 configuration 1 interface 1 uhidev1: Dell Dell USB Keyboard Hub, rev 1.10/2.00, addr 3, iclass 3/0 uhidev1: 3 report ids uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0 uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0 uhid2 at uhidev1 reportid 3: input=3, output=1, feature=1 uhidev2 at uhub2 port 2 configuration 1 interface 0 uhidev2: Logitech Optical USB Mouse, rev 2.00/3.40, addr 4, iclass 3/1 ums0 at uhidev2: 3 buttons and Z dir. wsmouse0 at ums0 mux 0 dkcsum: sd0 matches BIOS drive 0x80 root on sd0a rootdev=0x400 rrootdev=0xd00 rawdev=0xd02 uhub2: at uhub0 port 2 (addr 2) disconnected uhidev0: at uhub2 port 1 (addr 3) disconnected wskbd1: disconnecting from wsdisplay0 wskbd1 detached ukbd0 detached uhidev0 detached uhidev1: at uhub2 port 1 (addr 3) disconnected uhid0 detached uhid1 detached uhid2 detached uhidev1 detached uhidev2: at uhub2 port 2 (addr 4) disconnected wsmouse0 detached ums0 detached uhidev2 detached uhub2 detached

