NetBSD-Bugs archive

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

kern/51017: VEXPRESS_A15 doesn't compile



>Number:         51017
>Category:       kern
>Synopsis:       VEXPRESS_A15 doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 27 16:25:00 +0000 2016
>Originator:     Sylvain
>Release:        7-CURRENT
>Organization:
>Environment:
Mac OS El Capitan Darwin cool.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
>Description:
The evbarm VEXPRESS_A15 doesn't compile anymore.

End of compile log:
#   compile  VEXPRESS_A15/vexpress_start.o
/Users/sylvain/netbsd/src/obj/tooldir.Darwin-15.4.0-x86_64/bin/armv7--netbsdelf-eabihf-gcc -x assembler-with-cpp -D_LOCORE -Wa,--fatal-warnings -march=armv7-a -mfpu=neon --sysroot=/Users/sylvain/netbsd/src/obj/destdir.evbarm -DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0 -I. -I/Users/sylvain/netbsd/src/sys/../common/lib/libx86emu -I/Users/sylvain/netbsd/src/sys/../common/include -I/Users/sylvain/netbsd/src/sys/arch -I/Users/sylvain/netbsd/src/sys -nostdinc -D__HAVE_CPU_COUNTER -D__HAVE_FAST_SOFTINTS -DKERNEL_BASE_EXT=0x80000000 -DARM_GENERIC_TODR -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -DDIAGNOSTIC -DDEBUG -DPLCONSOLE -DBOOT_ARGS="verbose" -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/Users/sylvain/netbsd/src/sys/lib/libkern/../../../common/lib/libc/quad -I/Users/sylvain/netbsd/src/sys/lib/libkern/../../../common/lib/libc/string -I/Users/sylvain/netbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -c /Users/sylvain/netbsd/src/sys/arch/evbarm/vexpress/vexpress_start.S -o vexpress_start
 .o
/Users/sylvain/netbsd/src/sys/arch/arm/cortex/a9_mpsubr.S: Assembler messages:
/Users/sylvain/netbsd/src/sys/arch/arm/cortex/a9_mpsubr.S:365: Error: Banked registers are not available with this architecture. -- `msr elr_hyp,lr'
/Users/sylvain/netbsd/src/sys/arch/arm/cortex/a9_mpsubr.S:366: Error: selected processor does not support `eret' in ARM mode
>How-To-Repeat:
./build.sh -T obj/tooldir.Darwin-15.4.0-x86_64/ -m evbearmv7hf-el -U -j4   kernel=VEXPRESS_A15
>Fix:
I compared with RPI2 and guess mcpu should be defined instead of march.

in std.vexpress, change:
makeoptions    CPUFLAGS="-march=armv7-a -mfpu=neon"

with:
makeoptions     CPUFLAGS="-mcpu=cortex-a15 -mfpu=neon"
makeoptions     CPUFLAGS="-mcpu=cortex-a7 -mfpu=neon"

fixes the problem



Home | Main Index | Thread Index | Old Index