[Pw_forum] intel mac --- compilation

Francesco Ciucci frank at caltech.edu
Sat Nov 25 10:19:09 CET 2006


Hi all,
I am trying to build QuantumEspresso 3.1.1 on my MacBook (the little  
white one).

I have as fortran compilers: g77, f2c and gfortran.

I run configure as follows:

./configure F77=g77 MPIF90=gfortran CC=gcc F90=gfortran BLAS_LIBS="- 
framework accelerate" LAPACK_LIBS=" " CFLAGS=-O3

and I get at the end "configure: success".

Although, when I run "sudo make all" I get what I reported in PS  
(sorry it's lengthy).

Could anyone help me out?

Thank you,
Fra

P.S.
test -d bin || mkdir bin
if test -d iotk ; then \
( cd iotk ; if test "make" = "" ; then make  TLDEPS= libiotk.a ; \
else make  TLDEPS= libiotk.a ; fi ) ; fi
cd src ; make libiotk.a
cpp -P -traditional -D__FFTW -D__USE_INTERNAL_FFTW -I../include   
iotk_base.f90 -o iotk_base.F90


! Input/Output Tool Kit (IOTK)
! Copyright (C) 2004,2005 Giovanni Bussi
!
! This library is free software; you can redistribute it and/or
! modify it under the terms of the GNU Lesser General Public
! License as published by the Free Software Foundation; either
! version 2.1 of the License, or (at your option) any later version.
!
! This library is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
! Lesser General Public License for more details.
!
! You should have received a copy of the GNU Lesser General Public
! License along with this library; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA   
02111-1307  USA

!----------------------------------------------------------------------- 
-------!
! Inclusion of configuration file
! Input/Output Tool Kit (IOTK)
! Copyright (C) 2004 Giovanni Bussi
!
! This library is free software; you can redistribute it and/or
! modify it under the terms of the GNU Lesser General Public
! License as published by the Free Software Foundation; either
! version 2.1 of the License, or (at your option) any later version.
!
! This library is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
! Lesser General Public License for more details.
!
! You should have received a copy of the GNU Lesser General Public
! License along with this library; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA   
02111-1307  USA
!
!----------------------------------------------------------------------- 
-------!
! CONFIGURATION FILE FOR IOTK 1.0.1
!----------------------------------------------------------------------- 
-------!
! The following lines map some commonly defined system macro to the  
internal
! iotk macros.
! Iotk macros which are not defined take their default values.
! See the manual for a list of iotk macros.


! Generic options valid for quantum-espresso
! QE uses ranks up to four and default integer/logicals only


! some compilers do not like the following
!    #define __IOTK_REAL1 selected_real_kind(6,30)
!    #define __IOTK_REAL2 selected_real_kind(14,200)
! so we use explicit kinds
! Machine-dependent options
! Only for compilers that require some special tricks





!----------------------------------------------------------------------- 
-------!


!----------------------------------------------------------------------- 
-------!
! Inclusion of the auxiliary macros


! The macros are defined with -D option or inside iotk_config.h
! The default values are set here
! Maximum rank of an array
! Minimum value used in iotk_free_unit
! Maximum value used in iotk_free_unit
! Unit for errors
! Kind for header in binary files
! Character (or eventually string) for newline
! It may be adjusted for particular systems
! Unix    achar(10)
! Mac-OS  achar(13)
! Windows ? (now it should be a single byte)
! Character for EOS
! These are the default kinds, which depend on the options used
! during the library compilation
! Only default characters are implemented
! For logical, integer and real types, the c precompiler
! looks for defined kinds. If no kind is found, the default
! is used as __IOTK_type1

! Some useful check follow

! Complex are treated indentically to reals
! These lines map the definitions.

!----------------------------------------------------------------------- 
-------!

module iotk_base
implicit none
save

!----------------------------------------------------------------------- 
-------!
! In this module, all names are public
! For this reason, it should not be used directly by the end user.
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Version strings and integer constants
character(5),      parameter :: iotk_version            = "1.0.1"
integer,                            parameter ::  
iotk_version_major      = 1
integer,                            parameter ::  
iotk_version_minor      = 0
integer,                            parameter ::  
iotk_version_patch      = 1
character(3), parameter :: iotk_file_version       = "1.0"
integer,                            parameter ::  
iotk_file_version_major = 1
integer,                            parameter ::  
iotk_file_version_minor = 0
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Special characters
character, parameter :: iotk_newline = achar(10)
character, parameter :: iotk_eos     = achar(0)
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Max number of controls
integer, parameter :: iotk_ncontrol = 255 ! (2**8-1)
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Max lengths for strings
integer, parameter :: iotk_taglenx =  65535 ! (2**16-1)
integer, parameter :: iotk_namlenx =  256
integer, parameter :: iotk_attlenx =  iotk_taglenx - iotk_namlenx -  
1 ! for space
integer, parameter :: iotk_vallenx =  32768
integer, parameter :: iotk_linlenx =  4096
integer, parameter :: iotk_fillenx =  1024
integer, parameter :: iotk_linlen  =  128
integer, parameter :: iotk_indent  =    2
integer, parameter :: iotk_maxindent = 12
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Kind for the header integer (number of digits in (iotk_ncontrol+1)* 
(iotk_taglenx+1))
integer, parameter :: iotk_header_kind = selected_int_kind(8)
!----------------------------------------------------------------------- 
-------!

! The following options can be modified runtime

!----------------------------------------------------------------------- 
-------!
! Margins for unit search
integer :: iotk_unitmin = 90000
integer :: iotk_unitmax = 99999
integer :: iotk_error_unit = 0
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Size of the buffer for iotk_getline
! (it is intended for efficiency; the total length of a line should  
be <= iotk_linlenx)
integer :: iotk_getline_buffer = 1024
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! If true, exhausting the error pool causes an overflow warning
logical :: iotk_error_warn_overflow = .false.
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Map of controls into XML tags
! control = 1 <       >
! control = 2 </      >
! control = 3 <      />
! control = 4 <!--  -->
! control = 5 <?     ?>
! control = 128 is a special tag for binary files (continuation tag)
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Alphabet
character(26), parameter :: lowalphabet = "abcdefghijklmnopqrstuvwxyz"
character(26), parameter :: upalphabet  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
character(52), parameter :: alphabet    = lowalphabet//upalphabet
character(53), parameter :: alphabet_   = alphabet//"_"
character(10), parameter :: numbers     = "0123456789"
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! List of characters which are not separators in a dat or attribute  
array
character(66), parameter :: not_separator = alphabet_//numbers//"+-."
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Rules for names
character(54), parameter :: iotk_namcharfirst = alphabet//"_:"
character(66), parameter :: iotk_namchar      = iotk_namcharfirst// 
numbers//".-"
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Default kinds, depending on compilers and compilation options for  
the library source
integer, parameter :: iotk_defkind_character = kind("a")
integer, parameter :: iotk_defkind_logical   = kind(.true.)
integer, parameter :: iotk_defkind_integer   = kind(1)
integer, parameter :: iotk_defkind_real      = kind(1.0)
integer, parameter :: iotk_defkind_complex   = kind(1.0)
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Maximum allowed rank
integer, parameter :: iotk_maxrank      = 4 ! Controlled by cpp
integer, parameter :: iotk_maxrank_hard = 4       ! Controlled by  
sprep preprocessing
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Internal type dealing with io units
type iotk_unit
   integer                     :: unit  ! fortran unit
   character(iotk_namlenx)     :: root  ! name of the root tag
   logical                     :: skip_root ! if true, root tag is  
not written automatically
   logical                     :: raw   ! if true, the file is raw data
   integer                     :: level ! the hierarchical level  
inside the file
   logical                     :: close_at_end ! if true, the file  
has to be fortran-closed when iotk_close_* is called
   type (iotk_unit),   pointer :: son    ! a pointer to the son in  
the multi-file model
   type (iotk_unit),   pointer :: parent ! a pointer to the parent in  
the multi-file model
   type (iotk_unit),   pointer :: next   ! a pointer to the next unit  
in the linked list
end type iotk_unit
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Special type used to force optional argument labelling.
type iotk_dummytype
   integer :: dummy
end type iotk_dummytype
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Linked list of iotk_unit objects
logical                   :: iotk_units_init = .false.
type (iotk_unit), pointer :: iotk_units
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Internal type dealing with error messages
type iotk_error
   character, pointer :: str(:)
end type iotk_error
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Max length of a line in the error message. Any longer line will be cut
integer, parameter :: iotk_error_linelength  = 120
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Maximum number of errors which can be handled at the same time
integer, parameter :: iotk_error_pool_size   = 100
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Static pool of errors
type(iotk_error) :: iotk_error_pool       (iotk_error_pool_size)
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! Flags concerning the error pool:
! If true, that element of the pool is in usage
logical          :: iotk_error_pool_used  (iotk_error_pool_size)  
= .false.
!----------------------------------------------------------------------- 
-------!

!----------------------------------------------------------------------- 
-------!
! These integers are set in increasing order to trace the order  
errors are raised
! They are then used to eliminate old errors if the user forgets to  
do that
integer          :: iotk_error_pool_order (iotk_error_pool_size) = 0
!----------------------------------------------------------------------- 
-------!

end module iotk_base
i686-apple-darwin8-gcc-4.0.1: c: No such file or directory
make[2]: *** [iotk_base.o] Error 1
make[1]: *** [libiotk.a] Error 2
make: *** [libiotk] Error 2




More information about the users mailing list