NetBSD Problem Report #47258

From www@NetBSD.org  Tue Nov 27 20:39:28 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id BB1C263E986
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 27 Nov 2012 20:39:28 +0000 (UTC)
Message-Id: <20121127203927.8AB1863E986@www.NetBSD.org>
Date: Tue, 27 Nov 2012 20:39:27 +0000 (UTC)
From: splissken@free.fr
Reply-To: splissken@free.fr
To: gnats-bugs@NetBSD.org
Subject: Build kernel failed on identcpu on 5_Stable
X-Send-Pr-Version: www-1.0

>Number:         47258
>Category:       kern
>Synopsis:       Build kernel failed on identcpu on 5_Stable
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 27 20:40:01 +0000 2012
>Closed-Date:    Sun May 01 05:29:47 +0000 2016
>Last-Modified:  Sun May 01 05:29:47 +0000 2016
>Originator:     Fabrice
>Release:        5.1.2
>Organization:
>Environment:
SPeeeNetBSD$ uname -a
NetBSD SPeeeNetBSD.SP.net 5.1.2 NetBSD 5.1.2 (GENERIC) #0: Thu Feb  2 17:22:10 UTC 2012  builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-2-RELEASE/i386/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386
SPeeeNetBSD$
>Description:
Hello

After building userland, which was ok

make distribution started at:  Tue Nov 27 10:52:35 CET 2012
make distribution finished at: Tue Nov 27 16:42:40 CET 2012
===> Successful make distribution
===> build.sh ended:   Tue Nov 27 16:42:40 CET 2012
===> Summary of results:
         build.sh command: ./build.sh -O ../obj -T ../tools -U distribution
         build.sh started: Tue Nov 27 10:52:14 CET 2012
         NetBSD version:   5.2_RC1
         MACHINE:          i386
         MACHINE_ARCH:     i386
         Build platform:   NetBSD 5.1.2 i386
         HOST_SH:          /bin/sh
         No /mnt/DD1/netbsd/src/../tools/bin/nbmake, needs building.
         Bootstrapping nbmake
         TOOLDIR path:     /mnt/DD1/netbsd/src/../tools
         DESTDIR path:     /mnt/DD1/netbsd/src/../obj/destdir.i386
         RELEASEDIR path:  /mnt/DD1/netbsd/src/../obj/releasedir
         Created /mnt/DD1/netbsd/src/../tools/bin/nbmake
         makewrapper:      /mnt/DD1/netbsd/src/../tools/bin/nbmake-i386
         Updated /mnt/DD1/netbsd/src/../tools/bin/nbmake-i386
         Successful make distribution
         build.sh ended:   Tue Nov 27 16:42:40 CET 2012
===> .
SPeeeNetBSD# 


i tried to build the kernel
And got this on identcpu
http://pastebin.com/CQvJDV7C
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Jeff Rizzo <riz@boogers.sf.ca.us>
To: gnats-bugs@NetBSD.org
Cc: splissken@free.fr, kern-bug-people@netbsd.org
Subject: Re: kern/47258: Build kernel failed on identcpu on 5_Stable
Date: Tue, 27 Nov 2012 12:57:40 -0800

 This is a multi-part message in MIME format.
 --------------030405020709060501000703
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit

 On 11/27/12 12:40 PM, splissken@free.fr wrote:
 > i tried to build the kernel And got this on identcpu 
 > http://pastebin.com/CQvJDV7C

 (copying  from pastebin, it won't last forever):

  1.
     #   compile  SPKERNEL/identcpu.o
  2.
     /mnt/DD1/netbsd/src/../tools/bin/i386--netbsdelf-gcc -ffreestanding
     -fno-zero-initialized-in-bss -O2 -std=gnu99 -fno-strict-aliasing
     -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
     -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow
     -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-sign-compare
     -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter
     -Werror -march=i486 -mtune=pentiumpro -Di386 -I.
     -I/mnt/DD1/netbsd/src/sys/../common/include
     -I/mnt/DD1/netbsd/src/sys/arch -I/mnt/DD1/netbsd/src/sys -nostdinc
     -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT
     -I/mnt/DD1/netbsd/src/sys/lib/libkern/../../../common/lib/libc/quad
     -I/mnt/DD1/netbsd/src/sys/lib/libkern/../../../common/lib/libc/string -I/mnt/DD1/netbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
     -I/mnt/DD1/netbsd/src/sys/external/isc/atheros_hal/dist
     -I/mnt/DD1/netbsd/src/sys/external/isc/atheros_hal/ic
     -I/mnt/DD1/netbsd/src/sys/../common/include
     -I/mnt/DD1/netbsd/src/sys/dist/ipf -c
     /mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c
  3.
     /mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c: In function
     'cpu_probe_winchip':
  4.
     /mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c:413: error:
     'MSR_VIA_FCR' undeclared (first use in this function)
  5.
     /mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c:413: error: (Each
     undeclared identifier is reported only once
  6.
     /mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c:413: error: for each
     function it appears in.)
  7.
  8.
     *** Failed target:  identcpu.o


 Can you please send your kernel config?  GENERIC does not fail to 
 build.  (netbsd-5.2)

 +j



 --------------030405020709060501000703
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit

 <html>
   <head>
     <meta content="text/html; charset=ISO-8859-1"
       http-equiv="Content-Type">
   </head>
   <body bgcolor="#FFFFFF" text="#000000">
     <div class="moz-cite-prefix">On 11/27/12 12:40 PM, <a class="moz-txt-link-abbreviated" href="mailto:splissken@free.fr">splissken@free.fr</a>
       wrote:<br>
     </div>
     <blockquote cite="mid:20121127204001.E35B163E987@www.NetBSD.org"
       type="cite">
       i tried to build the kernel
       And got this on identcpu
       <a class="moz-txt-link-freetext" href="http://pastebin.com/CQvJDV7C">http://pastebin.com/CQvJDV7C</a><br>
     </blockquote>
     <br>
     (copying&nbsp; from pastebin, it won't last forever):<br>
     <br>
     <meta charset="utf-8">
     <ol style="margin: 0px; padding: 0px 0px 0px 48px; color: rgb(172,
       172, 172); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
       'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
       monospace, serif; font-size: 12px; font-style: normal;
       font-variant: normal; font-weight: normal; letter-spacing: normal;
       line-height: 21px; orphans: 2; text-align: start; text-indent:
       0px; text-transform: none; white-space: normal; widows: 2;
       word-spacing: 0px; -webkit-text-size-adjust: auto;
       -webkit-text-stroke-width: 0px; background-color: rgb(248, 248,
       248);">
       <li class="li1" style="-webkit-user-select: none;">
         <div class="de1" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;"># &nbsp; compile &nbsp;SPKERNEL/identcpu.o</div>
       </li>
       <li class="li2" style="-webkit-user-select: none;">
         <div class="de2" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;">/mnt/DD1/netbsd/src/../tools/bin/i386--netbsdelf-gcc
           -ffreestanding -fno-zero-initialized-in-bss -O2 -std=gnu99
           -fno-strict-aliasing -Werror -Wall -Wno-main
           -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
           -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual
           -Wwrite-strings -Wno-unreachable-code -Wno-sign-compare
           -Wno-pointer-sign -Wno-attributes -Wextra
           -Wno-unused-parameter -Werror -march=i486 -mtune=pentiumpro
           -Di386 -I. -I/mnt/DD1/netbsd/src/sys/../common/include
           -I/mnt/DD1/netbsd/src/sys/arch -I/mnt/DD1/netbsd/src/sys
           -nostdinc -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT
           -I/mnt/DD1/netbsd/src/sys/lib/libkern/../../../common/lib/libc/quad
           -I/mnt/DD1/netbsd/src/sys/lib/libkern/../../../common/lib/libc/string
           -I/mnt/DD1/netbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
           -I/mnt/DD1/netbsd/src/sys/external/isc/atheros_hal/dist
           -I/mnt/DD1/netbsd/src/sys/external/isc/atheros_hal/ic
           -I/mnt/DD1/netbsd/src/sys/../common/include
           -I/mnt/DD1/netbsd/src/sys/dist/ipf -c
           /mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c</div>
       </li>
       <li class="li1" style="-webkit-user-select: none;">
         <div class="de1" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;">/mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c:
           In function 'cpu_probe_winchip':</div>
       </li>
       <li class="li2" style="-webkit-user-select: none;">
         <div class="de2" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;">/mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c:413:
           error: 'MSR_VIA_FCR' undeclared (first use in this function)</div>
       </li>
       <li class="li1" style="-webkit-user-select: none;">
         <div class="de1" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;">/mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c:413:
           error: (Each undeclared identifier is reported only once</div>
       </li>
       <li class="li2" style="-webkit-user-select: none;">
         <div class="de2" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;">/mnt/DD1/netbsd/src/sys/arch/x86/x86/identcpu.c:413:
           error: for each function it appears in.)</div>
       </li>
       <li class="li1" style="-webkit-user-select: none;">
         <div class="de1" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;">&nbsp;</div>
       </li>
       <li class="li2" style="-webkit-user-select: none;">
         <div class="de2" style="-webkit-user-select: text; padding: 0px
           5px; vertical-align: top; color: rgb(0, 0, 0);
           border-left-width: 1px; border-left-style: solid;
           border-left-color: rgb(204, 204, 204); margin: 0px 0px 0px
           -7px; position: relative; background-color: rgb(255, 255,
           255); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
           'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans
           Mono', monospace, serif; line-height: 21px;
           background-position: initial initial; background-repeat:
           initial initial;">*** Failed target: &nbsp;identcpu.o</div>
       </li>
     </ol>
     <p><br>
       Can you please send your kernel config?&nbsp; GENERIC does not fail to
       build.&nbsp; (netbsd-5.2)<br>
     </p>
     <p>+j<br>
       <br>
     </p>
     <br>
   </body>
 </html>

 --------------030405020709060501000703--

From: Jeff Rizzo <riz@boogers.sf.ca.us>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, splissken@free.fr
Subject: Re: kern/47258: Build kernel failed on identcpu on 5_Stable
Date: Tue, 27 Nov 2012 20:44:53 -0800

 On 11/27/12 1:00 PM, Jeff Rizzo wrote:
 >   
 >   
 >   Can you please send your kernel config?  GENERIC does not fail to
 >   build.  (netbsd-5.2)
 >   
 >   +j
 >   
 >   

 Never mind, I found and fixed the problem.  Can you cvs update and 
 verify it works?



State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 08 Sep 2015 09:04:53 +0000
State-Changed-Why:
feedback was requested, in 2012.


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 01 May 2016 05:29:47 +0000
State-Changed-Why:
Feedback timeout.


>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.