Subject: Re: Porting to RTL8181
To: Simon Burge <simonb@wasabisystems.com>
From: Jason Hecker <jhecker@wireless.org.au>
List: port-evbmips
Date: 11/25/2003 20:15:15
Minitar are actively supporting hacking of the AP with their own forums 
http://www.minitar.com/forums/index.php?showforum=14

> -current; if we add a port for this device to our tree it'll go
> in -current.  How are your builds failing?

Using (In Redhat Fedora Core 1 which has GCC3.3 as it's primary compiler):

[blah@blah src]$ ./build.sh -m evbmips-eb -T /home/blah/netbsd/tools -R 
/home/blah/netbsd/release -D /home/blah/netbsd/dest  -O 
/home/blah/netbsd/objs -u -U tools distribution

It ends up stopping at the point below.  Luke thought it might be a problem 
with the PC variable in termcap.h colliding with PC in one of the MIPS 
headers.  I am not sure how to resolve this myself... :(

dependall ===> regress/include/bitstring
#      link  bitstring/bitstring_test
/home/blah/netbsd/tools/bin/mipseb--netbsd-gcc    -o bitstring_test -nostdlib  
-Wl,-rpath-link,/home/blah/netbsd/dest/lib:/home/blah/netbsd/dest/usr/lib  
-L/home/blah/netbsd/dest/lib /home/blah/netbsd/dest/usr/lib/crt0.o 
/home/blah/netbsd/dest/usr/lib/crti.o 
/home/blah/netbsd/dest/usr/lib/crtbegin.o bitstring_test.o  
-L/home/blah/netbsd/dest/usr/lib -L/home/blah/netbsd/dest/usr/lib  -lgcc -lc 
-lgcc /home/blah/netbsd/dest/usr/lib/crtend.o 
/home/blah/netbsd/dest/usr/lib/crtn.o
dependall ===> regress/include/okheaders
#   compile  okheaders/symbolcheck.o
/home/blah/netbsd/tools/bin/mipseb--netbsd-gcc -O2  -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional 
-Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werror    -nostdinc 
-isystem /home/blah/netbsd/dest/usr/include  -c    
/home/blah/netbsd/src/regress/include/okheaders/symbolcheck.c
In file included from /home/blah/netbsd/dest/usr/include/curses.h:42,
                 from 
/home/blah/netbsd/src/regress/include/okheaders/symbolcheck.c:222:
/home/blah/netbsd/dest/usr/include/termcap.h:67: error: parse error before 
numeric constant

*** Failed target:  symbolcheck.o
*** Failed command: /home/blah/netbsd/tools/bin/mipseb--netbsd-gcc -O2 -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare 
-Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow -Werror 
-nostdinc -isystem /home/blah/netbsd/dest/usr/include -c 
/home/blah/netbsd/src/regress/include/okheaders/symbolcheck.c
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src/regress/include/okheaders

*** Failed target:  dependall
*** Failed command: cd /home/blah/netbsd/src/regress/include/okheaders; 
/home/blah/netbsd/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src/regress/include/okheaders

*** Failed target:  dependall-okheaders
*** Failed command: targ=dependall;dir=okheaders; case "$dir" in /*) echo 
"$targ ===> $dir"; cd "$dir"; /home/blah/netbsd/tools/bin/nbmake 
"_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> regress/include/$dir"; cd 
"/home/blah/netbsd/src/regress/include/$dir"; 
/home/blah/netbsd/tools/bin/nbmake "_THISDIR_=regress/include/$dir/" $targ; 
;; esac
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src/regress/include

*** Failed target:  dependall-include
*** Failed command: targ=dependall;dir=include; case "$dir" in /*) echo "$targ 
===> $dir"; cd "$dir"; /home/blah/netbsd/tools/bin/nbmake "_THISDIR_=$dir/" 
$targ; ;; *) echo "$targ ===> regress/$dir"; cd 
"/home/blah/netbsd/src/regress/$dir"; /home/blah/netbsd/tools/bin/nbmake 
"_THISDIR_=regress/$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src/regress

*** Failed target:  dependall-regress
*** Failed command: targ=dependall;dir=regress; case "$dir" in /*) echo "$targ 
===> $dir"; cd "$dir"; /home/blah/netbsd/tools/bin/nbmake "_THISDIR_=$dir/" 
$targ; ;; *) echo "$targ ===> $dir"; cd "/home/blah/netbsd/src/$dir"; 
/home/blah/netbsd/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src

*** Failed target:  do-build
*** Failed command: (cd /home/blah/netbsd/src && 
/home/blah/netbsd/tools/bin/nbmake dependall BUILD_tools=no BUILD_lib=no)
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src

*** Failed target:  build
*** Failed command: (cd /home/blah/netbsd/src && 
/home/blah/netbsd/tools/bin/nbmake do-build)
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src

*** Failed target:  distribution
*** Failed command: (cd /home/blah/netbsd/src && 
/home/blah/netbsd/tools/bin/nbmake NOPOSTINSTALL=1 build)
*** Error code 1

Stop.
nbmake: stopped in /home/blah/netbsd/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***