[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#358876: gcc-4.0: Minor build error within gcc



Package: gcc-4.0
Version: 4.0.3-1
Severity: minor
Tags: patch

Hi!

This seems to have only minor impact on the gcc build, but I happend to
chance upon this minor syntax error within the gcc build system and it
probably should be corrected:

[...]
echo |  ./xgcc -B./ -B/usr/i486-linux-gnu/bin/ -isystem /usr/i486-linux-gnu/incl
ude -isystem /usr/i486-linux-gnu/sys-include -L/home/david/tmp/gcc/gcc-4.0-4.0.3
/build/gcc/../ld -E -dM - | \
          sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
                s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
          sort -u > tmp-macro_list
sed: -e expression #1, char 88: unterminated address regex
[...]

The quick fix is removing the "\\n" sequence in the sed expression:

--- src/gcc/Makefile.in.orig	2006-03-24 22:43:31.000000000 +0100
+++ src/gcc/Makefile.in	2006-03-24 22:43:46.000000000 +0100
@@ -2844,8 +2844,7 @@
 macro_list: s-macro_list; @true
 s-macro_list : $(GCC_PASSES) 
 	echo | $(GCC_FOR_TARGET) -E -dM - | \
-	  sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
-		s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
+	  sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
 	  sort -u > tmp-macro_list
 	$(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
 	$(STAMP) s-macro_list

Regards, David

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-vserver-686
Locale: LANG=C, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)

Versions of packages gcc-4.0 depends on:
ii  binutils          2.16.1cvs20060117-1uc1 The GNU assembler, linker and bina
ii  cpp-4.0           4.0.3-1                The GNU C preprocessor
ii  gcc-4.0-base      4.0.3-1                The GNU Compiler Collection (base 
ii  libc6             2.3.6-4                GNU C Library: Shared libraries an
ii  libgcc1           1:4.0.3-1              GCC support library

Versions of packages gcc-4.0 recommends:
ii  libc6-dev                     2.3.6-4    GNU C Library: Development Librari
ii  libmudflap0-dev               4.0.3-1    GCC mudflap support libraries (dev

-- no debconf information



Reply to: