This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g77 not functional?


Dear colleagues,

I have apparently successfully installed gcc3.2 as you can see from the
attached report (I have carefully followed all the instructions, including
the tests, hence the report).

However, g77 appears not to be working properly. I have tried to compile a
simple program as a test (Called CALCULO.f and also attached) and used the
command call: g77 -o test CALCULO.f. It failed as shown in the attached
third file, where I also show that another fortran compiler (fort77)
worked fine. I really need g77 though! It is to install other programs
that are know to be installed fine with this latter compiler.

I further note that I cannot find f771 anywhere in each of the /bin
directories in my linux PC system. Could this be the explanation? Why was
it not installed?

Any help?
Many thanks.
Sincerely,

Pedro Augusto

--------------------------------------------------------------------------
Dr. Pedro Augusto
Assistant Professor		tel: +351 291 705150/8
Dep. Matematica			fax: +351 291 705199
Universidade da Madeira
Caminho da Penteada		
9000-390 Funchal
Portugal
--------------------------------------------------------------------------

[root@augusto gcc]# make -k check
make do-check NOTPARALLEL=parallel-ok
make[1]: Entrando no diretório `/usr/local/gcc'
make[2]: Entrando no diretório `/usr/local/gcc/libiberty'
make[3]: Entrando no diretório `/usr/local/gcc/libiberty/testsuite'
echo 'int prepends_underscore = 0;' > test-us.c
gcc -DHAVE_CONFIG_H -g -O2 -I.. -I/root/gcc-3.2/libiberty/testsuite/../../include  -o test-filter -DMAIN -DVERSION='"none"' -DHAVE_CONFIG_H \
        /root/gcc-3.2/libiberty/testsuite/../cplus-dem.c test-us.c -L.. -liberty/bin/sh /root/gcc-3.2/libiberty/testsuite/regress-demangle /root/gcc-3.2/libiberty/testsuite/demangle-expected
All 648 tests passed
make[3]: Saindo do diretório `/usr/local/gcc/libiberty/testsuite'
make[2]: Saindo do diretório `/usr/local/gcc/libiberty'
make[2]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3'
Making check in include
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/include'
make[3]: Nada a ser feito para `check'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/include'
Making check in libio
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/libio'
make[3]: Nada a ser feito para `check'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/libio'
Making check in libmath
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/libmath'
make[3]: Nada a ser feito para `check'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/libmath'
Making check in libsupc++
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
make[3]: Nada a ser feito para `check'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
Making check in src
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: Nada a ser feito para `check'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/src'Making check in po
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/po'
make[3]: Nada a ser feito para `check'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/po' Making check in testsuite
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/testsuite'
make  check-DEJAGNU
make[4]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/testsuite'
Making a new site.exp file...
srcdir=`cd /root/gcc-3.2/libstdc++-v3/testsuite && pwd`; export srcdir; \
EXPECT=`if [ -f /usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/../../expect/expect ] ; then echo /usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/../../expect/expect ; else echo expect ; fi`; export EXPECT; \
if [ -f ../../expect/expect ]; then \
  TCL_LIBRARY=`cd /root/gcc-3.2/libstdc++-v3/../tcl/library && pwd`; \
  export TCL_LIBRARY; \
fi; \
runtest=`if [ -f /root/gcc-3.2/libstdc++-v3/../dejagnu/runtest ] ; then echo /root/gcc-3.2/libstdc++-v3/../dejagnu/runtest ; else echo runtest; fi`; \
if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
  $runtest --tool libstdc++-v3 --srcdir $srcdir ; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
Test Run By root on Mon Sep 23 12:03:03 2002
Native configuration is i686-pc-linux-gnu

                === libstdc++-v3 tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using /root/gcc-3.2/libstdc++-v3/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /root/gcc-3.2/libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp ...
XPASS: 22_locale/ctype_is_wchar_t.cc execution test
FAIL: 26_numerics/c99_classification_macros_c.cc (test for excess errors)

                === libstdc++-v3 Summary ===

# of expected passes            408
# of unexpected failures        1
# of unexpected successes       1
# of expected failures          25
make[4]: ** [check-DEJAGNU] Erro 1
make[4]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/testsuite'
make[3]: ** [check-am] Erro 2
make[3]: O alvo `check' não foi reprocessado por causa de erros.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3/testsuite'
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3'
make[3]: Nada a ser feito para `check-am'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3'
make[2]: ** [check-recursive] Erro 1
make[2]: O alvo `check' não foi reprocessado por causa de erros.
make[2]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libstdc++-v3'
make[1]: ** [check-target-libstdc++-v3] Erro 2
make[2]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libf2c'
cd libU77; make G77DIR=../../../gcc/ check
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libf2c/libU77' ../../../gcc/g77 -B../../../gcc/ -L.. -g /root/gcc-3.2/libf2c/libU77/u77-test.f \
-lg2c  -lm -o a.out && ./a.out
/root/gcc-3.2/libf2c/libU77/u77-test.f: In program `MAIN__':
/root/gcc-3.2/libf2c/libU77/u77-test.f:214: warning:
         call idate (i,j,k)
              ^
Intrinsic `IDATE', invoked at (^), known to be non-Y2K-compliant [info -f g77 M Y2KBAD]
/root/gcc-3.2/libf2c/libU77/u77-test.f:223: warning:
         call date (ctim)
              ^
Intrinsic `DATE', invoked at (^), known to be non-Y2K-compliant [info -f g77 M Y2KBAD]
./a.out: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory
make[3]: [check] Erro 127 (ignorado)
rm -f a.out
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libf2c/libU77'
make[2]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libf2c'
make[2]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libiberty'
make[3]: Entrando no diretório `/usr/local/gcc/i686-pc-linux-gnu/libiberty/testsuite'
make[3]: Nada a ser feito para `check'.
make[3]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Saindo do diretório `/usr/local/gcc/i686-pc-linux-gnu/libiberty'
make[2]: Entrando no diretório `/usr/local/gcc/gcc'
Making a new config file...
echo "set tmpdir /usr/local/gcc/gcc/testsuite" >> ./tmp0
test -d testsuite || mkdir testsuite
rm -f testsuite/site.exp
sed '/set tmpdir/ s|testsuite|testsuite|' < site.exp > testsuite/site.exp
(rootme=`pwd`; export rootme; \
srcdir=`cd /root/gcc-3.2/gcc; pwd` ; export srcdir ; \
cd testsuite; \
EXPECT=expect ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then  \
   TCL_LIBRARY=`cd .. ; cd /root/gcc-3.2/gcc/../tcl/library ; pwd` ; \
   export TCL_LIBRARY ; fi ; \
runtest --tool gcc )
WARNING: Couldn't find the global config file.
Test Run By root on Mon Sep 23 12:19:15 2002
Native configuration is i686-pc-linux-gnu

                === gcc tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using /root/gcc-3.2/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /root/gcc-3.2/gcc/testsuite/gcc.c-torture/compile/compile.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.c-torture/execute/execute.exp ...
FAIL: gcc.c-torture/execute/20020307-2.c execution,  -O1
FAIL: gcc.c-torture/execute/20020307-2.c execution,  -O2
FAIL: gcc.c-torture/execute/20020307-2.c execution,  -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/20020307-2.c execution,  -O3 -fomit-frame-pointer -funroll-loops
FAIL: gcc.c-torture/execute/20020307-2.c execution,  -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions
FAIL: gcc.c-torture/execute/20020307-2.c execution,  -O3 -g
Running /root/gcc-3.2/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.c-torture/unsorted/unsorted.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.dg/cpp/cpp.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.dg/debug/debug.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.dg/dg.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.dg/format/format.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.dg/noncompile/noncompile.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.dg/special/ecos.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.dg/special/special.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/acker1.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/arm-isr.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/bprob.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/dg-test.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/dhry.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/gcov.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/linkage.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/matrix1.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/mg.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/sieve.exp ...
Running /root/gcc-3.2/gcc/testsuite/gcc.misc-tests/sort2.exp ...

                === gcc Summary ===

# of expected passes            18589
# of unexpected failures        6
# of expected failures          65
# of unsupported tests          44
/usr/local/gcc/gcc/xgcc version 3.2


make[2]: [check-gcc] Erro 1 (ignorado)
if (autogen --ver=v) > /dev/null 2>&1 ; \
then cd fixinc && make check ; \
else true ; fi
(rootme=`pwd`; export rootme; \
srcdir=`cd /root/gcc-3.2/gcc; pwd` ; export srcdir ; \
cd testsuite; \
EXPECT=expect ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then  \
   TCL_LIBRARY=`cd .. ; cd /root/gcc-3.2/gcc/../tcl/library ; pwd` ; \
    export TCL_LIBRARY ; fi ; \
runtest --tool g++ )
WARNING: Couldn't find the global config file.
Test Run By root on Mon Sep 23 13:05:10 2002
Native configuration is i686-pc-linux-gnu

                === g++ tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using /root/gcc-3.2/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /root/gcc-3.2/gcc/testsuite/g++.dg/debug/debug.exp ...
Running /root/gcc-3.2/gcc/testsuite/g++.dg/dg.exp ...
Running /root/gcc-3.2/gcc/testsuite/g++.dg/special/ecos.exp ...
Running /root/gcc-3.2/gcc/testsuite/g++.old-deja/old-deja.exp ...

                === g++ Summary ===

# of expected passes            7270
# of expected failures          88
# of untested testcases         9
# of unsupported tests          3
/usr/local/gcc/gcc/testsuite/../g++ version 3.2


(rootme=`pwd`; export rootme; \
srcdir=`cd /root/gcc-3.2/gcc; pwd` ; export srcdir ; \
cd testsuite; \
EXPECT=expect ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then  \
   TCL_LIBRARY=`cd .. ; cd /root/gcc-3.2/gcc/../tcl/library ; pwd` ; \
   export TCL_LIBRARY ; fi ; \
runtest --tool g77 )
WARNING: Couldn't find the global config file.
Test Run By root on Mon Sep 23 13:32:26 2002
Native configuration is i686-pc-linux-gnu

                === g77 tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using /root/gcc-3.2/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /root/gcc-3.2/gcc/testsuite/g77.dg/bprob/bprob.exp ...
Running /root/gcc-3.2/gcc/testsuite/g77.dg/dg.exp ...
Running /root/gcc-3.2/gcc/testsuite/g77.dg/gcov/gcov.exp ...
Running /root/gcc-3.2/gcc/testsuite/g77.f-torture/compile/compile.exp ...
Running /root/gcc-3.2/gcc/testsuite/g77.f-torture/execute/execute.exp ...
Running /root/gcc-3.2/gcc/testsuite/g77.f-torture/noncompile/noncompile.exp ...

                === g77 Summary ===

# of expected passes            1468
/usr/local/gcc/gcc/testsuite/../g77 version 3.2


make[2]: Saindo do diretório `/usr/local/gcc/gcc'
make[1]: O alvo `do-check' não foi reprocessado por causa de erros.
make[1]: Saindo do diretório `/usr/local/gcc'
make: ** [check] Erro 2
[root@augusto gcc]#
      program calculo
      real ww,zz,ecr,asd,ard
      ww = 2.5
      zz = 3.0
      ASD = ((1.0 + ww) ** 2.0 / (SQRT(1.0 + ZZ) - SQRT(1.0 + WW)))      
      ARD = ((SQRT(1.0 + ZZ) - 1.0) / (SQRT(1.0 + WW) - 1.0))
      ecr = (0.04375 * ASD) * ARD
      write(*,*) ecr
      end
[root@augusto root]# g77 -o test CALCULO.f
[root@augusto root]# pwd
/root
[root@augusto root]# /root/test
/root/test: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory
[root@augusto root]# rm test
rm: remove `test'? y
[root@augusto root]# fort77 -o test CALCULO.f
CALCULO.f:
   MAIN calculo:
[root@augusto root]# /root/test
  4.76447868
[root@augusto root]#

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]