[FLASH-USERS] Error while trying to compile FLASH: command option NXB=8 contains an incorrect subargument

Christoper Daley cdaley at flash.uchicago.edu
Mon May 31 16:42:26 EDT 2010


Hi Huong,

You should use sites/intrepid.alcf.anl.gov/Makefile.h as a
starting point and then customize it for your needs.  It has the
following line to specify macro definitions for XLF compiler:
MDEFS= -WF,.

Chris

On 31/05/10 15:04, huong luu wrote:
> Hi Chris,
>
> Thanks for your reply. I am using mpif90 wrappers. I change to another 
> MPICH and this time, I think it calls to XL compiler (xlf90) and I 
> still have the same error:
> -----------------------------------------------------------------
> [luu1 at turing-2 object]$ gmake
> Calculating dependencies
> ./setup_depends.py --generateINTERMEDIATElines -c -O2 -fdefault-real-8 
> -fdefault-double-8 -ffree-line-length-none   -I /usr/include 
> -DH5_USE_16_API -O2  -c -std=c99 -Wno-long-long -O 
> -fomit-frame-pointer -finline-functions *.f *.f90 *.F90 *.F
> ./setup_addcdepends.py -I /usr/include -DH5_USE_16_API -O2  -c 
> -std=c99 -Wno-long-long -O -fomit-frame-pointer -finline-functions *.c
> rm -f reorder.sh
> /opt/mpich-mx-gcc-32/bin/mpif90  -c -O2 -fdefault-real-8 
> -fdefault-double-8 -ffree-line-length-none   -DMAXBLOCKS=1000 -DNXB=8 
> -DNYB=8 -DNZB=1 -DN_DIM=2 ut_interpolationInterface.F90
> /opt/ibmcmp/xlf/11.1/bin/xlf90_r: 1501-274 (W) An incompatible level 
> of gcc has been specified.
> /opt/ibmcmp/xlf/11.1/bin/xlf90_r: 1501-214 (W) command option M 
> reserved for future use - ignored
> /opt/ibmcmp/xlf/11.1/bin/xlf90_r: 1501-210 (S) command option NXB=8 
> contains an incorrect subargument
> gmake: *** [ut_interpolationInterface.o] Error 40
> ---------------------------------------------------
>
> I am not sure where I should add those macro definitions. Could you 
> please explain it more clearly to me?
>
> Thanks a lot.
> BTW, here's my Makefile:
>
> # FLASH makefile definitions for ix86-64 Linux (gfortran compiler)
>
> #----------------------------------------------------------------------------
> # Set the HDF/HDF5 library paths -- these need to be updated for your 
> system
> #----------------------------------------------------------------------------
> HDF5_PATH = /usr
> MPI_PATH = /opt/mpich-mx-gcc-32
> ZLIB_PATH  =
>
> PAPI_PATH  =
> PAPI_FLAGS =
>
> NCMPI_PATH =
> MPE_PATH   =
>
> #----------------------------------------------------------------------------
> # Compiler and linker commands
> #
> #   Use the MPICH wrappers around the compilers -- these will 
> automatically
> #   load the proper libraries and include files.  Version of MPICH prior
> #   to 1.2.2 (?) do not recognize .F90 as a valid Fortran file extension.
> #   You need to edit mpif90 and add .F90 to the test of filename 
> extensions,
> #   or upgrade your MPICH.
> #----------------------------------------------------------------------------
> FCOMP   = ${MPI_PATH}/bin/mpif90
> CCOMP   = ${MPI_PATH}/bin/mpicc
> CPPCOMP = ${MPI_PATH}/bin/mpic++
> LINK    = ${MPI_PATH}/bin/mpif90
>
> # pre-processor flag
> PP      = -D
>
> #----------------------------------------------------------------------------
> # Compilation flags
> #
> #  Three sets of compilation/linking flags are defined: one for optimized
> #  code, one for testing, and one for debugging.  The default is to 
> use the
> #  _OPT version.  Specifying -debug to setup will pick the _DEBUG version,
> #  these should enable bounds checking.  Specifying _TEST is used for
> #  flash_test, and is set for quick code generation, and (sometimes)
> #  profiling.  The Makefile generated by setup will assign the generic 
> token
> #  (ex. FFLAGS) to the proper set of flags (ex. FFLAGS_OPT).
> #----------------------------------------------------------------------------
>
> FFLAGS_OPT = -c -O2 -fdefault-real-8 -fdefault-double-8 
> -ffree-line-length-none
> FFLAGS_DEBUG = -g -c -fdefault-real-8 -fdefault-double-8 
> -ffree-line-length-none
> FFLAGS_TEST = -c -fdefault-real-8 -fdefault-double-8 
> -ffree-line-length-none
>
> F90FLAGS =
>
> CFLAGS_OPT = -O2  -c -std=c99 -Wno-long-long -O -fomit-frame-pointer 
> -finline-functions
> CFLAGS_DEBUG = -g -c
> CFLAGS_TEST = -c
>
> # if we are using HDF5, we need to specify the path to the include files
> CFLAGS_HDF5 = -I ${HDF5_PATH}/include -DH5_USE_16_API
> #----------------------------------------------------------------------------
> # Linker flags
> #
> #  There is a seperate version of the linker flags for each of the _OPT,
> #  _DEBUG, and _TEST cases.
> #----------------------------------------------------------------------------
>
> LFLAGS_OPT   =  -o
> LFLAGS_DEBUG =  -g -o
> LFLAGS_TEST  = -o
>
>
> #----------------------------------------------------------------------------
> # Library specific linking
> #
> #  If a FLASH module has a 'LIBRARY xxx' line in its Config file, we 
> need to
> #  create a macro in this Makefile.h for LIB_xxx, which will be added 
> to the
> #  link line when FLASH is built.  This allows us to switch between 
> different
> #  (incompatible) libraries.  We also create a _OPT, _DEBUG, and _TEST
> #  library macro to add any performance-minded libraries (like fast math),
> #  depending on how FLASH was setup.
> #----------------------------------------------------------------------------
>
> LIB_OPT   =
> LIB_DEBUG =
> LIB_TEST  =
>
> LIB_HDF5  = -L ${HDF5_PATH}/lib -lhdf5 -lz -Wl,-R/usr/lib
>
> LIB_PAPI  =
> LIB_MATH  = -ldfftw -ldrfftw
>
> LIB_MPI   =
> #-L ${MPI_PATH}/lib -lfmpich -lmpich
> LIB_NCMPI =
> #-L $(NCMPI_PATH)/lib -lpnetcdf
> LIB_MPE   =
>
> #----------------------------------------------------------------------------
> # Additional machine-dependent object files
> #
> #  Add any machine specific files here -- they will be compiled and linked
> #  when FLASH is built.
> #----------------------------------------------------------------------------
>
> MACHOBJ =
>
>
> #----------------------------------------------------------------------------
> # Additional commands
> #----------------------------------------------------------------------------
>
> MV = mv -f
> AR = ar -r
> RM = rm -f
> CD = cd
> RL = ranlib
> ECHO = echo
>
>
> On Mon, May 31, 2010 at 2:40 PM, Christoper Daley 
> <cdaley at flash.uchicago.edu <mailto:cdaley at flash.uchicago.edu>> wrote:
>
>     Hi Huong,
>
>     I think you may be using the wrong compiler options.  Which compiler
>     are you using?  If you are using an XL compiler you must specify macro
>     definitions using -WF,-D.
>
>     Chris
>
>
>
>     On 31/05/10 13:17, huong luu wrote:
>
>         Hi,
>
>         I was trying to compile FLASH on my system. I had a SUCCESS
>         for ./setup *** -auto but when I do a gmake then I got this error:
>
>         [luu1 at turing-4 object]$ gmake
>         Calculating dependencies
>         ./setup_depends.py --generateINTERMEDIATElines -c -O2
>         -fdefault-real-8 -fdefault-double-8 -ffree-line-length-none
>          -I /usr/include -DH5_USE_16_API -O2  -c -std=c99
>         -Wno-long-long -O -fomit-frame-pointer -finline-functions *.f
>         *.f90 *.F90 *.F
>         ./setup_addcdepends.py -I /usr/include -DH5_USE_16_API -O2  -c
>         -std=c99 -Wno-long-long -O -fomit-frame-pointer
>         -finline-functions *.c
>         rm -f reorder.sh
>         /turing/home/luu1/install/mpich/bin/mpif90 -c -O2
>         -fdefault-real-8 -fdefault-double-8 -ffree-line-length-none
>          -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2
>         ut_interpolationInterface.F90
>         f90: 1501-274 (W) An incompatible level of gcc has been specified.
>         f90: 1501-214 (W) command option M reserved for future use -
>         ignored
>         f90: 1501-210 (S) command option NXB=8 contains an incorrect
>         subargument
>         gmake: *** [ut_interpolationInterface.o] Error 40
>
>         Since the command option NXB=8 is automatically generated, I
>         don't know how to fix it. I was being able to run FLASH on
>         another machine and am trying to repeat it here. I changed the
>         path accordingly to the new machine. So I don't know why I
>         have this error.
>
>         Any suggestion?
>
>         Thanks in advance,
>         Huong
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20100531/5dfa7f5b/attachment.htm>


More information about the flash-users mailing list