NetBSD Problem Report #8599
Received: (qmail 19712 invoked from network); 10 Oct 1999 04:01:40 -0000
Message-Id: <199910100401.AAA07203@eniwetok.ihack.net>
Date: Sun, 10 Oct 1999 00:01:36 -0400 (EDT)
From: "Charles M. Hannum" <root@ihack.net>
Reply-To: root@ihack.net
To: gnats-bugs@gnats.netbsd.org
Subject: -ggdb loses on PowerPC
X-Send-Pr-Version: 3.95
>Number: 8599
>Category: toolchain
>Synopsis: -ggdb loses on PowerPC
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 09 21:03:00 +0000 1999
>Closed-Date: Thu Mar 07 19:39:10 +0000 2002
>Last-Modified: Thu Mar 07 19:39:10 +0000 2002
>Originator: Charles M. Hannum
>Release: -current
>Organization:
Internetwork Hacker
>Environment:
macppc
>Description:
`cc -ggdb' usually fails on PowerPC systems. This causes
pkgsrc/mbone/nte to not build.
>How-To-Repeat:
$ cat >foo.c
int foo;
^D
$ cc -c -ggdb foo.c
ggdb.s.powerpc: Assembler messages:
ggdb.s.powerpc:70: Error: Bad expression
ggdb.s.powerpc:70: Error: Rest of line ignored. First ignored character is `f'.
$
This apparently has something to do with the way GCC generates
references to items in the `short' data and bss sections
(.sdata and .sbss). Our assembler does not know the syntax it
uses.
>Fix:
The correct solution would be to fix the assembler.
Alternatively, one could change SDATA_DEFAULT_SIZE to 0 for
now, causing .sdata and .sbss to not be used. This would have
a performance impact on compiled executables, though.
As a hack just for pkgsrc/mbone/nte, one could simply modify
it to not build with `-ggdb'. It's rather pointless given
that the executable is usually installed stripped anyway.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->toolchain-manager
Responsible-Changed-By: gnats
Responsible-Changed-When: Tue Feb 12 00:53:16 PST 2002
Responsible-Changed-Why:
There is now a "toolchain-manager" which is the proper default role
account for handling problem reports in the toolchain category.
State-Changed-From-To: open->closed
State-Changed-By: jdolecek
State-Changed-When: Thu Mar 7 11:37:42 PST 2002
State-Changed-Why:
Works fine on -current 2002/3/7 with new toolchain (tested by Nathan
on macppc for me).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.