NetBSD Problem Report #36726

From martin@duskware.de  Thu Aug  2 21:21:47 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 17DAF63B8EA
	for <gnats-bugs@gnats.netbsd.org>; Thu,  2 Aug 2007 21:21:47 +0000 (UTC)
Message-Id: <20070802210204.97D1163B8EA@narn.NetBSD.org>
Date: Thu,  2 Aug 2007 21:02:04 +0000 (UTC)
From: baldur@foo.is
Reply-To: baldur@foo.is
To: netbsd-bugs-owner@NetBSD.org
Subject: -current/hpcarm doesn't build
X-Send-Pr-Version: www-1.0

>Number:         36726
>Category:       port-hpcarm
>Synopsis:       -current/hpcarm doesn't build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-hpcarm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 02 21:25:00 +0000 2007
>Closed-Date:    Sun Jan 23 02:41:51 +0000 2011
>Last-Modified:  Sun Jan 23 02:41:51 +0000 2011
>Originator:     Baldur Gislason
>Release:        -current
>Organization:
>Environment:
>Description:
When building -current for hpcarm with build.sh the build will fail.
I've tried this on more than one machine and I always get the same result.
Building i386 works and so does 3.1.1-PATCH for hpcarm.

#   compile  vnd/lkminit_vnd.o
/home/baldur/netbsd/obj/tooldir.FreeBSD-6.2-PRERELEASE-i386/bin/arm--netbsdelf-gcc -O2 -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional  -Werror   -I/home/baldur/netbsd/src/common/include -nostdinc -I. -I/home/baldur/netbsd/src/sys/lkm/dev/vnd -isystem /home/baldur/netbsd/src/sys -isystem /home/baldur/netbsd/src/sys/arch -isystem /home/baldur/netbsd/src/sys/../common/include -D_KERNEL -D_LKM  -c    /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c
In file included from ./arm/cpu.h:85,
                 from ./machine/cpu.h:3,
                 from ./arm/arm32/param.h:39,
                 from ./machine/param.h:45,
                 from /home/baldur/netbsd/src/sys/sys/param.h:145,
                 from /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c:34:
./machine/intr.h:81: error: expected identifier or '(' before 'do'
./machine/intr.h:81: error: expected identifier or '(' before 'while'
In file included from ./arm/cpu.h:85,
                 from ./machine/cpu.h:3,
                 from ./arm/arm32/param.h:39,
                 from ./machine/param.h:45,
                 from /home/baldur/netbsd/src/sys/sys/param.h:145,
                 from /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c:34:
./machine/intr.h:82:21: error: macro "setsoftnet" passed 1 arguments, but takes just 0

*** Failed target:  lkminit_vnd.o
*** Failed command: /home/baldur/netbsd/obj/tooldir.FreeBSD-6.2-PRERELEASE-i386/bin/arm--netbsdelf-gcc -O2 -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Werror -I/home/baldur/netbsd/src/common/include -nostdinc -I. -I/home/baldur/netbsd/src/sys/lkm/dev/vnd -isystem /home/baldur/netbsd/src/sys -isystem /home/baldur/netbsd/src/sys/arch -isystem /home/baldur/netbsd/src/sys/../common/include -D_KERNEL -D_LKM -c /home/baldur/netbsd/src/sys/lkm/dev/vnd/lkminit_vnd.c
*** Error code 1

Stop.
nbmake: stopped in /home/baldur/netbsd/src/sys/lkm/dev/vnd

*** Failed target:  dependall
*** Failed command: cd /home/baldur/netbsd/src/sys/lkm/dev/vnd; /home/baldur/netbsd/obj/tooldir.FreeBSD-6.2-PRERELEASE-i386/bin/nbmake realall
*** Error code 1
>How-To-Repeat:
Download -current sources via ftp or cvs.
go into source dir and run ./build.sh -u -m hpcarm tools; ./build.sh -u -U -m hpcarm build
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->analyzed
State-Changed-By: rjs@netbsd.org
State-Changed-When: Sat, 04 Aug 2007 17:21:45 +0000
State-Changed-Why:
The build fails as Makefiles for LKMs do not pass $MACHINE to gcc.
The interrupt code will need more extensive changes to fix this.


From: IWAMOTO Toshihiro <toshii@w.email.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: port-hpcarm-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
	gnats-admin@netbsd.org, rjs@netbsd.org, baldur@foo.is
Subject: Re: port-hpcarm/36726 (-current/hpcarm doesn't build)
Date: Sun, 05 Aug 2007 23:34:02 +0900

 At Sat,  4 Aug 2007 17:21:46 +0000 (UTC),
 rjs@netbsd.org wrote:
 > 
 > Synopsis: -current/hpcarm doesn't build
 > 
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: rjs@netbsd.org
 > State-Changed-When: Sat, 04 Aug 2007 17:21:45 +0000
 > State-Changed-Why:
 > The build fails as Makefiles for LKMs do not pass $MACHINE to gcc.
 > The interrupt code will need more extensive changes to fix this.

 I guess testing for __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS would work
 (untested), which may be ok for a temporary fix.

 --
 IWAMOTO Toshihiro


State-Changed-From-To: analyzed->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sun, 23 Jan 2011 11:41:51 +0900
State-Changed-Why:
Fiexed years ago.


>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.