On Sun, Jan 05, 2020 at 01:19:01PM -0500, dbar...@cs.williams.edu wrote:
> >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.

Building U-Boot 2020.01 omap4_panda on armv7 with -current fails the
same way.  linaro gcc 7.5.2019.12 does not change anything either.

  arm-none-eabi-gcc -Wp,-MD,lib/.time.o.d  -nostdinc -isystem 
/usr/local/lib/gcc/arm-none-eabi/7.5.0/include -Iinclude  
-I/usr/pobj/u-boot-arm-2020.01-arm/u-boot-2020.01/include   
-I/usr/pobj/u-boot-arm-2020.01-arm/u-boot-2020.01/arch/arm/include -include 
/usr/pobj/u-boot-arm-2020.01-arm/u-boot-2020.01/include/linux/kconfig.h  
-I/usr/pobj/u-boot-arm-2020.01-arm/u-boot-2020.01/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/pobj/u-boot-arm-2020.01-arm/u-boot-2020.01/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/pobj/u-boot-arm-2020.01-arm/u-boot-2020.01/lib/time.c
/usr/pobj/u-boot-arm-2020.01-arm/u-boot-2020.01/lib/time.c:187:1: internal 
compiler error: Bus error

Reply via email to