NetBSD Problem Report #16195

Received: (qmail 15424 invoked from network); 4 Apr 2002 11:40:15 -0000
Message-Id: <Pine.SOL.4.33.0204041233200.19806-100000@draco.cus.cam.ac.uk>
Date: Thu, 4 Apr 2002 12:40:10 +0100 (BST)
From: Ben Harris <bjh21@netbsd.org>
Sender: Ben Harris <bjh21@cus.cam.ac.uk>
To: <gnats-bugs@gnats.netbsd.org>
Subject: bebox/stand/boot won't build

>Number:         16195
>Category:       port-bebox
>Synopsis:       bebox/stand/boot won't build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-bebox-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 04 11:41:01 +0000 2002
>Closed-Date:    Tue Apr 09 16:13:54 +0000 2002
>Last-Modified:  Tue Apr 09 16:13:54 +0000 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: sakamoto 
State-Changed-When: Tue Apr 9 09:10:55 PDT 2002 
State-Changed-Why:  
Fixed, thanks. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.