Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD-7 build issues with earmv7hf



On Fri, 8 Jul 2016 08:29:39 +0100
Sad Clouds <cryintothebluesky%googlemail.com@localhost> wrote:

> Hello, I'm running the following build command:
> 
> /bin/sh ./build.sh -j 1 -u -m evbarm -a earmv7hf
> 
> and this fails with the errors below. Any ideas what may be wrong
> here?
> 
> 
> 
> #   compile  BCM5301X/vfp_init.o
> /opt/tools.evbarm/bin/armv7--netbsdelf-eabihf-gcc -mfpu=vfp
> -mfloat-abi=soft -ffreestanding -fno-zero-initialized-in-bss -pipe
> -fno-strict-aliasing -fno-common -mfpu=vfp -std=gnu99 -Werror -Wall
> -Wno-main -Wno-format-zero-length -Wpointer-arith
> -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition
> -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code
> -Wno-pointer-sign -Wno-attributes -Wno-sign-compare
> --sysroot=/opt/obj.evbarm/destdir.evbarm -mcpu=cortex-a9 -mfpu=neon
> -DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0 -I.
> -I/opt/src/sys/../common/include -I/opt/src/sys/arch -I/opt/src/sys
> -nostdinc -DCHILD_MAX=1024 -DOPEN_MAX=1024
> -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -D__HAVE_MM_MD_CACHE_ALIASING
> -D__HAVE_FAST_SOFTINTS -D__HAVE_CPU_UAREA_ALLOC_IDLELWP
> -D__HAVE_CPU_COUNTER -D__HAVE_PCI_CONF_HOOK
> -DKERNEL_BASE_EXT=0x80000000 -DARM_GENERIC_TODR -DRNDVERBOSE
> -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -std=gnu99
> -I/opt/src/sys/lib/libkern/../../../common/lib/libc/quad
> -I/opt/src/sys/lib/libkern/../../../common/lib/libc/string
> -I/opt/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string
> -c /opt/src/sys/arch/arm/vfp/vfp_init.c {standard input}: Assembler
> messages: {standard input}:623: Error: selected processor does not
> support ARM mode `vmrs r3,fpsid' {standard input}:650: Error:
> selected processor does not support ARM mode `vmrs
> r3,fpscr' {standard input}:679: Error: selected processor does not
> support ARM mode `vmsr fpscr,r3' {standard input}:703: Error:
> selected processor does not support ARM mode `vmrs
> r3,mvfr1' {standard input}:730: Error: selected processor does not
> support ARM mode `vmrs r3,mvfr0' {standard input}:757: Error:
> selected processor does not support ARM mode `vmrs
> r3,fpexc' {standard input}:786: Error: selected processor does not
> support ARM mode `vmsr fpexc,r3' {standard input}:810: Error:
> selected processor does not support ARM mode `fmrx
> r3,fpinst' {standard input}:839: Error: selected processor does not
> support ARM mode `fmxr fpinst,r3' {standard input}:863: Error:
> selected processor does not support ARM mode `fmrx
> r3,fpinst2' {standard input}:892: Error: selected processor does not
> support ARM mode `fmxr fpinst2,r3' *** [vfp_init.o] Error code 1
> 
> nbmake[2]: stopped in /opt/obj.evbarm/sys/arch/evbarm/compile/BCM5301X
> 1 error

Hello, could anyone tell me how you build NetBSD kernel for armv7?
Surely there is a way to build a kernel for BEAGLEBONE that doesn't
result in assembler errors?

How do you generate the following binaries:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0.1/evbarm-earmv7hf/

I don't think I'm doing anything unreasonable

I've tried, removing all object files and running

/bin/sh ./build.sh -j 1 -u -m evbarm -a earmv7hf

and 

/bin/sh ./build.sh -j 1 -u -m evbearmv7hf-el

and both of them results in

--- vfp_init.o ---
#   compile  BEAGLEBONE/vfp_init.o
/opt/tools.evbearmv7hf-el/bin/armv7--netbsdelf-eabihf-gcc -mfpu=vfp
-mfloat-abi=soft -ffreestanding -fno-zero-initialized-in-bss -g -pipe
-fno-strict-aliasing -fno-common -mfpu=vfp -std=gnu99 -Werror -Wall
-Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow
-Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign
-Wno-attributes -Wno-sign-compare
--sysroot=/opt/obj.evbearmv7hf-el/destdir.evbarm -mcpu=cortex-a8
-mfpu=neon -DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0 -I.
-I/opt/src/sys/../common/include -I/opt/src/sys/arch -I/opt/src/sys
-nostdinc -DCHILD_MAX=1024 -DOPEN_MAX=1024 -D__HAVE_CPU_COUNTER
-D__HAVE_FAST_SOFTINTS -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS
-DKERNEL_BASE_EXT=0x80000000 -DARM_GENERIC_TODR -DDIAGNOSTIC -DDEBUG
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -std=gnu99
-I/opt/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/opt/src/sys/lib/libkern/../../../common/lib/libc/string
-I/opt/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string
-c /opt/src/sys/arch/arm/vfp/vfp_init.c

{standard input}: Assembler messages:
{standard input}:431: Error: selected processor does not support ARM
mode `vmrs r3,fpsid' {standard input}:460: Error: selected processor
does not support ARM mode `vmrs r3,fpscr' {standard input}:491: Error:
selected processor does not support ARM mode `vmsr fpscr,r3' {standard
input}:517: Error: selected processor does not support ARM mode `vmrs
r3,mvfr1' {standard input}:546: Error: selected processor does not
support ARM mode `vmrs r3,mvfr0' {standard input}:575: Error: selected
processor does not support ARM mode `vmrs r3,fpexc' {standard
input}:606: Error: selected processor does not support ARM mode `vmsr
fpexc,r3' {standard input}:632: Error: selected processor does not
support ARM mode `fmrx r3,fpinst' {standard input}:663: Error: selected
processor does not support ARM mode `fmxr fpinst,r3' {standard
input}:689: Error: selected processor does not support ARM mode `fmrx
r3,fpinst2' {standard input}:720: Error: selected processor does not
support ARM mode `fmxr fpinst2,r3'


Home | Main Index | Thread Index | Old Index