--program-transform-name option doesn't do anything

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

 



I'm on a  FC 3 box using GCC version 3.4.4 20050721 (Red Hat 3.4.4-2). 
I want to have GCC 2.95.3 at the same time  and don't want to disturb 
the current version of GCC.   I compiled GCC with the following 
instruction 

../gcc-2.95.3/configure --prefix=/usr/local  \ 
--enable-shared \--enable-languages \ 
--enable-languages='c,c++,f77' \ 
--enable-threads=posix \ 
--enable-cpp \ 
--enable-version-specific-runtime-libs \ 
--host=i686-redhat-linux \ 
--build=i686-redhat-linux \ 
--with-system-zlib \ 
--program-transform-name="s/\\\(.*\\\)/1-2.95.3/" 


make CFLAGS='-O' LIBCFLAGS='-g -O2'  \ 
BOOT_LDFLAGS=-static  \ 
LIBCXXFLAGS='-g -O2 -fno-implicit-templates'  \ 
bootstrap 


It won't find the error until I have compiled and installed the source 
and notices the binary  names have not changed. The 
'--program-transform-name' option doesn't do anything. 


And I also tried --program-suffix=-2.95.3 option, it also didn't work. 

If I changed the --program-transform-name to 
"s/\\\\(.*\\\\)/\\\\1-2.95.3/",  I got following error 


make[2]: Leaving directory `/home/jerry/gcc-2.95.3_obj/gcc' 
/bin/sh: -c: line 0: syntax error near unexpected token `(' 
/bin/sh: -c: line 0: `dir=`echo configure-target-libio | sed -e 
's/configure-tar get-//'`;  if [ ! -d i686-redhat-linux ]; then  true; 
elif [ -f i686-redhat-lin ux/${dir}/Makefile ] ; then  true;  elif echo 
" libiberty libio libstdc++ libg++  libf2c libchill libjava zlib 
boehm-gc qthreads libobjc examples groff gperf " | grep " ${dir} " 


>/dev/null 2>&1; then  if [ -d ../gcc-2.95.3/${dir} ]; then  [ -d i686-redhat-linux/${dir} ] || mkdir i686-redhat-linux/${dir}; r=`pwd`; exp ort r;  s=`cd ../gcc-2.95.3; pwd`; export s;  if [ x"$LD_LIBRARY_PATH" != x ]; t hen LD_LIBRARY_PATH=$r/bfd:$r/opcodes:$LD_LIBRARY_PATH; else LD_LIBRARY_PATH=$r/ bfd:$r/opcodes; fi; export LD_LIBRARY_PATH;  AR="ar"; export AR;  AS="as"; expor t AS;  CC="/home/jerry/gcc-2.95.3_obj/gcc/xgcc -B/home/jerry/gcc-2.95.3_obj/gcc/  -B/usr/local/i686-redhat-linux/bin/"; export CC;  CFLAGS="-g -O2"; export CFLAG S;  CXX="/home/jerry/gcc-2.95.3_obj/gcc/xgcc -B/home/jerry/gcc-2.95.3_obj/gcc/ - B/usr/local/i686-redhat-linux/bin/"; export CXX;  CXXFLAGS="-g -O2 -fvtable-thun ks -D_GNU_SOURCE"; export CXXFLAGS;  DLLTOOL="dlltool"; export DLLTOOL;  LD="ld" ; export LD;  LDFLAGS=""; export LDFLAGS;  NM="nm"; export NM;  RANLIB="ranlib";  export RANLIB;  WINDRES="windres"; export WINDRES;  echo Configuring in i686-re dhat-linux/${dir};  cd i686-redhat-linux/${dir};  case ../gcc-2.95.3 in  /*)  to pdir=../gcc-2.95.3 ;;  *)  case "i686-redhat-linux" in  .) topdir="../../gcc-2.9 5.3" ;;  *) topdir="../../../gcc-2.95.3" ;;  esac ;;  esac;  if [ "../gcc-2.95.3 " = "." ] ; then  if [ "i686-redhat-linux" != "." ] ; then  if /bin/sh $s/symlin k-tree ${topdir}/${dir} "no-such-file" ; then  if [ -f Makefile ]; then  if make  distclean; then  true;  else  exit 1;  fi;  else  true;  fi;  else  exit 1;  fi ;  else  true;  fi;  srcdiroption="--srcdir=.";  libsrcdir=".";  else  srcdiropt ion="--srcdir=${topdir}/${dir}";  libsrcdir="$s/${dir}";  fi;  if [ -f ${libsrcd ir}/configure ] ; then  rm -f no-such-file skip-this-dir;  CONFIG_SITE=no-such-f ile /bin/sh ${libsrcdir}/configure  --host=i686-redhat-linux --build=i686-redhat -linux --enable-multilib --with-gcc-version-trigger=/home/jerry/gcc-2.95.3/gcc/v ersion.c  --prefix=/usr/local --enable-shared --enable-languages --enable-langua ges=c,c++,f77 --enable-threads=posix --enable-version-specific-runtime-libs --pr ogram-transform-name=s/\\(.*\\)/\\1-2.95.3/   ${srcdiroption}  --with-target-sub dir="i686-redhat-linux";  else  rm -f no-such-file skip-this-dir;  CONFIG_SITE=n o-such-file /bin/sh $s/configure  --host=i686-redhat-linux --build=i686-redhat-l inux --enable-multilib --with-gcc-version-trigger=/home/jerry/gcc-2.95.3/gcc/ver sion.c  --prefix=/usr/local --enable-shared --enable-languages --enable-language s=c,c++,f77 --enable-threads=posix --enable-version-specific-runtime-libs --prog ram-transform-name=s/\\(.*\\)/\\1-2.95.3/   ${srcdiroption}  --with-target-subdi r="i686-redhat-linux";  fi;  if [ -f skip-this-dir ] ; then  sh skip-this-dir; rm -f skip-this-dir;  cd ..; rmdir ${dir} || true;  else  true;  fi;  else  true ;  fi;  else  true;  fi' 


make[1]: *** [configure-target-libio] Error 2 
make[1]: Leaving directory `/home/jerry/gcc-2.95.3_obj' 
make: *** [bootstrap] Error 2 

Appreciate your help on this.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux