------- Comment #10 from thomas dot jourdan at gmail dot com  2009-01-17 15:23 
-------
Hi

My mistake was to export a function in the bash to fool a shell script. But
then I configured GCC without removing it.

I did :

function install() { ginstall "$@"; }
export -f install

Then I configured GCC, which led to the problem. Thanks to Ralf :

./config.status -d
config.status: creating as
sed: file ./confstatg0aq6N/subs-5.sed line 7: unterminated `s' command
config.status: creating collect-ld
sed: file ./confstatg0aq6N/subs-5.sed line 7: unterminated `s' command
config.status: creating nm
sed: file ./confstatg0aq6N/subs-5.sed line 7: unterminated `s' command
config.status: creating Makefile
sed: file ./confstatg0aq6N/subs-5.sed line 7: unterminated `s' command
config.status: creating gccbug
sed: file ./confstatg0aq6N/subs-5.sed line 7: unterminated `s' command
config.status: creating libada-mk
sed: file ./confstatg0aq6N/subs-5.sed line 7: unterminated `s' command
config.status: creating ada/Makefile
sed: file ./confstatg0aq6N/subs-5.sed line 7: unterminated `s' command
config.status: creating auto-host.h
config.status: auto-host.h is unchanged
config.status: executing default commands

Then we can see the output file :

cat confstatg0aq6N/subs-5.sed 
:t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@host_xm_file_list@, auto-host.h $(srcdir)/../include/ansidecl.h,;t t
s,@host_xm_include_list@, auto-host.h ansidecl.h,;t t
s,@host_xm_defines@,,;t t
s,@out_host_hook_obj@,host-solaris.o,;t t
s,@install@,() {  ginstall "$@"
},;t t
s,@lang_opt_files@,
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/ada/lang.opt
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/fortran/lang.opt
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/java/lang.opt
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/treelang/lang.opt,;t
t
s,@lang_specs_files@,,;t t
s,@lang_tree_files@,
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/ada/ada-tree.def
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/cp/cp-tree.def
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/java/java-tree.def
/export/home/thomas/workspace/cdk/i686/targets/src/gcc-4.3.2/gcc/objc/objc-tree.def,;t
t
s,@local_prefix@,/export/home/thomas/x-tools/i686-nptl-linux-gnu/i686-nptl-linux-gnu/sys-root,;t
t
s,@md_file@,i386/i386.md,;t t
s,@objc_boehm_gc@,,;t t
s,@out_file@,i386/i386.c,;t t
s,@out_object_file@,i386.o,;t t
s,@thread_file@,single,;t t
s,@tm_file_list@,options.h $(srcdir)/config/i386/i386.h
$(srcdir)/config/i386/unix.h $(srcdir)/config/i386/att.h
$(srcdir)/config/dbxelf.h $(srcdir)/config/elfos.h $(srcdir)/config/svr4.h
$(srcdir)/config/linux.h $(srcdir)/config/i386/linux.h $(srcdir)/defaults.h,;t
t
s,@tm_include_list@,options.h config/i386/i386.h config/i386/unix.h
config/i386/att.h config/dbxelf.h config/elfos.h config/svr4.h config/linux.h
config/i386/linux.h defaults.h,;t t
s,@tm_defines@, UCLIBC_DEFAULT=0,;t t
s,@tm_p_file_list@, $(srcdir)/config/i386/i386-protos.h tm-preds.h,;t t
s,@tm_p_include_list@, config/i386/i386-protos.h tm-preds.h,;t t
s,@xm_file_list@, auto-host.h $(srcdir)/../include/ansidecl.h,;t t
s,@xm_include_list@, auto-host.h ansidecl.h,;t t
s,@xm_defines@,,;t t
s,@c_target_objs@,,;t t
s,@cxx_target_objs@,,;t t
s,@target_cpu_default@,,;t t
s,@GMPLIBS@,-L/export/home/thomas/x-tools/i686-nptl-linux-gnu/lib
-L/export/home/thomas/x-tools/i686-nptl-linux-gnu/lib -lmpfr -lgmp,;t t
s,@GMPINC@,-I/export/home/thomas/x-tools/i686-nptl-linux-gnu/include
-I/export/home/thomas/x-tools/i686-nptl-linux-gnu/include,;t t
s,@LIBOBJS@,,;t t
s,@LTLIBOBJS@,,;t t
/@language_hooks@/r Make-hooks
s,@language_hooks@,,;t t

And as you can see, you find my install function replaced. This makes sed
unhappy.

Regards,
Thomas


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38805

Reply via email to