Hi, I am trying to use petsc-3.0.0-p3 with the Sunstudio 12 Fortran compiler. Everything worked until "make test". Then the linker complained about unknown options. Does anyone know how to make this work?
Here's my configure command (all on one line): ./config/configure.py --with-cc=gcc --with-fc=sunf90 --with-petsc-arch=sunf90-optim --with-debugging=no --download-mpich=1 --download-f-blas-lapack=1 --download-hypre=1 "make all" worked fine, but "make test" said: --------------Error detected during compile or link!----------------------- [...] /home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/bin/mpif90 -O -o ex5f ex5f.o -Wl,-rpath,/home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/lib -L/home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/lib -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lX11 -Wl,-rpath,/home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/lib -L/home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/lib -lHYPRE -lmpichcxx -lstdc++ -lflapack -lfblas -lnsl -laio -lrt -L/home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2 -L/usr/lib64 -L/lib64 -L/usr/x86_64-suse-linux/lib -ldl -lmpich -lpthread -lrt -lgcc_s -lmpichf90 -L/usr/local/linux/intel/fc_81_ia32/lib -L/usr/local/qwt/lib -L/home/vsl184/a/svendm/workdir/plot_on_runtime/lib -Wl,-rpath,/usr/local/sun/sunstudio12/lib/amd64:/opt/sun/sunstudio12/lib/amd64:/usr/local/sun/lib/rtlibs/amd64:/opt/sun/lib/rtlibs/amd64 -L/usr/local/sun/sunstudio12/lib/amd64 -L/usr/local/sun/sunstudio12/rtlibs/amd64 -L/usr/local/sun/sunstudio12/prod/lib/amd64 -lfui -lfai -lfsu -lmtsk -lm -Wl,-rpath,/usr/local/sun/sunstudio12/prod/lib/amd64 -lc_supp -lmpichcxx -lstdc++ -lmpichcxx -lstdc++ -ldl -lmpich -lpthread -lrt -lgcc_s -ldl sunf90: Warning: Option -Wl,-rpath,/home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/lib passed to ld, if ld is invoked, ignored otherwise [...] /usr/bin/ld: unrecognized option '-Wl,-rpath,/home/vsl184/tmp/petsc/petsc-3.0.0-p3/sunf90-optim/lib' /usr/bin/ld: use the --help option for usage information This is on an Opteron machine running Opensuse 10.2. I get the same message on a Centrino laptop running Opensuse 11.1. I can use gfortran, but I would also like to try sunf90, because in some cases, sunf90 has produced faster-running code (i.e., when not using PETSc). Thanks, -- Svend Tollak Munkejord
