public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-28 19:56 Craig Rodrigues
  0 siblings, 0 replies; 14+ messages in thread
From: Craig Rodrigues @ 2002-01-28 19:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
To: Carlo Wood <carlo@alinoe.com>
Cc: Edwin Bates <ebates@Ebix.com>,
   "'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>,
   "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
   "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
   "'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
   "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
   Steve Moore <SMoore@Ebix.com>
Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
Date: Mon, 28 Jan 2002 22:54:29 -0500

 On Tue, Jan 29, 2002 at 04:00:09AM +0100, Carlo Wood wrote:
 > <guru mode on>
 > Maybe I can shine a light on this.
 > One of the reasons that configure fails to substitue
 > is when
 > 1) A substitution contains new-lines
 > 2) The substitution is exactly overlapping
 >    the border at which the substitution command
 >    is cut into multiple sed commands.
 > 
 > Obviously this a coincidence, but in fact only
 > truely safe when none of the substitution contain
 > new-lines.
 > 
 > What the patch below might change is replacing
 > new-lines in ${subdirs} into spaces.
 > </guru mode off>
 
 OK.  Zack Weinberg applied a patch which does a similar
 thing to subdirs:
 http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/gcc/configure.in.diff?r1=text&tr1=1.573&r2=text&tr2=1.574&diff_format=u
 
 and:
 http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/gcc/configure.diff?r1=text&tr1=1.583&r2=text&tr2=1.584&diff_format=u
 
 So maybe that is the right thing to do here?
 
 Edwin, can you try changing your fix to:
 subdirs='$subdirs'
 
 and see if that works?
 
 -- 
 Craig Rodrigues        
 http://www.gis.net/~craigr    
 rodrigc@mediaone.net          


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-10-22 16:07 neroden
  0 siblings, 0 replies; 14+ messages in thread
From: neroden @ 2002-10-22 16:07 UTC (permalink / raw)
  To: ebates, gcc-bugs, gcc-prs, nobody

Synopsis: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.

State-Changed-From-To: feedback->closed
State-Changed-By: neroden
State-Changed-When: Tue Oct 22 16:07:57 2002
State-Changed-Why:
    Appears to work, no feedback forthcoming.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5515


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-02-08 10:36 'Zack Weinberg'
  0 siblings, 0 replies; 14+ messages in thread
From: 'Zack Weinberg' @ 2002-02-08 10:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: 'Zack Weinberg' <zack@codesourcery.com>
To: Edwin Bates <ebates@Ebix.com>
Cc: Craig Rodrigues <rodrigc@mediaone.net>, Carlo Wood <carlo@alinoe.com>,
	"'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
	"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
Date: Fri, 8 Feb 2002 10:21:50 -0800

 On Wed, Feb 06, 2002 at 04:27:34PM -0500, Edwin Bates wrote:
 > Hi Zack,
 > 
 > I'm sorry that I couldn't get this to you before now, but I have the results
 > you asked for.  Again, this is ./gcc/configure.
 
 I'm now thinking this might be a shell bug.  Please try the following
 patch (you'll need to regenerate configure after using it).
 
 zw
 
 ===================================================================
 Index: configure.in
 --- configure.in	2002/01/10 22:21:36	1.576
 +++ configure.in	2002/02/08 18:20:58
 @@ -2057,14 +2057,15 @@ changequote(,)dnl
  	  *) add_this_lang=no ;;
  	  esac
  	  if test x"${add_this_lang}" = xyes; then
 +		subdir=`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`
  		case $lang in
  		    ${srcdir}/ada/config-lang.in)
  			if test x$have_gnat = xyes ; then
 -				subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
 +				subdirs="$subdirs $subdir"
  			fi
  			;;
  		    *)
 -			subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
 +			subdirs="$subdirs $subdir"
  			;;
  		esac
  	  fi


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp  cannot be parsed.
@ 2002-02-06 13:26 Edwin Bates
  0 siblings, 0 replies; 14+ messages in thread
From: Edwin Bates @ 2002-02-06 13:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Edwin Bates <ebates@Ebix.com>
To: 'Zack Weinberg' <zack@codesourcery.com>, Edwin Bates <ebates@Ebix.com>
Cc: Craig Rodrigues <rodrigc@mediaone.net>, Carlo Wood <carlo@alinoe.com>, 
	"'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>, "'gcc-bugs@gcc.gnu.org'"
	 <gcc-bugs@gcc.gnu.org>, "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>, 
	"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>, "'gcc-gnats@gcc.gnu.org'"
	 <gcc-gnats@gcc.gnu.org>
Subject: RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp 
	cannot be parsed.
Date: Wed, 6 Feb 2002 16:27:34 -0500 

 Hi Zack,
 
 I'm sorry that I couldn't get this to you before now, but I have the results
 you asked for.  Again, this is ./gcc/configure.
 
 ------------------ Using AIX sed --------------------
 checking assembler dwarf2 debug_line support... no
 subdirs=
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./cp/config-lang.in 
 lang_alias=c++
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./cp/config-lang.in 
 this_lang_libs=${libstdcxx_version}
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./cp/config-lang.in 
 build_by_default=
 + test xc++ = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./cp/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
 
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./f/config-lang.in 
 lang_alias=f77
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./f/config-lang.in 
 this_lang_libs=target-libf2c
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./f/config-lang.in 
 build_by_default=
 + test xf77 = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./f/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
  f
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./java/config-lang.in 
 lang_alias=java
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./java/config-lang.in 
 this_lang_libs=${libgcj_saved}
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./java/config-lang.in 
 build_by_default=
 + test xjava = x 
 add_this_lang=yes
 + test xyes = xyes 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 + echo ./java/config-lang.in 
 subdirs= cp
  f java
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./objc/config-lang.in 
 lang_alias=objc
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./objc/config-lang.in 
 this_lang_libs=target-libobjc
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./objc/config-lang.in 
 build_by_default=
 + test xobjc = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./objc/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
  f java objc
 + set +x 
 Using ggc-page for garbage collection.
 checking whether to enable maintainer-specific portions of Makefiles... no
 Links are now set up to build a native compiler for powerpc-ibm-aix4.3.3.0
 creating ./config.status
 creating Makefile
 sed: Function s%@subdirs@% cp cannot be parsed.
 creating intl/Makefile
 sed: Function s%@subdirs@% cp cannot be parsed.
 creating po/Makefile.in
 sed: Function s%@subdirs@% cp cannot be parsed.
 creating fixinc/Makefile
 sed: Function s%@subdirs@% cp cannot be parsed.
 creating gccbug
 sed: Function s%@subdirs@% cp cannot be parsed.
 creating mklibgcc
 sed: Function s%@subdirs@% cp cannot be parsed.
 creating auto-host.h
 auto-host.h is unchanged
 linking ./intl/libgettext.h to intl/libintl.h
 creating libintl.h
 
 ------------------ Using GNU sed ----------------------
 checking assembler dwarf2 debug_line support... no
 subdirs=
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./cp/config-lang.in 
 lang_alias=c++
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./cp/config-lang.in 
 this_lang_libs=${libstdcxx_version}
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./cp/config-lang.in 
 build_by_default=
 + test xc++ = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./cp/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
 
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./f/config-lang.in 
 lang_alias=f77
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./f/config-lang.in 
 this_lang_libs=target-libf2c
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./f/config-lang.in 
 build_by_default=
 + test xf77 = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./f/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
  f
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./java/config-lang.in 
 lang_alias=java
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./java/config-lang.in 
 this_lang_libs=${libgcj_saved}
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./java/config-lang.in 
 build_by_default=
 + test xjava = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./java/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
  f java
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./objc/config-lang.in 
 lang_alias=objc
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./objc/config-lang.in 
 this_lang_libs=target-libobjc
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./objc/config-lang.in 
 build_by_default=
 + test xobjc = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./objc/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
  f java objc
 + set +x 
 Using ggc-page for garbage collection.
 checking whether to enable maintainer-specific portions of Makefiles... no
 Links are now set up to build a native compiler for powerpc-ibm-aix4.3.3.0
 creating ./config.status
 creating Makefile
 sed: file conftest.s2 line 20: Unterminated `s' command
 creating intl/Makefile
 sed: file conftest.s2 line 20: Unterminated `s' command
 creating po/Makefile.in
 sed: file conftest.s2 line 20: Unterminated `s' command
 creating fixinc/Makefile
 sed: file conftest.s2 line 20: Unterminated `s' command
 creating gccbug
 sed: file conftest.s2 line 20: Unterminated `s' command
 creating mklibgcc
 sed: file conftest.s2 line 20: Unterminated `s' command
 creating auto-host.h
 auto-host.h is unchanged
 linking ./intl/libgettext.h to intl/libintl.h
 creating libintl.h
 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-30 11:46 'Zack Weinberg'
  0 siblings, 0 replies; 14+ messages in thread
From: 'Zack Weinberg' @ 2002-01-30 11:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: 'Zack Weinberg' <zack@codesourcery.com>
To: Edwin Bates <ebates@Ebix.com>
Cc: Craig Rodrigues <rodrigc@mediaone.net>, Carlo Wood <carlo@alinoe.com>,
	"'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>,
	"'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
	"'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
	"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
	"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
	Steve Moore <SMoore@Ebix.com>
Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
Date: Wed, 30 Jan 2002 11:36:23 -0800

 On Tue, Jan 29, 2002 at 02:42:14PM -0500, Edwin Bates wrote:
 > That WAS GNU sed.  Same result (different error message) from AIX
 > sed.
 
 Which sed was this?
 
 > > + echo ./cp/config-lang.in 
 > > + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 > > subdirs= cp
 > > 
 
 Whichever one it was, please try again with the other one and report
 the same chunk of output.
 
 zw


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp  cannot be parsed.
@ 2002-01-29 11:46 Edwin Bates
  0 siblings, 0 replies; 14+ messages in thread
From: Edwin Bates @ 2002-01-29 11:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Edwin Bates <ebates@Ebix.com>
To: 'Zack Weinberg' <zack@codesourcery.com>, Edwin Bates <ebates@Ebix.com>
Cc: Craig Rodrigues <rodrigc@mediaone.net>, Carlo Wood <carlo@alinoe.com>, 
	"'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>, "'gcc-bugs@gcc.gnu.org'"
	 <gcc-bugs@gcc.gnu.org>, "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>, 
	"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>, "'gcc-gnats@gcc.gnu.org'"
	 <gcc-gnats@gcc.gnu.org>, Steve Moore <SMoore@Ebix.com>
Subject: RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp 
	cannot be parsed.
Date: Tue, 29 Jan 2002 14:42:14 -0500

 That WAS GNU sed.  Same result (different error message) from AIX sed.  (I
 tried that first to make sure it wasn't something I could bypass without a
 PR.)
 
 BTW, sorry, Zack, I erroneously attributed your analysis to Craig.
 
 -- Ed
 
  -----Original Message-----
 From: 	'Zack Weinberg' [mailto:zack@codesourcery.com] 
 Sent:	Tuesday, January 29, 2002 11:05 AM
 To:	Edwin Bates
 Cc:	Craig Rodrigues; Carlo Wood; 'rodrigc@gcc.gnu.org';
 'gcc-bugs@gcc.gnu.org'; 'gcc-prs@gcc.gnu.org'; 'nobody@gcc.gnu.org';
 'gcc-gnats@gcc.gnu.org'; Steve Moore
 Subject:	Re: other/5515: ./configure fails: sed: Function
 s%@subdirs@% cp cannot be parsed.
 
 On Tue, Jan 29, 2002 at 10:02:58AM -0500, Edwin Bates wrote:
 > Thank you all for your input.  Carlo was correct: it's inserting a
 newline,
 > but only after the first directory (cp), and, as Craig said, it shouldn't
 be
 > doing it.  (What are you doing, AIX?)
 
 Hmmm.  Can you get a copy of GNU sed and repeat the test with it installed
 ahead of AIX sed in your PATH, please?
 
 > + echo ./cp/config-lang.in 
 > + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 > subdirs= cp
 > 
 
 *boggle*
 
 zw


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-29 11:06 'Zack Weinberg'
  0 siblings, 0 replies; 14+ messages in thread
From: 'Zack Weinberg' @ 2002-01-29 11:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: 'Zack Weinberg' <zack@codesourcery.com>
To: Edwin Bates <ebates@Ebix.com>
Cc: Craig Rodrigues <rodrigc@mediaone.net>, Carlo Wood <carlo@alinoe.com>,
	"'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>,
	"'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
	"'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
	"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
	"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
	Steve Moore <SMoore@Ebix.com>
Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
Date: Tue, 29 Jan 2002 11:04:54 -0800

 On Tue, Jan 29, 2002 at 10:02:58AM -0500, Edwin Bates wrote:
 > Thank you all for your input.  Carlo was correct: it's inserting a newline,
 > but only after the first directory (cp), and, as Craig said, it shouldn't be
 > doing it.  (What are you doing, AIX?)
 
 Hmmm.  Can you get a copy of GNU sed and repeat the test with it installed
 ahead of AIX sed in your PATH, please?
 
 > + echo ./cp/config-lang.in 
 > + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 > subdirs= cp
 > 
 
 *boggle*
 
 zw


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp  cannot be parsed.
@ 2002-01-29  7:06 Edwin Bates
  0 siblings, 0 replies; 14+ messages in thread
From: Edwin Bates @ 2002-01-29  7:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Edwin Bates <ebates@Ebix.com>
To: 'Zack Weinberg' <zack@codesourcery.com>, Craig Rodrigues
	 <rodrigc@mediaone.net>
Cc: Carlo Wood <carlo@alinoe.com>, Edwin Bates <ebates@Ebix.com>, 
	"'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>, "'gcc-bugs@gcc.gnu.org'"
	 <gcc-bugs@gcc.gnu.org>, "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>, 
	"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>, "'gcc-gnats@gcc.gnu.org'"
	 <gcc-gnats@gcc.gnu.org>, Steve Moore <SMoore@Ebix.com>
Subject: RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp 
	cannot be parsed.
Date: Tue, 29 Jan 2002 10:02:58 -0500

 Thank you all for your input.  Carlo was correct: it's inserting a newline,
 but only after the first directory (cp), and, as Craig said, it shouldn't be
 doing it.  (What are you doing, AIX?)  Here are the results of the test:
 
 ------------------------ Begin test results ----------------------------
 checking assembler eh_frame optimization... no
 checking assembler dwarf2 debug_line support... no
 subdirs=
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./cp/config-lang.in 
 lang_alias=c++
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./cp/config-lang.in 
 this_lang_libs=${libstdcxx_version}
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./cp/config-lang.in 
 build_by_default=
 + test xc++ = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./cp/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
 
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./f/config-lang.in 
 lang_alias=f77
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./f/config-lang.in 
 this_lang_libs=target-libf2c
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./f/config-lang.in 
 build_by_default=
 + test xf77 = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./f/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
  f
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./java/config-lang.in 
 lang_alias=java
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./java/config-lang.in 
 this_lang_libs=${libgcj_saved}
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./java/config-lang.in 
 build_by_default=
 + test xjava = x 
 add_this_lang=yes
 + test xyes = xyes 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 + echo ./java/config-lang.in 
 subdirs= cp
  f java
 + sed -n -e s,^language=['"]\(.*\)["'].*$,\1,p -e s,^language=\([^
 ]*\).*$,\1,p ./objc/config-lang.in 
 lang_alias=objc
 + sed -n -e s,^target_libs=['"]\(.*\)["'].*$,\1,p -e s,^target_libs=\([^
 ]*\).*$,\1,p ./objc/config-lang.in 
 this_lang_libs=target-libobjc
 + sed -n -e s,^build_by_default=['"]\(.*\)["'].*$,\1,p -e
 s,^build_by_default=\([^ 	]*\).*$,\1,p ./objc/config-lang.in 
 build_by_default=
 + test xobjc = x 
 add_this_lang=yes
 + test xyes = xyes 
 + echo ./objc/config-lang.in 
 + sed -e s,^.*/\([^/]*\)/config-lang.in$,\1, 
 subdirs= cp
  f java objc
 + set +x
 ------------------------ End test results ----------------------------
 
 Yes, it appears to be an AIX anomaly.
 
 -- Ed
 
  -----Original Message-----
 From: 	Zack Weinberg [mailto:zack@codesourcery.com] 
 Sent:	Monday, January 28, 2002 8:09 PM
 To:	Craig Rodrigues
 Cc:	Carlo Wood; Edwin Bates; 'rodrigc@gcc.gnu.org';
 'gcc-bugs@gcc.gnu.org'; 'gcc-prs@gcc.gnu.org'; 'nobody@gcc.gnu.org';
 'gcc-gnats@gcc.gnu.org'; Steve Moore
 Subject:	Re: other/5515: ./configure fails: sed: Function
 s%@subdirs@% cp cannot be parsed.
 
 On Mon, Jan 28, 2002 at 10:54:29PM -0500, Craig Rodrigues wrote:
 > 
 > OK.  Zack Weinberg applied a patch which does a similar
 > thing to subdirs:
 
 That patch has nothing to do with this problem.
 
 > Edwin, can you try changing your fix to:
 > subdirs='$subdirs'
 
 The line that does that, from my patch, is executed in an unusual
 context; it's dead wrong anywhere else.
 
 What I want to know is how we got newlines in $subdirs in the first
 place.  That should be impossible.  Edwin, would you mind applying
 this patch to configure.in, regenerating configure, running it, and
 reporting the output (just the lines beginning with a plus sign should
 be enough)?
 
 zw
 
 ===================================================================
 Index: configure.in
 --- configure.in	2002/01/10 22:21:36	1.576
 +++ configure.in	2002/01/29 04:07:52
 @@ -2032,6 +2032,7 @@ changequote([,])dnl
     esac
  done
  
 +set -x
  subdirs=
  for lang in ${srcdir}/*/config-lang.in ..
  do
 @@ -2072,6 +2073,7 @@ changequote(,)dnl
  changequote([,])dnl
  	esac
  done
 +set +x
  
  # Make gthr-default.h if we have a thread file.
  gthread_flags=
 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-28 20:16 Zack Weinberg
  0 siblings, 0 replies; 14+ messages in thread
From: Zack Weinberg @ 2002-01-28 20:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Zack Weinberg <zack@codesourcery.com>
To: Craig Rodrigues <rodrigc@mediaone.net>
Cc: Carlo Wood <carlo@alinoe.com>, Edwin Bates <ebates@Ebix.com>,
	"'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>,
	"'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
	"'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
	"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
	"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
	Steve Moore <SMoore@Ebix.com>
Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
Date: Mon, 28 Jan 2002 20:08:38 -0800

 On Mon, Jan 28, 2002 at 10:54:29PM -0500, Craig Rodrigues wrote:
 > 
 > OK.  Zack Weinberg applied a patch which does a similar
 > thing to subdirs:
 
 That patch has nothing to do with this problem.
 
 > Edwin, can you try changing your fix to:
 > subdirs='$subdirs'
 
 The line that does that, from my patch, is executed in an unusual
 context; it's dead wrong anywhere else.
 
 What I want to know is how we got newlines in $subdirs in the first
 place.  That should be impossible.  Edwin, would you mind applying
 this patch to configure.in, regenerating configure, running it, and
 reporting the output (just the lines beginning with a plus sign should
 be enough)?
 
 zw
 
 ===================================================================
 Index: configure.in
 --- configure.in	2002/01/10 22:21:36	1.576
 +++ configure.in	2002/01/29 04:07:52
 @@ -2032,6 +2032,7 @@ changequote([,])dnl
     esac
  done
  
 +set -x
  subdirs=
  for lang in ${srcdir}/*/config-lang.in ..
  do
 @@ -2072,6 +2073,7 @@ changequote(,)dnl
  changequote([,])dnl
  	esac
  done
 +set +x
  
  # Make gthr-default.h if we have a thread file.
  gthread_flags=
 
 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-28 19:06 Carlo Wood
  0 siblings, 0 replies; 14+ messages in thread
From: Carlo Wood @ 2002-01-28 19:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Carlo Wood <carlo@alinoe.com>
To: Craig Rodrigues <rodrigc@mediaone.net>
Cc: Edwin Bates <ebates@Ebix.com>,
  "'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>,
  "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
  "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
  "'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
  "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
  Steve Moore <SMoore@Ebix.com>
Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
Date: Tue, 29 Jan 2002 04:00:09 +0100

 <guru mode on>
 Maybe I can shine a light on this.
 One of the reasons that configure fails to substitue
 is when
 1) A substitution contains new-lines
 2) The substitution is exactly overlapping
    the border at which the substitution command
    is cut into multiple sed commands.
 
 Obviously this a coincidence, but in fact only
 truely safe when none of the substitution contain
 new-lines.
 
 What the patch below might change is replacing
 new-lines in ${subdirs} into spaces.
 </guru mode off>
 
 On Mon, Jan 28, 2002 at 09:26:14PM -0500, Craig Rodrigues wrote:
 > On Mon, Jan 28, 2002 at 07:50:51PM -0500, Edwin Bates wrote:
 > > 
 > > Fix for file gcc/configure:
 > > ---------------------- Begin diff -c -----------------------
 > > *** configure.orig      Mon Jan 28 19:26:04 2002 
 > > --- configure   Mon Jan 28 19:25:24 2002 
 > > *************** 
 > > *** 7353,7358 **** 
 > > --- 7353,7359 ---- 
 > > 
 > >   trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^
 > > ]*//g"` conftest*; exit 1' 1 2 15 
 > >   EOF 
 > > + subdirs=`echo ${subdirs}` 
 > >   cat >> $CONFIG_STATUS <<EOF 
 > > 
 > >   # Protect against being on the right side of a sed subst in config.status.
 > 
 > 
 > Glad you figured it out, but I don't understand why your
 > patch fixes things....
 > Does the problem go away if you either:
 > (1) Set CONFIG_SHELL to /bin/ksh?
 > (2) Use GNU sed instead of AIX's sed?
 
 This has nothing to do with sed, but with how
 autoconf works.
 
 > 
 > Thanks.
 > -- 
 > Craig Rodrigues        
 > http://www.gis.net/~craigr    
 > rodrigc@mediaone.net          
 
 -- 
 Carlo Wood <carlo@alinoe.com>


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-28 18:26 Craig Rodrigues
  0 siblings, 0 replies; 14+ messages in thread
From: Craig Rodrigues @ 2002-01-28 18:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
To: Edwin Bates <ebates@Ebix.com>
Cc: "'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>,
   "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
   "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
   "'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
   "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
   Steve Moore <SMoore@Ebix.com>
Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
Date: Mon, 28 Jan 2002 21:26:14 -0500

 On Mon, Jan 28, 2002 at 07:50:51PM -0500, Edwin Bates wrote:
 > 
 > Fix for file gcc/configure:
 > ---------------------- Begin diff -c -----------------------
 > *** configure.orig      Mon Jan 28 19:26:04 2002 
 > --- configure   Mon Jan 28 19:25:24 2002 
 > *************** 
 > *** 7353,7358 **** 
 > --- 7353,7359 ---- 
 > 
 >   trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^
 > ]*//g"` conftest*; exit 1' 1 2 15 
 >   EOF 
 > + subdirs=`echo ${subdirs}` 
 >   cat >> $CONFIG_STATUS <<EOF 
 > 
 >   # Protect against being on the right side of a sed subst in config.status.
 
 
 Glad you figured it out, but I don't understand why your
 patch fixes things....
 Does the problem go away if you either:
 (1) Set CONFIG_SHELL to /bin/ksh?
 (2) Use GNU sed instead of AIX's sed?
 
 Thanks.
 -- 
 Craig Rodrigues        
 http://www.gis.net/~craigr    
 rodrigc@mediaone.net          


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp  cannot be parsed.
@ 2002-01-28 16:56 Edwin Bates
  0 siblings, 0 replies; 14+ messages in thread
From: Edwin Bates @ 2002-01-28 16:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5515; it has been noted by GNATS.

From: Edwin Bates <ebates@Ebix.com>
To: "'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>, Edwin Bates
	 <ebates@Ebix.com>, "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>, 
	"'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>, "'nobody@gcc.gnu.org'"
	 <nobody@gcc.gnu.org>, "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Cc: Steve Moore <SMoore@Ebix.com>
Subject: RE: other/5515: ./configure fails: sed: Function s%@subdirs@% cp 
	cannot be parsed.
Date: Mon, 28 Jan 2002 19:50:51 -0500

 Thank you for the quick response.
 
 I used the back button on the browser after my first attempt at submission,
 and the rest of the data was still there.  Forgot to check for the
 attachment.
 
 As for the AIX specifics, yes, I made sure I was compliant.
 
 Yes, that report does appear to be the same symptoms.  I tracked it down and
 used the same solution.  I have a fix for gcc-3.0.3 to work with AIX,
 included below.
 
 Fix for file gcc/configure:
 ---------------------- Begin diff -c -----------------------
 *** configure.orig      Mon Jan 28 19:26:04 2002 
 --- configure   Mon Jan 28 19:25:24 2002 
 *************** 
 *** 7353,7358 **** 
 --- 7353,7359 ---- 
 
   trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^
 ]*//g"` conftest*; exit 1' 1 2 15 
   EOF 
 + subdirs=`echo ${subdirs}` 
   cat >> $CONFIG_STATUS <<EOF 
 
   # Protect against being on the right side of a sed subst in config.status.
 ---------------------- End diff -c -----------------------
 
 Thanks again for your expeditious help!
 
 -- Ed
 
  -----Original Message-----
 From: 	rodrigc@gcc.gnu.org [mailto:rodrigc@gcc.gnu.org] 
 Sent:	Monday, January 28, 2002 10:38 AM
 To:	ebates@ebix.com; gcc-bugs@gcc.gnu.org; gcc-prs@gcc.gnu.org;
 nobody@gcc.gnu.org
 Subject:	Re: other/5515: ./configure fails: sed: Function
 s%@subdirs@% cp cannot be parsed.
 
 Synopsis: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
 
 State-Changed-From-To: open->feedback
 State-Changed-By: rodrigc
 State-Changed-When: Mon Jan 28 10:37:37 2002
 State-Changed-Why:
     The output of your configure command did not get attached
     to this PR.  Can you submit your config.log and config.cache
     files?
     
     This report looks similar to:
     http://www.geocrawler.com/archives/3/356/1996/3/0/1959073/
     
     Did you follow all the steps in the AIX specific
     release notes?
     http://gcc.gnu.org/install/specific.html#*-ibm-aix*
     
     
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=5515


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-28 10:37 rodrigc
  0 siblings, 0 replies; 14+ messages in thread
From: rodrigc @ 2002-01-28 10:37 UTC (permalink / raw)
  To: ebates, gcc-bugs, gcc-prs, nobody

Synopsis: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.

State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Mon Jan 28 10:37:37 2002
State-Changed-Why:
    The output of your configure command did not get attached
    to this PR.  Can you submit your config.log and config.cache
    files?
    
    This report looks similar to:
    http://www.geocrawler.com/archives/3/356/1996/3/0/1959073/
    
    Did you follow all the steps in the AIX specific
    release notes?
    http://gcc.gnu.org/install/specific.html#*-ibm-aix*
    
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5515


^ permalink raw reply	[flat|nested] 14+ messages in thread

* other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
@ 2002-01-28  9:16 ebates
  0 siblings, 0 replies; 14+ messages in thread
From: ebates @ 2002-01-28  9:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5515
>Category:       other
>Synopsis:       ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 28 09:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     ebates@ebix.com
>Release:        gcc-3.0.2, gcc-3.0.3
>Organization:
>Environment:
powerpc-ibm-aix4.3.3.0
>Description:
configure finishes without reporting an error, but does not create the target files.  Review of the output reveals sed error:

    sed: Function s%@subdirs@% cp cannot be parsed.

Output of "./configure --prefix=/usr/gnu" is attatched.
>How-To-Repeat:
./configure --prefix=/usr/gnu
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-10-22 23:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28 19:56 other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed Craig Rodrigues
  -- strict thread matches above, loose matches on Subject: below --
2002-10-22 16:07 neroden
2002-02-08 10:36 'Zack Weinberg'
2002-02-06 13:26 Edwin Bates
2002-01-30 11:46 'Zack Weinberg'
2002-01-29 11:46 Edwin Bates
2002-01-29 11:06 'Zack Weinberg'
2002-01-29  7:06 Edwin Bates
2002-01-28 20:16 Zack Weinberg
2002-01-28 19:06 Carlo Wood
2002-01-28 18:26 Craig Rodrigues
2002-01-28 16:56 Edwin Bates
2002-01-28 10:37 rodrigc
2002-01-28  9:16 ebates

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).