From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulbrich@statistik.tu-muenchen.de (Michael Ulbrich) To: egcs@cygnus.com Subject: egcs-1.0 successfully built on sparc-sun-solaris2.6 Date: Fri, 12 Dec 1997 10:18:00 -0000 Message-id: <199712121449.PAA23058@sparc1.iams> X-SW-Source: 1997-12/msg00749.html Hi, I have built a native egcs-1.0 for the host sparc-sun-solaris2.6. My system: # uname -a SunOS sunstatistik2 5.6 Generic sun4u sparc SUNW,Ultra-2 # ./config.guess sparc-sun-solaris2.6 I configured with # ../egcs-1.0/configure --enable-haifa --enable-threads Three patches were necessary: 1. I had to use gmake, since /usr/ccs/bin/make did not work. 2. /usr/bin/which does not work on my system. I replaced the corresponding line 795 in srcdir/configure.in if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then with if [ "`echo "which $CCBASE; exit" | /usr/bin/csh`" = "/usr/ucb/cc" ] ; then See the diff-file. 3. I had to use bash instead of /bin/sh in srcdir/configure. See the diff-file. Enclosed is my diff-file and the output of "cd objdir; make -k check". Cheers, Michael ************* * diff file * ************* diff -c egcs-1.0-org/configure egcs-1.0/configure *** egcs-1.0-org/configure Wed Dec 3 17:34:28 1997 --- egcs-1.0/configure Fri Dec 12 15:14:04 1997 *************** *** 1,4 **** ! #!/bin/sh ### WARNING: this file contains embedded tabs. Do not run untabify on this file. --- 1,4 ---- ! #!/usr/applic/bin/bash ### WARNING: this file contains embedded tabs. Do not run untabify on this file. *************** *** 117,123 **** ;; esac ! config_shell=${CONFIG_SHELL-/bin/sh} NO_EDIT="This file was generated automatically by configure. Do not edit." --- 117,123 ---- ;; esac ! config_shell=${CONFIG_SHELL-/usr/applic/bin/bash} NO_EDIT="This file was generated automatically by configure. Do not edit." diff -c egcs-1.0-org/configure.in egcs-1.0/configure.in *** egcs-1.0-org/configure.in Thu Nov 13 19:37:27 1997 --- egcs-1.0/configure.in Thu Dec 11 17:02:12 1997 *************** *** 792,798 **** case "${host}" in sparc-sun-solaris2*) CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" ! if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then could_use= [ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin" if [ -d /opt/cygnus/bin ] ; then --- 792,798 ---- case "${host}" in sparc-sun-solaris2*) CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" ! if [ "`echo "which $CCBASE; exit" | /usr/bin/csh`" = "/usr/ucb/cc" ] ; then could_use= [ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin" if [ -d /opt/cygnus/bin ] ; then *************************** * output of make -k check * *************************** # cd egcs-build # make -k check make[1]: Entering directory `/tmp/mulbrich/egcs-build/etc' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/mulbrich/egcs-build/etc' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libiberty' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libiberty' make[1]: Entering directory `/tmp/mulbrich/egcs-build/texinfo' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/mulbrich/egcs-build/texinfo' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libiberty' make[2]: Entering directory `/tmp/mulbrich/egcs-build/libiberty' make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libiberty' make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libiberty' make[1]: Entering directory `/tmp/mulbrich/egcs-build/texinfo' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/mulbrich/egcs-build/texinfo' make[1]: Entering directory `/tmp/mulbrich/egcs-build/gcc' if [ -f libgcc2.ready ] ; then \ true; \ else \ touch libgcc2.ready; \ fi if [ -f fixhdr.ready ] ; then \ true; \ else \ touch fixhdr.ready; \ fi case "c proto gcov c++ f77 objc" in \ *f77*) top=`pwd`; \ cd f/runtime && make \ GCC_FOR_TARGET="`case '/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/' in \ './xgcc -B./') echo ${top}/xgcc -B${top}/;; \ *) echo '/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/';; esac`" \ GCC_FLAGS="" CROSS="" AR_FLAGS="rc" AR="ar" BISON="bison" BISONFLAGS="" CC="gcc" CFLAGS="-g -O2" X_CFLAGS="-DSVR4" LDFLAGS="" LEX="flex" LEXFLAGS="" MAKEINFO="/tmp/mulbrich/egcs-build/texinfo/makeinfo/makeinfo " MAKEINFOFLAGS="" RANLIB="true" RANLIB_TEST="[ -f /usr/bin/ranlib -o -f /bin/ranlib ]" SHELL="/usr/applic/bin/bash" exec_prefix="/tmp/mulbrich/egcs" prefix="/tmp/mulbrich/egcs" tooldir="/tmp/mulbrich/egcs/sparc-sun-solaris2.6" bindir="/tmp/mulbrich/egcs/bin" libsubdir="/tmp/mulbrich/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.21" \ all ;; \ esac make[2]: Entering directory `/tmp/mulbrich/egcs-build/gcc/f/runtime' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/mulbrich/egcs-build/gcc/f/runtime' make[1]: Leaving directory `/tmp/mulbrich/egcs-build/gcc' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libiberty' make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libiberty' make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libiberty' make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libiberty' if [ -z "" ]; then \ true; \ else \ rootpre=`pwd`/; export rootpre; \ srcrootpre=`cd ../../../egcs-1.0/libiberty; pwd`/; export srcrootpre; \ lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \ compiler="/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/"; \ for i in `${compiler} --print-multi-lib 2>/dev/null`; do \ dir=`echo $i | sed -e 's/;.*$//'`; \ if [ "${dir}" = "." ]; then \ true; \ else \ if [ -d ../${dir}/${lib} ]; then \ flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \ if (cd ../${dir}/${lib}; make "AR=ar" "AR_FLAGS=rc" "CC=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CFLAGS=-g -O2" "LIBCFLAGS=-g -O2" "EXTRA_OFILES=" "HDEFINES=-DHAVE_SYSCONF" "INSTALL=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c" "INSTALL_DATA=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c -m 644" "INSTALL_PROGRAM=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c " "LDFLAGS=" "LOADLIBES=" "PICFLAG=" "RANLIB=true" "SHELL=/usr/applic/bin/bash" \ CFLAGS="-g -O2 ${flags}" \ CXXFLAGS="-g -O2 ${flags}" \ LIBCFLAGS="-g -O2 ${flags}" \ LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \ all); then \ true; \ else \ exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libiberty' make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libiberty' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio' make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio' if [ -z "" ]; then \ true; \ else \ rootpre=`pwd`/; export rootpre; \ srcrootpre=`cd ../../../egcs-1.0/libio; pwd`/; export srcrootpre; \ lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \ compiler="/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/"; \ for i in `${compiler} --print-multi-lib 2>/dev/null`; do \ dir=`echo $i | sed -e 's/;.*$//'`; \ if [ "${dir}" = "." ]; then \ true; \ else \ if [ -d ../${dir}/${lib} ]; then \ flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \ if (cd ../${dir}/${lib}; make "INSTALL=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c" "INSTALL_DATA=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c -m 644" "INSTALL_PROGRAM=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c " "prefix=/tmp/mulbrich/egcs" "exec_prefix=/tmp/mulbrich/egcs" "tooldir=/tmp/mulbrich/egcs/sparc-sun-solaris2.6" "AR=ar" "AR_FLAGS=rc" "CC=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CXX=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=nm" "RANLIB=true" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/tmp/mulbrich/egcs-build/texinfo/makeinfo/makeinfo " "SHLIB=" "SHCURSES=" "PICFLAG=" "RUNTESTFLAGS=" \ CFLAGS="-g -O2 ${flags}" \ CXXFLAGS="-g -O2 ${flags}" \ LIBCFLAGS="-g -O2 ${flags}" \ LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \ all); then \ true; \ else \ exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio' make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio' cd tests; make all ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/tests' make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/tests' cd dbz; make all ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/dbz' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/dbz' cd stdio; make all ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/stdio' make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/stdio' cd testsuite; make all ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/testsuite' make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/testsuite' make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio' make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' cd ../libio ; make "INSTALL=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c" "INSTALL_DATA=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c -m 644" "INSTALL_PROGRAM=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c " "prefix=/tmp/mulbrich/egcs" "exec_prefix=/tmp/mulbrich/egcs" "tooldir=/tmp/mulbrich/egcs/sparc-sun-solaris2.6" "AR=ar" "AR_FLAGS=rc" "CC=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CXX=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=nm" "RANLIB=true" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/tmp/mulbrich/egcs-build/texinfo/makeinfo/makeinfo " "SHLIB=libstdc++.so.2.8.0" "SHCURSES=" "PICFLAG=" "RUNTESTFLAGS=" iostream.list make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio' make[2]: `iostream.list' is up to date. make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio' make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' if [ -z "" ]; then \ true; \ else \ rootpre=`pwd`/; export rootpre; \ srcrootpre=`cd ../../../egcs-1.0/libstdc++; pwd`/; export srcrootpre; \ lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \ compiler="/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/"; \ for i in `${compiler} --print-multi-lib 2>/dev/null`; do \ dir=`echo $i | sed -e 's/;.*$//'`; \ if [ "${dir}" = "." ]; then \ true; \ else \ if [ -d ../${dir}/${lib} ]; then \ flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \ if (cd ../${dir}/${lib}; make "INSTALL=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c" "INSTALL_DATA=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c -m 644" "INSTALL_PROGRAM=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c " "prefix=/tmp/mulbrich/egcs" "exec_prefix=/tmp/mulbrich/egcs" "tooldir=/tmp/mulbrich/egcs/sparc-sun-solaris2.6" "AR=ar" "AR_FLAGS=rc" "CC=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CXX=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=nm" "RANLIB=true" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/tmp/mulbrich/egcs-build/texinfo/makeinfo/makeinfo " "SHLIB=libstdc++.so.2.8.0" "SHCURSES=" "PICFLAG=" "RUNTESTFLAGS=" \ CFLAGS="-g -O2 ${flags}" \ CXXFLAGS="-g -O2 ${flags}" \ LIBCFLAGS="-g -O2 ${flags}" \ LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \ all); then \ true; \ else \ exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' cd tests; make all ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/tests' make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/tests' cd testsuite; make all ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/testsuite' make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/testsuite' make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio' rootme=`pwd`/; export rootme; \ SAVE_LLPATH="${SAVE_LLPATH-$LD_LIBRARY_PATH}"; export SAVE_LLPATH; \ LD_LIBRARY_PATH="${rootme}../libstdc++:${rootme}../libg++:$SAVE_LLPATH"; \ export LD_LIBRARY_PATH; \ make "DODIRS=tests dbz stdio testsuite" DO=check "INSTALL=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c" "INSTALL_DATA=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c -m 644" "INSTALL_PROGRAM=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c " "prefix=/tmp/mulbrich/egcs" "exec_prefix=/tmp/mulbrich/egcs" "tooldir=/tmp/mulbrich/egcs/sparc-sun-solaris2.6" "AR=ar" "AR_FLAGS=rc" "CC=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CXX=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=nm" "RANLIB=true" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/tmp/mulbrich/egcs-build/texinfo/makeinfo/makeinfo " "SHLIB=" "SHCURSES=" "PICFLAG=" "RUNTESTFLAGS=" subdir_do make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio' cd tests; make check ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/tests' make[3]: Nothing to be done for `check'. make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/tests' cd dbz; make check ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/dbz' /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ -g -O2 -I../../../../egcs-1.0/libio/dbz -I.. -I../../../../egcs-1.0/libio/dbz/.. -DDBZ_FINISH='_IO_flush_all()' -c ../../../../egcs-1.0/libio/dbz/byteflip.c /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ byteflip.o ../libio.a ../../libiberty/libiberty.a -o byteflip /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ -g -O2 -I../../../../egcs-1.0/libio/dbz -I.. -I../../../../egcs-1.0/libio/dbz/.. -DDBZ_FINISH='_IO_flush_all()' -DHAVERFCIZE -c rdbzmain.c /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ -g -O2 -I../../../../egcs-1.0/libio/dbz -I.. -I../../../../egcs-1.0/libio/dbz/.. -DDBZ_FINISH='_IO_flush_all()' -DDBZDEBUG -DDEFSIZE=4019 -c rdbz.c /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ rdbzmain.o rdbz.o case.o ../libio.a ../../libiberty/libiberty.a -o rdbz /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ -g -O2 -I../../../../egcs-1.0/libio/dbz -I.. -I../../../../egcs-1.0/libio/dbz/.. -DDBZ_FINISH='_IO_flush_all()' -c ../../../../egcs-1.0/libio/dbz/fake.c /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ -g -O2 -I../../../../egcs-1.0/libio/dbz -I.. -I../../../../egcs-1.0/libio/dbz/.. -DDBZ_FINISH='_IO_flush_all()' -c ../../../../egcs-1.0/libio/dbz/random.c /tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/ fake.o random.o ../libio.a ../../libiberty/libiberty.a -o fake ./fake -t -e 75 3300 >hist3.3 ./fake -t -e 75 10000 >hist10 : 'WARNING: creates about 2MB of debris; do "make rclean" afterward' rm -f dbase dbase[23] dbase.* dbase[23].* test ! -d xx || rmdir xx : crude check of synthetic history file ( sed 25q hist3.3 ; tail -25 hist3.3 ) >histjunk cmp histjunk ../../../../egcs-1.0/libio/dbz/firstlast25 rm histjunk : basic tests, exercising as many options as possible cp hist3.3 dbase mkdir xx chmod -w xx ./rdbz -E 1000 -0 -M -i -S -u -U -C xx dbase 1000 2000 3000 rmdir xx sed '/> 0/d' hist3.3 >dbase.used test "`cat dbase.used | wc -l`" -eq "`sed -n '2s/ .*//p' dbase.dir`" ; cp hist3.3 dbase2 ./rdbz -E 1000 -0 -p 2679 -t ' ' dbase2 1000 2000 3000 cmp hist3.3 dbase cmp dbase dbase2 cmp dbase.dir dbase2.dir cmp dbase.pag dbase2.pag ./rdbz -E 1000 -0 -c dbase 1000 2000 3000 ./rdbz -E 1000 -0 -c -i -q -M -U dbase 1000 2000 3000 : build a database and then add to it sed 1000q hist3.3 >dbase2 sed 1,1000d hist3.3 >dbase2.add ./rdbz -E 1000 -0 dbase2 1000 ./rdbz -E 1000 -0 -a dbase2 dbase2.add 1000 2000 cmp dbase dbase2 cmp dbase.dir dbase2.dir cmp dbase.pag dbase2.pag : build based on existing one, test extraction and readonly files ./rdbz -E 1000 -0 -f dbase dbase2 1000 2000 3000 test "`cat dbase.used | wc -l`" -eq "`awk 'NR==2{print $1}' dbase2.dir`" ; test "`cat dbase.used | wc -l`" -eq "`awk 'NR==2{print $2}' dbase2.dir`" ; chmod -w dbase2.dir dbase2.pag ./rdbz -E 1000 -x dbase2 dbase >dbase.temp 1000 2000 3000 cmp dbase.used dbase.temp : try some small case perversions sed 's/\(@[^ ]*\)A/\1a/' dbase >dbase.ick ./rdbz -E 1000 -x dbase2 dbase.ick >dbase.temp 1000 2000 3000 cmp dbase.used dbase.temp sed -n 's/A\([^ ]*@\)/a\1/p' dbase >dbase.ick ./rdbz -x dbase2 dbase.ick >dbase.temp test ! -s dbase.temp ; rm -f dbase2.dir dbase2.pag : try it without tags, case-insensitive, with case perversions ./rdbz -E 1000 -0 -p '0 b 1' dbase2 1000 2000 3000 tr '[A-M][n-z]' '[a-m][N-Z]' dbase.ick ./rdbz -E 1000 -x dbase2 dbase.ick >dbase.temp 1000 2000 3000 cmp dbase.used dbase.temp rm -f dbase.temp dbase.ick : test various perversions of byte ordering awk -f ../../../../egcs-1.0/libio/dbz/revbytes dbase.dir >dbase2.dir ./byteflip `../../../../egcs-1.0/libio/dbz/getmap dbase.dir` `../../../../egcs-1.0/libio/dbz/getmap dbase2.dir` dbase2.pag cp dbase dbase2 ./rdbz -E 1000 -0 -c dbase2 1000 2000 3000 awk -f ../../../../egcs-1.0/libio/dbz/altbytes dbase.dir >dbase2.dir dd conv=swab dbase2.pag 31+1 records in 31+1 records out ./rdbz -E 1000 -0 -c dbase2 1000 2000 3000 cp dbase2 dbase3 ./rdbz -E 1000 -0 -f dbase2 dbase3 1000 2000 3000 ./rdbz -E 1000 -0 -c dbase3 1000 2000 3000 test " `../../../../egcs-1.0/libio/dbz/getmap dbase2.dir`" = " `../../../../egcs-1.0/libio/dbz/getmap dbase3.dir`" ; : test massive overflow, throw in case sensitivity and tag mask cp hist10 dbase ./rdbz -E 1000 -0 -p '0 0 7ffc0000' dbase 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 ./rdbz -E 1000 -0 -cq dbase 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 sed 100q dbase | egrep '[aA].* ' | tr aA Aa >dbase.ick ./rdbz -x dbase dbase.ick >dbase.temp test ! -s dbase.temp ; : success! make rclean make[4]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/dbz' rm -f dbase dbase[23] dbase.* dbase[23].* fake fake.o random.o rm -f rdbz rdbz.o rdbzmain.o hist3.3 hist10 byteflip byteflip.o rm -f histjunk core stamp-r? *~ test ! -d xx || rmdir xx make[4]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/dbz' make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/dbz' cd stdio; make check ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/stdio' make[3]: Nothing to be done for `check'. make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/stdio' cd testsuite; make check ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio/testsuite' rootme=`pwd`; export rootme; \ srcdir=../../../../egcs-1.0/libio/testsuite ; export srcdir ; \ EXPECT=`if [ -f ${rootme}/../../expect/expect ] ; then echo ${rootme}/../../expect/expect ; else echo expect ; fi` ; export EXPECT ; \ if [ -f ${rootme}/../../expect/expect ] ; then \ TCL_LIBRARY=${srcdir}/../../tcl/library ; \ export TCL_LIBRARY ; fi ; \ ` if [ -f ${srcdir}/../../dejagnu/runtest ]; then echo ${srcdir}/../../dejagnu/runtest; else if [ "sparc-sun-solaris2.6" = "sparc-sun-solaris2.6" ]; then echo runtest; else t=''; echo runtest | sed -e '' $t; fi; fi` WARNING: Couldn't find the global config file. Test Run By mulbrich on Fri Dec 12 14:17:40 1997 Native configuration is sparc-sun-solaris2.6 === libio tests === Running target unix Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/baseboards/unix.exp as board description file for target. Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/config/unix.exp as generic interface file for target. Using ../../../../egcs-1.0/libio/testsuite/config/default.exp as tool-and-target-specific interface file. Running ../../../../egcs-1.0/libio/testsuite/libio.tests/hounddog.exp ... Running ../../../../egcs-1.0/libio/testsuite/libio.tests/putbackdog.exp ... Running ../../../../egcs-1.0/libio/testsuite/libio.tests/tFile.exp ... Running ../../../../egcs-1.0/libio/testsuite/libio.tests/tfformat.exp ... Running ../../../../egcs-1.0/libio/testsuite/libio.tests/tiformat.exp ... Running ../../../../egcs-1.0/libio/testsuite/libio.tests/tiomanip.exp ... Running ../../../../egcs-1.0/libio/testsuite/libio.tests/tiomisc.exp ... Running ../../../../egcs-1.0/libio/testsuite/libio.tests/tstdiomisc.exp ... === libio Summary === # of expected passes 40 make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio/testsuite' make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio' make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' cd ../libio ; make "INSTALL=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c" "INSTALL_DATA=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c -m 644" "INSTALL_PROGRAM=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c " "prefix=/tmp/mulbrich/egcs" "exec_prefix=/tmp/mulbrich/egcs" "tooldir=/tmp/mulbrich/egcs/sparc-sun-solaris2.6" "AR=ar" "AR_FLAGS=rc" "CC=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CXX=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=nm" "RANLIB=true" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/tmp/mulbrich/egcs-build/texinfo/makeinfo/makeinfo " "SHLIB=libstdc++.so.2.8.0" "SHCURSES=" "PICFLAG=" "RUNTESTFLAGS=" iostream.list make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libio' make[2]: `iostream.list' is up to date. make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libio' rootme=`pwd`/; export rootme; \ SAVE_LLPATH="${SAVE_LLPATH-$LD_LIBRARY_PATH}"; export SAVE_LLPATH; \ LD_LIBRARY_PATH="${rootme}../libstdc++:${rootme}../libg++:$SAVE_LLPATH"; \ export LD_LIBRARY_PATH; \ make "DODIRS=tests testsuite" DO=check "INSTALL=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c" "INSTALL_DATA=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c -m 644" "INSTALL_PROGRAM=/usr/applic/bin/bash /tmp/mulbrich/egcs-1.0/install-sh -c " "prefix=/tmp/mulbrich/egcs" "exec_prefix=/tmp/mulbrich/egcs" "tooldir=/tmp/mulbrich/egcs/sparc-sun-solaris2.6" "AR=ar" "AR_FLAGS=rc" "CC=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CXX=/tmp/mulbrich/egcs-build/gcc/xgcc -B/tmp/mulbrich/egcs-build/gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=nm" "RANLIB=true" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/tmp/mulbrich/egcs-build/texinfo/makeinfo/makeinfo " "SHLIB=libstdc++.so.2.8.0" "SHCURSES=" "PICFLAG=" "RUNTESTFLAGS=" subdir_do make[2]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' cd tests; make check ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/tests' make[3]: Nothing to be done for `check'. make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/tests' cd testsuite; make check ... make[3]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/testsuite' rootme=`pwd`; export rootme; \ srcdir=../../../../egcs-1.0/libstdc++/testsuite ; export srcdir ; \ EXPECT=`if [ -f ${rootme}/../../expect/expect ] ; then echo ${rootme}/../../expect/expect ; else echo expect ; fi` ; export EXPECT ; \ if [ -f ${rootme}/../../expect/expect ] ; then \ TCL_LIBRARY=${srcdir}/../../tcl/library ; \ export TCL_LIBRARY ; fi ; \ `if [ -f ${srcdir}/../../dejagnu/runtest ] ; then echo ${srcdir}/../../dejagnu/runtest ; else echo runtest; fi` WARNING: Couldn't find the global config file. Test Run By mulbrich on Fri Dec 12 14:18:27 1997 Native configuration is sparc-sun-solaris2.6 === libstdc++ tests === Running target unix Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/baseboards/unix.exp as board description file for target. Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/config/unix.exp as generic interface file for target. Using ../../../../egcs-1.0/libstdc++/testsuite/config/default.exp as tool-and-target-specific interface file. Running ../../../../egcs-1.0/libstdc++/testsuite/libstdc++.tests/test.exp ... === libstdc++ Summary === # of expected passes 30 make[3]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++/testsuite' make[2]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libstdc++' make[1]: Entering directory `/tmp/mulbrich/egcs-build/libraries/libiberty' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/mulbrich/egcs-build/libraries/libiberty' make[1]: Entering directory `/tmp/mulbrich/egcs-build/gcc' rootme=`pwd`; export rootme; \ srcdir=`cd ../../egcs-1.0/gcc; pwd` ; export srcdir ; \ cd testsuite; \ EXPECT=expect ; export EXPECT ; \ if [ -f ${rootme}/../expect/expect ] ; then \ TCL_LIBRARY=${srcdir}/../tcl/library ; \ export TCL_LIBRARY ; fi ; \ runtest --tool gcc WARNING: Couldn't find the global config file. Test Run By mulbrich on Fri Dec 12 14:19:09 1997 Native configuration is sparc-sun-solaris2.6 === gcc tests === Running target unix Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/baseboards/unix.exp as board description file for target. Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/config/unix.exp as generic interface file for target. Using /tmp/mulbrich/egcs-1.0/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.c-torture/code_quality/code_quality.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.c-torture/compile/compile.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.c-torture/execute/execute.exp ... FAIL: gcc.c-torture/execute/loop-2f.c execution, -O2 FAIL: gcc.c-torture/execute/loop-2f.c execution, -O2 -fomit-frame-pointer -finline-functions FAIL: gcc.c-torture/execute/loop-2f.c execution, -O2 -fomit-frame-pointer -finline-functions -funroll-loops FAIL: gcc.c-torture/execute/loop-2f.c execution, -O2 -fomit-frame-pointer -finline-functions -funroll-all-loops Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.c-torture/noncompile/noncompile.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.c-torture/special/special.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.c-torture/unsorted/unsorted.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.dg/dg.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.failure/failure.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/acker1.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/dg-test.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/dhry.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/gcov.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/matrix1.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/mg.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/msgs.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/optbench.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/sieve.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/gcc.misc-tests/sort2.exp ... === gcc Summary === # of expected passes 4881 # of unexpected failures 4 # of expected failures 5 # of unsupported tests 6 /tmp/mulbrich/egcs-build/gcc/xgcc version egcs-2.90.21 971202 (egcs-1.00 release) make[1]: [check-gcc] Error 1 (ignored) rootme=`pwd`; export rootme; \ srcdir=`cd ../../egcs-1.0/gcc; pwd` ; export srcdir ; \ cd testsuite; \ EXPECT=expect ; export EXPECT ; \ if [ -f ${rootme}/../expect/expect ] ; then \ TCL_LIBRARY=${srcdir}/../tcl/library ; \ export TCL_LIBRARY ; fi ; \ runtest --tool g++ WARNING: Couldn't find the global config file. Test Run By mulbrich on Fri Dec 12 14:45:59 1997 Native configuration is sparc-sun-solaris2.6 === g++ tests === Running target unix Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/baseboards/unix.exp as board description file for target. Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/config/unix.exp as generic interface file for target. Using /tmp/mulbrich/egcs-1.0/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/g++.old-deja/old-deja.exp ... XPASS: g++.jason/destruct3.C - (test for bogus messages, line 38) XPASS: g++.mike/dyncast1.C Execution test XPASS: g++.mike/dyncast2.C Execution test === g++ Summary === # of expected passes 3400 # of unexpected successes 3 # of expected failures 80 # of untested testcases 6 /tmp/mulbrich/egcs-build/gcc/testsuite/../xgcc version egcs-2.90.21 971202 (egcs-1.00 release) make[1]: [check-g++] Error 1 (ignored) rootme=`pwd`; export rootme; \ srcdir=`cd ../../egcs-1.0/gcc; pwd` ; export srcdir ; \ cd testsuite; \ EXPECT=expect ; export EXPECT ; \ if [ -f ${rootme}/../expect/expect ] ; then \ TCL_LIBRARY=${srcdir}/../tcl/library ; \ export TCL_LIBRARY ; fi ; \ runtest --tool g77 WARNING: Couldn't find the global config file. Test Run By mulbrich on Fri Dec 12 15:01:52 1997 Native configuration is sparc-sun-solaris2.6 === g77 tests === Running target unix Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/baseboards/unix.exp as board description file for target. Using /tmp/mulbrich/dejagnu/bin/../share/dejagnu/config/unix.exp as generic interface file for target. Using /tmp/mulbrich/egcs-1.0/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/g77.f-torture/compile/compile.exp ... Running /tmp/mulbrich/egcs-1.0/gcc/testsuite/g77.f-torture/execute/execute.exp ... === g77 Summary === # of expected passes 132 /tmp/mulbrich/egcs-build/gcc/g77 version egcs-2.90.21 971202 (egcs-1.00 release) make[1]: Leaving directory `/tmp/mulbrich/egcs-build/gcc'