[Pw_forum] compile error on AIX 5.2 for Hitachi SR11000

Dr. Shu-jun Hu hushujun at mail.sdu.edu.cn
Wed Feb 25 11:32:39 CET 2009


Dear All,

I want to compile the QE-4.0.3 code on the Hitachi SR11000 system, and however get
the error information:

_________________________________________________________
checking build system type... powerpc-ibm-aix5.2
checking architecture... aix
checking for Fortran 77 compiler default output file name... a.out
checking whether the Fortran 77 compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f90 accepts -g... yes
checking for mpif90... mpif90
checking whether we are using the GNU Fortran 77 compiler... no
checking whether mpif90 accepts -g... yes
setting F90... f90
setting MPIF90... mpif90
checking whether we are using the GNU C compiler... no
checking whether mpCC_r accepts -g... yes
checking for mpCC_r option to accept ANSI C... none needed
setting CC... mpCC_r
checking how to run the C preprocessor... mpCC_r -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int *... yes
checking size of int *... 4
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... yes
checking for f90... f90
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f90 accepts -g... yes
setting F77... f90
using F90... f90
setting FFLAGS... -Os -64 -precexp=4 -nompi -noparallel -qfree=f90 -cpp
setting F90FLAGS... $(FFLAGS)
setting FFLAGS_NOOPT... -O0
setting CFLAGS... -O3
setting CPP... cpp
setting CPPFLAGS... -P -traditional
setting LD... mpif90
setting LDFLAGS...
setting AR... ar
setting ARFLAGS... -X64 ruv
setting ARFLAGS_DYNAMIC...-X64 ruv
checking whether make sets $(MAKE)... yes
checking whether Fortran files must be preprocessed... yes
checking how to get verbose linking output from f90... -###
checking for Fortran libraries of f90...  -L/opt/hitachi/matmpp/lib
-L/opt/hitachi/MSL2/lib -l/tmp/.200902251913551638458F90/conftest/conftest.L
-L/opt/ofort90/lib -lhf90vecmath -lhf90math -lf90 -lfiexpmpi
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.
_________________________________________________________


As I trace the config.log, the following information tells me the souce of the
error may be the link of libs:

_________________________________________________________
configure:5050: mpCC_r -o conftest -g   conftest.c   -L/opt/hitachi/matmpp/lib
-L/opt/hitachi/MSL2/lib -l/tmp/.200902251913551638458F90/conftest/conftest.L
-L/opt/ofort90/lib -lhf90vecmath -lhf90math -lf90 -lfiexpmpi >&5
ld: 0706-006 Cannot find or open library file: -l
/tmp/.200902251913551638458F90/conftest/conftest.L
        ld:open(): No such file or directory
configure:5056: $? = 255
configure: failed program was:
...
_________________________________________________________

The path:

 -l/tmp/.200902251913551638458F90/conftest/conftest.L

is suspicious. How can I solve such problem?

Any reply is appreciated.

Best

Shujun












More information about the users mailing list