>Synopsis: sysutils/u-boot port build fails on armv7 >Category: ports >Environment: System : OpenBSD 6.6 Details : OpenBSD 6.6-stable (GENERIC) #2: Fri Jan 3 14:00:36 EST 2020 dbar...@sallowpad.ettinsmoor.net:/usr/src/sys/arch/armv7/compile/GENERIC
Architecture: OpenBSD.armv7 Machine : armv7 >Description: Running make install on sysutils/u-boot eventually terminates with the following error: arm-none-eabi-gcc -Wp,-MD,lib/.time.o.d -nostdinc -isystem /usr/local/lib/gcc/arm-none-eabi/7.4.1/include -Iinclude -I/usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/include -I/usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/arch/arm/include -include /usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/include/linux/kconfig.h -I/usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/lib -Ilib -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -I/usr/ports/pobj/u-boot-arm-2019.10-arm/u-bo ot-2019.10/arch/arm/mach-omap2/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(time)" -D"KBUILD_MODNAME=KBUILD_STR(time)" -c -o lib/time.o /usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/lib/time.c /usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/lib/time.c:172:1: internal compiler error: Bus error } ^ no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. gmake[2]: *** [/usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/scripts/Makefile.build:279: lib/time.o] Error 1 gmake[1]: *** [/usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/Makefile:1629: lib] Error 2 gmake[1]: Leaving directory '/usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/build/omap4_panda' gmake: *** [Makefile:148: sub-make] Error 2 *** Error 2 in . (Makefile:158 'do-build') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2781 '/usr/ports/pobj/u-boot-arm-2019.10-arm/.build_done') *** Error 1 in /usr/ports/sysutils/u-boot (/usr/ports/infrastructure/mk/bsd.port.mk:2451 'all') I tried cleaning and running this several times, each time failing with the same error. Note that I symlinked /usr/ports/distfiles to another filesystem because I was running low on space, but I doubt that has any relevance to this problem. At the time of the error, I had plenty of free space in /usr/ports (1.5G). My setup is otherwise a vanilla armv7 install running the latest STABLE kernel and userland. >How-To-Repeat: # cd /usr/ports/sysutils/u-boot # make install >Fix: I had a look at the offending Makefile (/usr/ports/pobj/u-boot-arm-2019.10-arm/u-boot-2019.10/scripts/Makefile.build) but the cause of the problem is not obvious to me. dmesg: OpenBSD 6.6-stable (GENERIC) #2: Fri Jan 3 14:00:36 EST 2020 dbar...@sallowpad.ettinsmoor.net:/usr/src/sys/arch/armv7/compile/GENERIC real mem = 477667328 (455MB) avail mem = 457957376 (436MB) mainbus0 at root: TI AM335x BeagleBone Black cpu0 at mainbus0 mpidr 0: ARM Cortex-A8 r3p2 cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 256KB 64b/line 8-way L2 cache omap0 at mainbus0 prcm0 at omap0 rev 0.2 dmtimer0 at omap0 rev 3.1 dmtimer1 at omap0 rev 3.1 simplebus0 at mainbus0: "ocp" simplebus1 at simplebus0: "l4_wkup" "wkup_m3" at simplebus1 not configured simplebus2 at simplebus1: "prcm" "l4_per_cm" at simplebus2 not configured "l4_wkup_cm" at simplebus2 not configured "mpu_cm" at simplebus2 not configured "l4_rtc_cm" at simplebus2 not configured "gfx_l3_cm" at simplebus2 not configured "l4_cefuse_cm" at simplebus2 not configured simplebus3 at simplebus1: "scm" syscon0 at simplebus3: "scm_conf" pinctrl0 at simplebus3 "wkup_m3_ipc" at simplebus3 not configured "dma-router" at simplebus3 not configured intc0 at simplebus0 rev 5.0 "edma" at simplebus0 not configured "tptc" at simplebus0 not configured "tptc" at simplebus0 not configured "tptc" at simplebus0 not configured omgpio0 at simplebus0: rev 0.1 gpio0 at omgpio0: 32 pins omgpio1 at simplebus0: rev 0.1 gpio1 at omgpio1: 32 pins omgpio2 at simplebus0: rev 0.1 gpio2 at omgpio2: 32 pins omgpio3 at simplebus0: rev 0.1 gpio3 at omgpio3: 32 pins com0 at simplebus0: ti16750, 64 byte fifo com0: console tiiic0 at simplebus0 rev 0.11 iic0 at tiiic0 "ti,tps65217" at iic0 addr 0x24 not configured "atmel,24c256" at iic0 addr 0x50 not configured nxphdmi0 at iic0 addr 0x70: rev 0x0301 nxphdmi0: no display detected tiiic1 at simplebus0 rev 0.11 iic1 at tiiic1 "atmel,24c256" at iic1 addr 0x54 not configured "atmel,24c256" at iic1 addr 0x55 not configured "atmel,24c256" at iic1 addr 0x56 not configured "atmel,24c256" at iic1 addr 0x57 not configured ommmc0 at simplebus0 sdmmc0 at ommmc0: 4-bit, sd high-speed, mmc high-speed ommmc1 at simplebus0 sdmmc1 at ommmc1: 1-bit "spinlock" at simplebus0 not configured omdog0 at simplebus0 rev 0.1 "mailbox" at simplebus0 not configured "timer" at simplebus0 not configured "timer" at simplebus0 not configured "timer" at simplebus0 not configured "timer" at simplebus0 not configured "timer" at simplebus0 not configured "timer" at simplebus0 not configured "timer" at simplebus0 not configured "rtc" at simplebus0 not configured "usb" at simplebus0 not configured cpsw0 at simplebus0: version 1.12 (0), address 1c:ba:8c:e1:7e:25 ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI 0x0001f0, model 0x000f "ocmcram" at simplebus0 not configured amdisplay0 at simplebus0 amdisplay0: no display attached. "emif" at simplebus0 not configured "sham" at simplebus0 not configured "aes" at simplebus0 not configured "mcasp" at simplebus0 not configured "rng" at simplebus0 not configured scsibus0 at sdmmc1: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <SD/MMC, MMC04G, 0000> removable sd0: 3744MB, 512 bytes/sector, 7667712 sectors scsibus1 at sdmmc0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SL64G, 0080> removable sd1: 60906MB, 512 bytes/sector, 124735488 sectors vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets bootfile: sd0a:/bsd boot device: sd0 root on sd1a (8c62c0a30623b015.a) swap on sd1b dump on sd1b WARNING: CHECK AND RESET THE DATE! usbdevs: usbdevs: no USB controllers found