NetBSD Problem Report #32350
From martin@aprisoft.de Wed Dec 21 10:21:22 2005
Return-Path: <martin@aprisoft.de>
Received: from mail.duskware.de (mail.duskware.de [213.146.108.170])
by narn.netbsd.org (Postfix) with ESMTP id 3364363B8E9
for <gnats-bugs@gnats.NetBSD.org>; Wed, 21 Dec 2005 10:21:22 +0000 (UTC)
Message-Id: <200512211021.jBLALJUF014022@nelly.aprisoft.de>
Date: Wed, 21 Dec 2005 11:21:19 +0100 (CET)
From: Martin Husemann <martin@aprisoft.de>
Reply-To: martin@aprisoft.de
To: gnats-bugs@netbsd.org
Subject: alpha libc/libkern fallout
X-Send-Pr-Version: 3.95
>Number: 32350
>Category: port-alpha
>Synopsis: alpha libc/libkern fallout
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-alpha-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 21 10:25:00 +0000 2005
>Closed-Date: Sat Feb 01 18:19:10 +0000 2014
>Last-Modified: Sat Feb 01 18:19:10 +0000 2014
>Originator: Martin Husemann
>Release: NetBSD 3.99.14
>Organization:
>Environment:
System: NetBSD nelly.aprisoft.de 3.99.14 NetBSD 3.99.14 (NELLY) #0: Tue Dec 13 18:00:44 CET 2005 martin@nelly.aprisoft.de:/usr/src/sys/arch/sparc64/compile/NELLY sparc64
Architecture: sparc64
Machine: sparc64
>Description:
The libc/libkern changes broke alpha builds:
--- dependall-bin ---
/usr/exp/hosts/alpha/lib/libc.so: undefined reference to `mcount'
collect2: ld returned 1 exit status
*** [cat] Error code 1
1 error
nbmake: stopped in /usr/src/bin/cat
>How-To-Repeat:
obvious
>Fix:
sorry, no time today
>Release-Note:
>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, port-alpha-maintainer@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: port-alpha/32350: alpha libc/libkern fallout
Date: Wed, 21 Dec 2005 09:31:34 -0500
On Dec 21, 10:25am, martin@nelly.aprisoft.de (Martin Husemann) wrote:
-- Subject: port-alpha/32350: alpha libc/libkern fallout
| >Number: 32350
| >Category: port-alpha
| >Synopsis: alpha libc/libkern fallout
| >Confidential: no
| >Severity: critical
| >Priority: high
| >Responsible: port-alpha-maintainer
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Wed Dec 21 10:25:00 +0000 2005
| >Originator: Martin Husemann
| >Release: NetBSD 3.99.14
| >Organization:
| >Environment:
| System: NetBSD nelly.aprisoft.de 3.99.14 NetBSD 3.99.14 (NELLY) #0: Tue Dec 13 18:00:44 CET 2005 martin@nelly.aprisoft.de:/usr/src/sys/arch/sparc64/compile/NELLY sparc64
| Architecture: sparc64
| Machine: sparc64
| >Description:
|
| The libc/libkern changes broke alpha builds:
|
| --- dependall-bin ---
| /usr/exp/hosts/alpha/lib/libc.so: undefined reference to `mcount'
| collect2: ld returned 1 exit status
| *** [cat] Error code 1
| 1 error
|
| nbmake: stopped in /usr/src/bin/cat
Are both _mcount.S and mcount.c compiled into libc?
christos
From: Martin Husemann <martin@duskware.de>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@netbsd.org
Subject: Re: port-alpha/32350: alpha libc/libkern fallout
Date: Wed, 21 Dec 2005 15:48:04 +0100
On Wed, Dec 21, 2005 at 09:31:34AM -0500, Christos Zoulas wrote:
> Are both _mcount.S and mcount.c compiled into libc?
The obj dir features mcount.o and _mcount.o, but nm says:
# nm *mcount*.o
0000000000000000 T _mcount
U mcount
mcount.o:
#
The compiler invocation for mcount.c is (modulo line breaks):
/usr/tools/bin/alpha--netbsd-gcc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-p
rototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswi
tch -Wshadow -Wcast-qual -Wwrite-strings -std=gnu99 -Werror -mieee -D_LIBC -
DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -I/usr/src/li
b/libc -DHESIOD -DINET6 -DNLS -DYP -I. -I/usr/src/lib/libc/../../common/lib/libc
/quad -I/usr/src/lib/libc/../../common/lib/libc/string -I/usr/src/lib/libc/../..
/common/lib/libc/arch/alpha/string -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4
-DCITRUS -I/usr/src/sys -I/usr/src/lib/libc/stdlib -I/usr/src/libexec/ld.elf_so
-I/usr/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/usr/src/lib/libc -DPOSIX
_MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT -DALL_STATE -DUSG_COMPAT -no
stdinc -isystem /usr/exp/hosts/alpha/usr/include -c /usr/src/common/lib/libc/
gmon/mcount.c -o mcount.o.tmp
Martin
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, port-alpha-maintainer@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, martin@aprisoft.de
Cc:
Subject: Re: port-alpha/32350: alpha libc/libkern fallout
Date: Wed, 21 Dec 2005 10:15:15 -0500
On Dec 21, 2:50pm, martin@duskware.de (Martin Husemann) wrote:
-- Subject: Re: port-alpha/32350: alpha libc/libkern fallout
| The compiler invocation for mcount.c is (modulo line breaks):
|
| /usr/tools/bin/alpha--netbsd-gcc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-p
| rototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswi
| tch -Wshadow -Wcast-qual -Wwrite-strings -std=gnu99 -Werror -mieee -D_LIBC -
| DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -I/usr/src/li
| b/libc -DHESIOD -DINET6 -DNLS -DYP -I. -I/usr/src/lib/libc/../../common/lib/libc
| /quad -I/usr/src/lib/libc/../../common/lib/libc/string -I/usr/src/lib/libc/../..
| /common/lib/libc/arch/alpha/string -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4
| -DCITRUS -I/usr/src/sys -I/usr/src/lib/libc/stdlib -I/usr/src/libexec/ld.elf_so
| -I/usr/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/usr/src/lib/libc -DPOSIX
| _MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT -DALL_STATE -DUSG_COMPAT -no
| stdinc -isystem /usr/exp/hosts/alpha/usr/include -c /usr/src/common/lib/libc/
| gmon/mcount.c -o mcount.o.tmp
|
|
Hmm, it does not include -DGPROF... Ok, can you cvs update
/usr/src/common/lib/libc/gmon/mcount.c and try again?
Thanks,
christos
From: Martin Husemann <martin@duskware.de>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@netbsd.org
Subject: Re: port-alpha/32350: alpha libc/libkern fallout
Date: Wed, 21 Dec 2005 16:47:51 +0100
On Wed, Dec 21, 2005 at 10:15:15AM -0500, Christos Zoulas wrote:
> Hmm, it does not include -DGPROF... Ok, can you cvs update
> /usr/src/common/lib/libc/gmon/mcount.c and try again?
Does not compile:
/usr/src/common/lib/libc/gmon/mcount.c:101: warning: no previous prototype for `
mcount'
/usr/src/common/lib/libc/gmon/mcount.c: In function `mcount':
/usr/src/common/lib/libc/gmon/mcount.c:101: warning: `__used__' attribute ignore
d
/usr/src/common/lib/libc/gmon/mcount.c:101: warning: declaration of `mcount' sha
dows a global declaration
/usr/src/common/lib/libc/gmon/mcount.c:101: warning: shadowed declaration is her
e
/usr/src/common/lib/libc/gmon/mcount.c:121: warning: parameter names (without ty
pes) in function declaration
/usr/src/common/lib/libc/gmon/mcount.c:121: error: redeclaration of `mcount'
/usr/src/common/lib/libc/gmon/mcount.c:101: error: `mcount' previously declared
here
/usr/src/common/lib/libc/gmon/mcount.c:121: warning: declaration of `mcount' sha
dows a parameter
/usr/src/common/lib/libc/gmon/mcount.c:101: warning: shadowed declaration is her
e
/usr/src/common/lib/libc/gmon/mcount.c:121: error: parse error before "u_long"
/usr/src/common/lib/libc/gmon/mcount.c:101: error: parm types given both in parm
list and separately
/usr/src/common/lib/libc/gmon/mcount.c:94: error: parameter name omitted
/usr/src/common/lib/libc/gmon/mcount.c:94: error: parameter name omitted
/usr/src/common/lib/libc/gmon/mcount.c:157: error: `frompc' undeclared (first us
e in this function)
/usr/src/common/lib/libc/gmon/mcount.c:157: error: (Each undeclared identifier i
s reported only once
/usr/src/common/lib/libc/gmon/mcount.c:157: error: for each function it appears
in.)
/usr/src/common/lib/libc/gmon/mcount.c:183: error: `selfpc' undeclared (first us
e in this function)
*** [mcount.o] Error code 1
From: christos@zoulas.com (Christos Zoulas)
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@netbsd.org
Subject: Re: port-alpha/32350: alpha libc/libkern fallout
Date: Wed, 21 Dec 2005 11:03:57 -0500
On Dec 21, 4:47pm, martin@duskware.de (Martin Husemann) wrote:
-- Subject: Re: port-alpha/32350: alpha libc/libkern fallout
| On Wed, Dec 21, 2005 at 10:15:15AM -0500, Christos Zoulas wrote:
| > Hmm, it does not include -DGPROF... Ok, can you cvs update
| > /usr/src/common/lib/libc/gmon/mcount.c and try again?
|
Grr, I'll have to cross compile alpha it seems. Or do you have a machine
I can login to?
christos
State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Sat, 01 Feb 2014 18:19:10 +0000
State-Changed-Why:
Long fixed, forgot to close the PR
>Unformatted:
(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.