Subject: pkg/29193: gdb doesn't build on powerpc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jacereda@users.sourceforge.net>
List: pkgsrc-bugs
Date: 02/02/2005 03:00:00
>Number: 29193
>Category: pkg
>Synopsis: gdb doesn't build on powerpc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 02 03:00:00 +0000 2005
>Originator: Jorge Acereda
>Release: Gentoo Linux with pkgsrc
>Organization:
>Environment:
Linux odw 2.6.10-pegasos-r2 #8 Wed Feb 2 01:05:46 CET 2005 ppc 7447/7457, altivec supported CHRP Pegasos2 GNU/Linux
>Description:
Building from a Linux machine with gdb 3.4.1 installed fails.
>How-To-Repeat:
$ bmake install
...
gcc -c -O2 -mcpu=7450 -maltivec -mabi=altivec -pipe -I/usr/include -DDEFAULT_INLINE=PSIM_INLINE_LOCALS -DWITH_HOST_BYTE_ORDER=BIG_ENDIAN -DWITH_SMP=5 -DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO -I. -I. -I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb -I./../../gdb/config -I./../../mmalloc -I../../intl -I./../../intl support.c
./ppc-instructions: In function `convert_to_integer':
./ppc-instructions:1221: error: label at end of compound statement
make[2]: *** [support.o] Error 1
make[2]: Leaving directory `/usr/pkg/tmp/devel/gdb/work/gdb-5.3/sim/ppc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/pkg/tmp/devel/gdb/work/gdb-5.3/sim'
make: *** [all-sim] Error 2
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/devel/gdb
>Fix:
$NetBSD$
--- sim/ppc/ppc-instructions.orig 2005-02-02 03:57:15.351977096 +0100
+++ sim/ppc/ppc-instructions
@@ -1217,8 +1217,8 @@ void::function::convert_to_integer:cpu *
/* FPSCR[fprf] = undefined */
}
/**/
- LABEL(Done):
-
+ LABEL(Done):
+ (void)0; /* Dirty workaround to solve problems under gcc 3.4.1 */
# extract out raw fields of a FP number
int::function::sign:unsigned64 FRS