This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Modules and linking


Hello there, 
I am seeing something new which looks related to the recent work in
module name mangling:
mpif90 ppde.o  data_input.o -o ppde -L../../lib  -lmld_prec
-L/home/sfilippo/NUMERICAL/NewPSBLAS/psblas3-dev/lib/ -lpsb_krylov
-lpsb_prec  -lpsb_util  -lpsb_base    -llapack -lcblas -lf77blas -latlas
-lmetis -L/usr/local/LIB/gnu46/lib -L/usr/local/metis/gnu46/ 
/home/sfilippo/NUMERICAL/NewPSBLAS/psblas3-dev/lib//libpsb_base.a(psb_z_linmap_mod.o): In function `__copy_psb_descriptor_type_psb_desc_type_':
/home/sfilippo/NUMERICAL/NewPSBLAS/psblas3-dev/base/modules/psb_z_linmap_mod.f90:233: multiple definition of `__copy_psb_descriptor_type_psb_desc_type_'
/home/sfilippo/NUMERICAL/NewPSBLAS/psblas3-dev/lib//libpsb_base.a(psb_c_linmap_mod.o):/home/sfilippo/NUMERICAL/NewPSBLAS/psblas3-dev/base/modules/psb_c_linmap_mod.f90:231: first defined here
collect2: ld returned 1 exit status
make: *** [ppde] Error 1
[sfilippo@localhost pdegen]$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gnu46/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/usr/local/gnu46
--enable-languages=c,c++,fortran --with-gmp=/home/travel/GCC/BUILDS/gmp
--with-mpfr=/home/travel/GCC/BUILDS/mpfr
--with-mpc=/home/travel/GCC/BUILDS/mpc : (reconfigured) ../gcc/configure
--prefix=/usr/local/gnu46 --enable-languages=c,c++,fortran
--with-gmp=/home/travel/GCC/BUILDS/gmp
--with-mpfr=/home/travel/GCC/BUILDS/mpfr
--with-mpc=/home/travel/GCC/BUILDS/mpc
Thread model: posix
gcc version 4.6.0 20101110 (experimental) (GCC)

Is it worth trying to cut a test case, or is it something obviously
wrong on my part? 

Thanks 
Salvatore 



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