[Bug bootstrap/45888] tm.texi generation is not portable, rule is broken

anhvofrcaus at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 30 17:20:00 GMT 2010


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

--- Comment #18 from Anh Vo <anhvofrcaus at gmail dot com> 2010-11-30 17:00:31 UTC ---
(In reply to comment #17)
> * anhvofrcaus at gmail dot com wrote on Tue, Nov 30, 2010 at 01:25:49AM CET:
> > It is interesting that this fix worked for Cesar but not for me. In fact, it
> > failed the same way, as reported earlier, on both MinGW and Cygwin.
> Can you show 'cd gcc && make SHELL="/bin/sh -x"' output?
> With Cygwin, are you on a text or binmode mount?

The output below is shown below. It must be in text mode.

voax@GLDLCASC024623 /cygdrive/c/Gcc/Build-4.6.x
$ cd gcc && make SHELL="/bin/sh -x"
+ pwd
+ '[' -f /cygdrive/c/Gcc/Build-4.6.x/gcc/../binutils/ar ']'
+ '[' i686-pc-cygwin = i686-pc-cygwin ']'
+ echo ar
+ '[' -f /cygdrive/c/Gcc/Build-4.6.x/gcc/../binutils/ranlib ']'
+ '[' i686-pc-cygwin = i686-pc-cygwin ']'
+ echo ranlib
+ '[' -f /cygdrive/c/Gcc/Build-4.6.x/gcc/../binutils/strip ']'
+ '[' i686-pc-cygwin = i686-pc-cygwin ']'
+ echo strip
+ echo /usr/local/lib
+ sed -e 's|^/usr/local||' -e 's|/$||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'
+ echo /usr/local
+ sed -e 's|^/usr/local||' -e 's|^/||' -e '/./s|$|/|'
+ echo gcc
+ sed s,y,y,
+ echo gcc
+ sed s,y,y,
+ echo cpp
+ sed s,y,y,
+ echo gcov
+ sed s,y,y,
+ cat ../../gcc-4.6-20101113/gcc/BASE-VER
+ cat ../../gcc-4.6-20101113/gcc/DEV-PHASE
+ cat ../../gcc-4.6-20101113/gcc/DATESTAMP
+ echo c++
+ sed s,y,y,
+ echo g++
+ sed s,y,y,
+ echo c++
+ sed s,y,y,
+ echo g++
+ sed s,y,y,
+ echo gfortran
+ sed s,y,y,
+ echo gfortran
+ sed s,y,y,
+ echo gcj
+ sed s,y,y,
+ echo gcj
+ sed s,y,y,
+ echo gt-coverage.h gt-caller-save.h gt-alias.h gt-bitmap.h gt-cselib.h
gt-cgra
ph.h gt-ipa-prop.h gt-ipa-cp.h gt-ipa-inline.h gt-matrix-reorg.h gt-dbxout.h
gt-
ipa-struct-reorg.h gt-dwarf2out.h gt-dwarf2asm.h gt-tree-vect-generic.h
gt-dojum
p.h gt-emit-rtl.h gt-explow.h gt-expr.h gt-function.h gt-except.h gt-gcse.h
gt-i
ntegrate.h gt-lists.h gt-optabs.h gt-profile.h gt-mcf.h gt-reg-stack.h
gt-cfglay
out.h gt-sdbout.h gt-stor-layout.h gt-stringpool.h gt-tree.h gt-varasm.h
gt-gimp
le.h gt-tree-mudflap.h gt-tree-ssanames.h gt-tree-eh.h gt-tree-ssa-address.h
gt-
tree-cfg.h gt-tree-dfa.h gt-tree-iterator.h gt-gimplify.h
gt-tree-scalar-evoluti
on.h gt-tree-profile.h gt-tree-nested.h gt-varpool.h gt-tree-parloops.h
gt-omp-l
ow.h gt-targhooks.h gt-config/i386/i386.h gt-passes.h gt-cgraphunit.h
gt-tree-ss
a-propagate.h gt-tree-phinodes.h gt-tree-ssa-structalias.h gt-lto-symtab.h
gt-co
nfig/i386/winnt.h gt-ada/gcc-interface/decl.h gt-ada/gcc-interface/trans.h
gt-ad
a/gcc-interface/utils.h gt-ada/gcc-interface/misc.h gt-cp/rtti.h gt-cp/mangle.h
gt-cp/name-lookup.h gt-cp/call.h gt-cp/decl.h gt-cp/decl2.h gt-cp/pt.h
gt-cp/rep
o.h gt-cp/semantics.h gt-cp/tree.h gt-cp/parser.h gt-cp/method.h
gt-cp/typeck2.h
 gt-c-family/c-common.h gt-c-family/c-lex.h gt-c-family/c-pragma.h
gt-cp/class.h
 gt-cp/cp-objcp-common.h gt-cp/cp-lang.h gt-fortran/f95-lang.h
gt-fortran/trans-
decl.h gt-fortran/trans-intrinsic.h gt-fortran/trans-io.h
gt-fortran/trans-stmt.
h gt-fortran/trans-types.h gt-java/builtins.h gt-java/class.h
gt-java/constants.
h gt-java/decl.h gt-java/expr.h gt-java/jcf-parse.h gt-java/lang.h
gt-java/mangl
e.h gt-java/resource.h gt-lto/lto-lang.h gt-lto/lto.h gt-c-parser.h gt-c-decl.h
gt-c-objc-common.h gt-c-family/c-common.h gt-c-family/c-pragma.h
gt-objc/objc-ac
t.h gt-objcp/objcp-decl.h gt-objc/objc-act.h gt-cp/rtti.h gt-cp/mangle.h
gt-cp/n
ame-lookup.h gt-cp/call.h gt-cp/decl.h gt-cp/decl2.h gt-cp/pt.h gt-cp/repo.h
gt-
cp/semantics.h gt-cp/tree.h gt-cp/parser.h gt-cp/method.h gt-cp/typeck2.h
gt-c-f
amily/c-common.h gt-c-family/c-lex.h gt-c-family/c-pragma.h
gt-cp/cp-objcp-commo
n.h gt-c-lang.h gt-c-decl.h gt-c-family/c-common.h gt-c-family/c-cppbuiltin.h
gt
-c-family/c-pragma.h gt-c-objc-common.h gt-c-parser.h
+ sed -e 's|/[^ ]*/|/|g' -e 's|gt-config/|gt-|g'
+ true
[repeating]
+ true
build/genhooks.exe \
                        ../../gcc-4.6-20101113/gcc/doc/tm.texi.in > tmp-tm.texi
+ build/genhooks.exe ../../gcc-4.6-20101113/gcc/doc/tm.texi.in
case `echo X|tr X '\101'` in \
          A) tr -d '\015' < tmp-tm.texi > tmp2-tm.texi ;; \
          *) tr -d '\r' < tmp-tm.texi > tmp2-tm.texi ;; \
        esac
+ case `echo X|tr X '\101'` in
++ echo X
++ tr X '\101'
+ tr -d '\015'
mv tmp2-tm.texi tmp-tm.texi
+ mv tmp2-tm.texi tmp-tm.texi
/bin/sh -x ../../gcc-4.6-20101113/gcc/../move-if-change tmp-tm.texi tm.texi
+ /bin/sh -x ../../gcc-4.6-20101113/gcc/../move-if-change tmp-tm.texi tm.texi
+ usage='../../gcc-4.6-20101113/gcc/../move-if-change: usage:
../../gcc-4.6-2010
1113/gcc/../move-if-change SOURCE DEST'
+ case $# in
+ for arg in '"$1"' '"$2"'
+ case $arg in
+ for arg in '"$1"' '"$2"'
+ case $arg in
+ test -r tm.texi
+ cmp -s tmp-tm.texi tm.texi
+ rm -f tmp-tm.texi
+ cmp -s ../../gcc-4.6-20101113/gcc/doc/tm.texi tm.texi
+ test ../../gcc-4.6-20101113/gcc/doc/tm.texi -nt
../../gcc-4.6-20101113/gcc/doc
/tm.texi.in
+ test ../../gcc-4.6-20101113/gcc/doc/tm.texi -nt
../../gcc-4.6-20101113/gcc/tar
get.def
+ echo

+ echo You should edit ../../gcc-4.6-20101113/gcc/doc/tm.texi.in rather than
../
../gcc-4.6-20101113/gcc/doc/tm.texi .
You should edit ../../gcc-4.6-20101113/gcc/doc/tm.texi.in rather than
../../gcc-
4.6-20101113/gcc/doc/tm.texi .
+ false
make: *** [s-tm-texi] Error 1



More information about the Gcc-bugs mailing list