Upgrade to a snapshot. We do not gaurantee cross-builds release to release, and never will.
> I'm trying to compile the source for 6.0 release, and I'm running into a > 100% reproducible error. The error is the following: > > ld -nostdlib -Bstatic -Ttext 0x40120 -N -x -nopie -melf_i386 > -L/usr/libdata -o boot.new srt0.o conf.o boot.o bootarg.o cmd.o vars.o > gidt.o random_i386.o cmd_i386.o dev_i386.o exec_i386.o gateA20.o > machdep.o bioscons.o biosdev.o diskprobe.o memprobe.o time.o softraid.o > alloc.o ctime.o exit.o getchar.o memcmp.o memcpy.o memset.o printf.o > putchar.o snprintf.o strcmp.o strerror.o strlen.o strncmp.o strncpy.o > strtol.o strtoll.o close.o closeall.o cons.o cread.o dev.o disklabel.o > dkcksum.o fstat.o lseek.o open.o read.o readdir.o stat.o elf32.o elf64.o > loadfile.o ufs.o aes_xts.o explicit_bzero.o hmac_sha1.o pbkdf2.o > rijndael.o sha1.o divdi3.o moddi3.o qdivrem.o strlcpy.o adler32.o > crc32.o inflate.o inftrees.o > .text has incorrect file offset 0x140 (should be 0x120) > .data has incorrect file offset 0x11334 (should be 0x11314) > *** Error 1 in sys/arch/amd64/stand/boot (Makefile:62 'boot': @perl > /usr/src/sys/arch/amd64/stand/boot/../boot/check-boot.pl boot.new) > *** Error 1 in sys/arch/amd64/stand (<bsd.subdir.mk>:48 'all') > *** Error 1 in sys/arch/amd64 (<bsd.subdir.mk>:48 'all') > *** Error 1 in sys (<bsd.subdir.mk>:48 'all') > *** Error 1 in . (<bsd.subdir.mk>:48 'all') > *** Error 1 in /usr/src (Makefile:82 'build') > > > > Here's how I got to that point: > > as root > > user mod -G wsrc user > > > as user... > > cd /usr && cvs -d [email protected]:/cvs up -r > OPENBSD_6_0_BASE -Pd src > > cd /usr/src/sys/arch/amd64/conf > > config GENERIC.MP > > cd ../compile/GENERIC.MP > > make clean && make > > su > > ( need to be in the right directory, cd > /usr/src/sys/arch/amd64/compile/GENERIC.MP ) > > > as root > > make install > > shutdown -r now > > > as user > > cd /usr/obj && mkdir -p .old && doas /bin/mv * .old && doas /bin/rm -rf > .old & > > cd /usr/src && make obj > > cd /usr/src/etc && doas /usr/bin/env DESTDIR=/ make distrib-dirs > > cd /usr/src && make SUDO=doas build > > > Everything goes OK until about an hour into that last command: > > cd /usr/src && make SUDO=doas build > > > That's when the error appears. I've no idea what I'm doing wrong, I > know I must be overlooking something obvious. I've not had issues > compiling from source in the past. > > Any ideas? > > > > > > doas.conf: > > permit nopass user as root cmd /bin/rm > permit nopass user as root cmd /bin/mv > permit nopass user as root cmd /usr/bin/env > permit nopass user as root cmd make > > > > dmesg: > > OpenBSD 6.0 (GENERIC.MP) #0: Sun Sep 4 14:01:33 EDT 2016 > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 3177906176 (3030MB) > avail mem = 3077185536 (2934MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries) > bios0: vendor LENOVO version "7LET56WW (1.26 )" date 10/18/2007 > bios0: LENOVO 7658CTO > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! > SSDT SSDT SSDT SSDT > acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4) > EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) > USB2(S3) USB3(S3) USB4(S3) [...] > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpiec0 at acpi0 > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz, 2194.85 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR > cpu0: 2MB 64b/line 8-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 199MHz > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz, 1995.01 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR > cpu1: 2MB 64b/line 8-way L2 cache > cpu1: smt 0, core 1, package 0 > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins > acpimcfg0 at acpi0 addr 0xf0000000, bus 0-63 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (AGP_) > acpiprt2 at acpi0: bus 2 (EXP0) > acpiprt3 at acpi0: bus 3 (EXP1) > acpiprt4 at acpi0: bus 4 (EXP2) > acpiprt5 at acpi0: bus 5 (EXP3) > acpiprt6 at acpi0: bus 13 (EXP4) > acpiprt7 at acpi0: bus 21 (PCI1) > acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), > C1(1000@1 mwait.1), PSS > acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), > C1(1000@1 mwait.1), PSS > acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB4, EHC0, EHC1 > acpitz0 at acpi0: critical temperature is 127 degC > acpitz1 at acpi0: critical temperature is 100 degC > acpibtn0 at acpi0: LID_ > acpibtn1 at acpi0: SLPB > "PNP0303" at acpi0 not configured > "IBM0057" at acpi0 not configured > "PNP0501" at acpi0 not configured > "PNP0400" at acpi0 not configured > "ATM1200" at acpi0 not configured > acpibat0 at acpi0: BAT0 model "42T4552" serial 108 type LION oem "SANYO" > acpiac0 at acpi0: AC unit online > acpithinkpad0 at acpi0 > "*pnp0c14" at acpi0 not configured > "IBM0079" at acpi0 not configured > acpidock0 at acpi0: GDCK docked (15) > acpivideo0 at acpi0: VID_ > acpivout0 at acpivideo0: LCD0 > acpivideo1 at acpi0: VID_ > cpu0: Enhanced SpeedStep 2194 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c > inteldrm0 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c > drm0 at inteldrm0 > intagp0 at inteldrm0 > agp0 at intagp0: aperture at 0xe0000000, size 0x10000000 > inteldrm0: msi > inteldrm0: 1280x800 > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) > wsdisplay0: screen 1-5 added (std, vt100 emulation) > "Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured > em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: msi, > address 00:1e:37:1c:e3:d1 > uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20 > uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21 > ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: msi > azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog > Devices AD1984 > audio0 at azalia0 > ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: msi > pci1 at ppb0 bus 2 > ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: msi > pci2 at ppb1 bus 3 > ath0 at pci2 dev 0 function 0 "Atheros AR5212" rev 0x01: apic 1 int 17 > ath0: AR5424 10.3 phy 6.1 rf5424 10.2 eeprom 5.3, WOR2W, address > 00:1d:d9:05:09:65 > ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03: msi > pci3 at ppb2 bus 4 > ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03: msi > pci4 at ppb3 bus 5 > ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: msi > pci5 at ppb4 bus 13 > uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16 > uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 17 > uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 1 int 18 > ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 19 > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3 > pci6 at ppb5 bus 21 > cbb0 at pci6 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xba: apic 1 int 16 > "Ricoh 5C832 Firewire" rev 0x04 at pci6 dev 0 function 1 not configured > cardslot0 at cbb0 slot 0 flags 0 > cardbus0 at cardslot0: bus 22 device 0 cacheline 0x0, lattimer 0xb0 > pcmcia0 at cardslot0 > pcib0 at pci0 dev 31 function 0 "Intel 82801HEM LPC" rev 0x03 > pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA, > channel 0 configured to compatibility, channel 1 configured to compatibility > atapiscsi0 at pciide0 channel 0 drive 0 > scsibus1 at atapiscsi0: 2 targets > cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-RAM UJ-852, RB02> ATAPI > 5/cdrom removable > cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 > pciide0: channel 1 ignored (disabled) > ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x03: msi, > AHCI 1.1 > ahci0: port 0: 1.5Gb/s > scsibus2 at ahci0: 32 targets > sd0 at scsibus2 targ 0 lun 0: <ATA, HITACHI HTS72321, FC2Z> SCSI3 > 0/direct fixed naa.5000cca586de0a25 > sd0: 152627MB, 512 bytes/sector, 312581808 sectors > ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x03: apic 1 > int 23 > iic0 at ichiic0 > usb2 at uhci0: USB revision 1.0 > uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb3 at uhci1: USB revision 1.0 > uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb4 at uhci2: USB revision 1.0 > uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb5 at uhci3: USB revision 1.0 > uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb6 at uhci4: USB revision 1.0 > uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > isa0 at pcib0 > isadma0 at isa0 > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > pckbd0 at pckbc0 (kbd slot) > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pms0 at pckbc0 (aux slot) > wsmouse0 at pms0 mux 0 > wsmouse1 at pms0 mux 0 > pms0: Synaptics touchpad, firmware 6.2 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > aps0 at isa0 port 0x1600/31 > uhub7 at uhub0 port 4 "IBM product 0x4485" rev 2.00/0.01 addr 2 > ugen0 at uhub7 port 2 "Unknown Unknown" rev 1.00/1.00 addr 3 > vscsi0 at root > scsibus3 at vscsi0: 256 targets > softraid0 at root > scsibus4 at softraid0: 256 targets > root on sd0a (c78b7a7000280cca.a) swap on sd0b dump on sd0b > ugen1 at uhub7 port 4 "EDIROL UA-1EX" rev 1.10/1.00 addr 4

