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

            Bug ID: 59936
           Summary: undefined reference to gfortran
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: benyahia-nezha at hotmail dot fr

Hello,
 I'am using quantum espresso in my searches, but i'am still a beginner  in this
domain. I have faced a problem in which it prevent me to compile my program, i
have looked all around the internet for the hope of finding a solution to this
issue but unfortunately nothing was found.
 If you have some solution to this problem, please  don't hesitate for helping
me, and i you will be so gratefull.







Here is the message that i have received when writing the command "gcc
band-3c.for"

root@b-HP-Pavilion-Sleekbook-15-PC:/home/band# gcc band-3c.for
/tmp/ccxmgVZP.o: dans la fonction « MAIN__ »:
band-3c.for : (.text+0x63): référence indéfinie vers « _gfortran_st_open »
band-3c.for : (.text+0xaf): référence indéfinie vers « _gfortran_st_read »
band-3c.for : (.text+0xcc): référence indéfinie vers « _gfortran_transfer_real
»
band-3c.for : (. text+0xe9): référence indéfinie vers « _gfortran_transfer_real
»
band-3c.for : ( .text+0x106): référence indéfinie vers «
_gfortran_transfer_real »
band-3c.for: (.text+0x114): référence indéfinie vers « _gfortran_st_read_done »
band-3c.for: (.text+0x14a): référence indéfinie vers « _gfortran_st_read »
band-3c.for: (.text+0x167): référence indéfinie vers « _gfortran_transfer_real
»
band-3c.for: (.text+0x184): référence indéfinie vers « _gfortran_transfer_real
»
band-3c.for: (.text+0x1a1): référence indéfinie vers « _gfortran_transfer_real
»
band-3c.for: (.text+0x1be): référence indéfinie vers « _gfortran_transfer_real
»
band-3c.for: (.text+0x1db): référence indéfinie vers « _gfortran_transfer_real
»
/tmp/ccxmgVZP.o:band-3c.for  .  text+0x1f8): encore plus de références
indéfinies suivent vers « _gfortran_transfer_real »
/tmp/ccxmgVZP.o: dans la fonction « MAIN__ »:
band-3c.for: (.text+0x240): référence indéfinie vers « _gfortran_st_read_done »
band-3c.for: (.text+0x28a): référence indéfinie vers « _gfortran_st_write »
band-3c.for: (.text+0x2a7): référence indéfinie vers «
_gfortran_transfer_integer_write »
band-3c.for: (.text+0x2c4): référence indéfinie vers «
_gfortran_transfer_real_write »
band-3c.for: (.text+0x2e1): référence indéfinie vers «
_gfortran_transfer_real_write »
band-3c.for: (.text+0x2fe): référence indéfinie vers «
_gfortran_transfer_real_write »
band-3c.for: (.text+0x31b): référence indéfinie vers «
_gfortran_transfer_real_write »
band-3c.for: (.text+0x338): référence indéfinie vers «
_gfortran_transfer_real_write »
/tmp/ccxmgVZP.o:band-3c.for  .  text+0x355): encore plus de références
indéfinies suivent vers « _gfortran_transfer_real_write »
/tmp/ccxmgVZP.o: dans la fonction « MAIN__ »:
band-3c.for: (.text+0x39d): référence indéfinie vers « _gfortran_st_write_done
»
/tmp/ccxmgVZP.o: dans la fonction « main »:
band-3c.for:    (.text+0x3d7): référence indéfinie vers « _gfortran_set_args »
band-3c.for:   (.text+0x3eb): référence indéfinie vers « _gfortran_set_options
»
collect2: erreur: ld a retourné 1 code d'état d'exécution

 The file "band-3c.for":

c     plot structure de bande
c     point du klist a,b,c
c     les energies   d,e,f,g,h,p,q,r,s,t....(nombre de bande)
               real*8 a,b,c,d,e,f,g,h,i,j,k
               real*8 l,m,n,o,p,q,r,s
               real*8 t,u,v,w,x,y,z,aa
               real*8 bb,cc
               integer iii
c     Lire les energies apartir du fichier out ZnSbands.dat
               open(unit=2,status='unknown', file='GaAs-band')

c     i est le nonbre de point dans le klist
               do iii=1,91
               read(2,*)  a,b,c
               read(2,*)  d,e,f,g,h,i,j,k
               write(3,10) iii,d,e,f,g,h,i,j,k
10             format(3x,I3,3x,120(f12.4,4x))
               end do
               end


root@b-HP-Pavilion-Sleekbook-15-PC:/home/band# gfortran -v
Utilisation des specs internes.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.7/lto-wrapper
Target: i686-linux-gnu
Configuré avec: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --enable-objc-gc --enable-targets=all --with-cloog
--enable-cloog-backend=ppl --disable-cloog-version-check
--disable-ppl-version-check --enable-multiarch --disable-werror
--with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic
--enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu
--target=i686-linux-gnu
Modèle de thread: posix
gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1)
root@b-HP-Pavilion-Sleekbook-15-PC:/home/band#

Reply via email to