------- Comment #4 from jv244 at cam dot ac dot uk  2008-08-13 06:47 -------
(In reply to comment #3)
> Created an attachment (id=16062)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16062&action=view) [edit]
> Patch that may fix the bug
> 
> Thanks for the report.  Wow, I was a bit surprised this didn't show up 
> building
> libgfortran.  This patch ought to fix this one.
> 
Might be good to add a testcase for this issue?

With the patch, the code compiles fine, but there is an issue at link time
(linking requires lapack/blas):

> gfortran -g -O3 -ffast-math -funroll-loops -ftree-vectorize -march=native 
> -ffree-form all_cp2k_gfortran.o 
> /users/vondele/LAPACK/liblapack_gfortran_x86.a 
> /users/vondele/LAPACK/libblas_gfortran_x86.a
all_cp2k_gfortran.o:(.debug_loc+0x3c827): undefined reference to `.LC1024'
all_cp2k_gfortran.o:(.debug_loc+0x3c8d2): undefined reference to `.LC1024'
all_cp2k_gfortran.o:(.debug_loc+0x3ca8c): undefined reference to `.LC1024'
all_cp2k_gfortran.o:(.debug_loc+0x3cc81): undefined reference to `.LC1024'
all_cp2k_gfortran.o:(.debug_loc+0x3cdcd): undefined reference to `.LC1024'
all_cp2k_gfortran.o:(.debug_loc+0x3ce30): more undefined references to
`.LC1024' follow
/data03/vondele/gcc_vta/build/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../lib64/libgfortran.so:
undefined reference to `.LC6'
/data03/vondele/gcc_vta/build/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../lib64/libgfortran.so:
undefined reference to `.LC8'
/data03/vondele/gcc_vta/build/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../lib64/libgfortran.so:
undefined reference to `.LC7'
/data03/vondele/gcc_vta/build/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../lib64/libgfortran.so:
undefined reference to `.LC9'
/data03/vondele/gcc_vta/build/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../lib64/libgfortran.so:
undefined reference to `.LC0'


-- 


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

Reply via email to