Re: Crosscompiling NetBSD for Fonera not working with HEAD?

Fredrik Pettai <[email protected]> Sun, 5 Jul 2009 23:58:32 +0200
Newsgroups gmane.os.netbsd.ports.evbmips
Message-ID <[email protected]>
On Jul 5, 2009, at 11:31 PM, David Holland wrote:
> On Wed, Jul 01, 2009 at 09:28:43PM +0200, Fredrik Pettai wrote:
>>> Is there something involved that's compiled with custom CFLAGS?
>>
>> Not that I've set. /etc/mk.conf is empty, and no CFLAGS variable is  
>> set.
>
> I mean its own custom CFLAGS. The Atheros HAL is in particular what
> I'm thinking of, since from what you've sent it looks like it's dying
> inside that.

This is how it's look like then running build.sh -N 2 -m .... =MERAKI
I just cut out the output from building ar5312_reset.c, which contains  
the code where it bails out.

#    create  FON2100/ar5312_reset.d
CC=/usr/src/obj/tooldir.NetBSD-5.99.11-i386/bin/mipseb--netbsd-gcc / 
usr/src/obj/
tooldir.NetBSD-5.99.11-i386/bin/nbmkdep -f ar5312_reset.d --  -G 0 - 
mno-abicalls
  -msoft-float -ffixed-23 -ffreestanding -fno-zero-initialized-in-bss - 
g -Os -std
=gnu99 -fno-strict-aliasing   -Werror -Wall -Wno-main -Wno-format-zero- 
length -W
pointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch - 
Wshadow -Wcast-
qual -Wwrite-strings -Wno-unreachable-code -Wno-sign-compare -Wno- 
pointer-sign -
Wno-attributes  -Werror    -Devbmips -I.  -I/usr/src/sys/../common/ 
include -I/us
r/src/sys/arch  -I/usr/src/sys -nostdinc -DMIPS3_ENABLE_CLOCK_INTR - 
DMIPS32 -DSO
FTFLOAT -DCOM_ARBUS_BAUD="9600" -DVNODE_OP_NOINLINE -DDIAGNOSTIC - 
DDEBUG -DMAXUS
ERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../ 
common/lib/li
bc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/ 
usr/src/sy
s/lib/libkern/../../../common/lib/libc/arch/mips/string   -I/usr/src/ 
sys/externa
l/isc/atheros_hal/dist -I/usr/src/sys/external/isc/atheros_hal/ic  / 
usr/src/sys/
external/isc/atheros_hal/dist/ar5312/ar5312_reset.c

HTH,
/P