Subject: port-bebox/16195: bebox/stand/boot won't build
To: None <gnats-bugs@gnats.netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: netbsd-bugs
Date: 04/04/2002 12:40:10
>Number:         16195
>Category:       port-bebox
>Synopsis:       bebox/stand/boot won't build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-bebox-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 04 03:41:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ben Harris
>Release:        2002-04-03
>Organization:
>Environment:
Cross-compile on Debian GNU/Linux 2.2

>Description:
Compiling in sys/arch/bebox/stand/boot:

dependall ===> sys/arch/bebox/stand/boot
nbmake: "/u1/ben/netbsd/src/share/mk/bsd.prog.mk" line 150: warning: duplicate script for target "cleanobjs" ignored
nbmake: "/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/Makefile" line 67: warning: using previous script for "cleanobjs" defined here
nbmake: "/u1/ben/netbsd/src/share/mk/bsd.prog.mk" line 150: warning: duplicate script for target "cleanobjs" ignored
nbmake: "/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/Makefile" line 67: warning: using previous script for "cleanobjs" defined here
/u1/ben/netbsd/tools/bin/powerpc--netbsd-gcc -x assembler-with-cpp -traditional-cpp -c /u1/ben/netbsd/src/sys/arch/bebox/stand/boot/srt0.s
/u1/ben/netbsd/tools/bin/powerpc--netbsd-gcc -O2   -Werror -I/u1/ben/netbsd/src/sys/arch/bebox/stand/boot -I/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/../elf2pef -I/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/../../.. -I/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/../../../.. -I/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/../../../../lib/libsa -D_STANDALONE -DDBMONITOR -DRELOC=0x700000 -DUSE_SCAN -DCONS_VGA -nostdinc -isystem /u1/ben/netbsd/dest.bebox/usr/include  -c /u1/ben/netbsd/src/sys/arch/bebox/stand/boot/boot.c
cc1: warnings being treated as errors
/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/boot.c: In function `main':
/u1/ben/netbsd/src/sys/arch/bebox/stand/boot/boot.c:62: warning: return type of `main' is not `int'
*** Error code 1

Stop.

>How-To-Repeat:

	MACHINE=bebox
        sh build.sh \
                -U -m $MACHINE \
                -T /u1/ben/netbsd/tools \
                -O /u1/ben/netbsd/obj.$MACHINE \
                -D /u1/ben/netbsd/dest.$MACHINE \
                -R /u1/ben/netbsd/release.$MACHINE \
                > build.log.$MACHINE 2>&1

>Fix:
Adding -Wno-main to CFLAGS helps, but exposes more problems which don't
have immediately-obvious fixes.


>Release-Note:
>Audit-Trail:
>Unformatted: