Subject: pkg/23289: gcc-2.95.3 pkg build fails with -current and gcc3 - simple workaround attatched
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <firstname.lastname@example.org>
Date: 10/28/2003 02:07:07
>Synopsis: gcc-2.95.3 pkg build fails with -current and gcc3 - simple workaround attatched
>Arrival-Date: Tue Oct 28 02:08:00 UTC 2003
>Originator: Harry Waddell
Caravan Electronic Publishing
NetBSD slump 1.6ZD NetBSD 1.6ZD (CARAVANMP) #19: Sat Oct 18 13:05:40 PDT 2003 waddell@slump:/usr/src/sys/arch/i386/compile/CARAVANMP i386
I'm not sure if this is should be treated as a gcc3 bug or a problem with the package. Since the workaround for the package is easy, and fixing
cpp is hard, I've chosen to do the latter.
in the gcc-2.95.3 pkg, the file gcc/ch/loop.c has a large block of
embedded documentation at the top, effectively commented out by an
"#ifdef 0" preprocessor instruction. Within this large block of text,
a commented statement spans a line break, which causes the error
/scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c:321:8: missing terminating " character
/scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c:322:38: missing terminating " character
apply the following unified diff.
--- /scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c-orig 2003-10-27 17:30:25.000000000 -0800
+++ /scratch/chroot/usr/pkgsrc/lang/gcc/work.i386/gcc-2.95.3/gcc/ch/loop.c 2003-10-27 17:35:03.000000000 -0800
@@ -318,8 +318,8 @@
(associated with all iterators).
NOTE: Z.200, section 10.1 says that a block is ...
- "the actions statement list in a do action, including any
- loop counter and while control". This means that an exp-
+ the actions statement list in a do action, including any
+ loop counter and while control. This means that an exp-
ression in a WHILE control can include references to the
loop counters created for the loop''s exclusive use.