[FLASH-USERS] Fwd: Re: No flash3 Executable File Found
Stratos Boutloukos
stratos at uiuc.edu
Wed Aug 19 10:28:46 EDT 2009
Hey Gary,
In case you haven't figured out yourself by now, all you need to do
is modify the Makefile; that is where the executable is defined. In
the default Sedov Makefile the variable "EXE" is defined as "flash3"
but at the definition of the executable further down there is an "-o"
missing:
$(EXE) : .....
...... -o $(EXE).....
Most people probably changed that but didn't bother reporting. I
think other test Makefiles don't suffer from this.
Good luck
Stratos
On Aug 14, 2009, at 9:04 PM, Gary F Forjan wrote:
> Hi All
>
> Seyit was right. For some reason, gmake created a file called
> a.out in my object/ directory instead of flash3. I would
> appreciate it if someone could offer an explanation for why this
> happened so I can get the executable to be named flash3 when I run
> a new experiment. Anyway, I can work with FLASH3.2 now. Thanks
> for your help, Seyit.
>
> Best regards,
> Gary
>
> Gary Forjan
> Department of Computational and Data Sciences
> George Mason University, Fairfax, Va
> gforjan at gmu.edu
>
> From: Seyit Hocuk <seyit at astro.rug.nl>
> Date: August 13, 2009 6:50:15 AM EDT
> To: Gary F Forjan <gforjan at gmu.edu>
> Cc: flash-users at flash.uchicago.edu
> Subject: Re: [FLASH-USERS] No flash3 Executable File Found
>
>
> Hi Gary,
>
> I once had something weird as well a while ago. The executable was
> not flash3 but a.out or b.out.
>
> Check out if these files are there.
>
> Seyit
>
>
>
> Gary F Forjan wrote:
>> Hello all
>> Hope you are having an enjoyable summer. I recently downloaded
>> FLASH3.2 and installed it on our SGI ALTIX ICE cluster. I tried
>> to compile and run the Sedov explosion example as a test. After
>> running the setup script, I moved to the object/ directory and
>> typed gmake to build the executable (as described in the User's
>> Guide). I believe I have the correct compilers and library paths
>> set in my Makefile.h since it compiles all of the source code
>> files and I get a SUCCESS at the end of it. Actually the last
>> output lines are
>> ut_quadraticInterpol.o workspace.o -L /sw//lib -lhdf5 SUCCESS
>> gmake: warning: Clock skew detected. Your build may be incomplete.
>>
>>
>> But I cannot find the flash3 executable in the object/ directory -
>> as if the link step did not occur. I know I must be missing
>> something basic but would anyone have an idea as to what might
>> have happened. I have included my Makefile.h file below in case
>> it is of any help. I am using an mpi wrapper for both the Intel
>> fortran and cc compilers. I note that this makefile did work with
>> FLASH2.5 on the same system.
>>
>> Thank you for any comments or suggestions.
>>
>> Best regards,
>> Gary
>> Gary Forjan
>> Department of Computational and Data Sciences
>> George Mason University, Fairfax, Va
>> gforjan at gmu.edu
>>
>> ====================== MAKEFILE.H =============================
>>
>> # FLASH makefile definitions for ix86 Linux (Portland Group compiler)
>>
>> # note, in order to get pgprof to work properly, it was necessary
>> to # download a new version from ftp://ftp.pgroup.com/ that plays
>> nicely
>> # with GNOME.
>>
>> #--------------------------------------------------------------------
>> --------
>> # Set the HDF/HDF5 library paths -- these need to be updated for
>> your system
>> #--------------------------------------------------------------------
>> --------
>>
>> #HDF4_PATH = /usr/local/hdf4
>> HDF4_PATH =
>> #HDF5_PATH = /opt/HDF5-1.4.2-patch1-serial/
>> HDF5_PATH = /sw/
>>
>> 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 = mpif90
>> FCOMP = mpiifort
>> CCOMP = mpiicc
>> CPPCOMP = mpiiCC
>> #LINK = mpif90
>> LINK = mpiifort
>> # 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 -fast -r8 -i4 FFLAGS_OPT = -c -r8 -i4
>> FFLAGS_DEBUG = -g -c -Mbounds -r8 -i4 FFLAGS_TEST = -c -r8 -i4 -
>> fast -Mprof=lines
>>
>> F90FLAGS =
>>
>> CFLAGS_OPT = -O2 -c
>> 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
>>
>> CFLAGS_NCMPI =
>>
>> #--------------------------------------------------------------------
>> --------
>> # 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 = -Mprof=lines -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_HDF4 = -L $(HDF4_PATH)/lib -lmfhdf -ldf -ljpeg -lz
>> LIB_HDF4 = LIB_HDF5 = -L $(HDF5_PATH)/lib -lhdf5
>>
>> LIB_PAPI = LIB_MATH = -ldfftw -ldrfftw
>>
>> LIB_NCMPI =
>> 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
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20090819/054a79f6/attachment-0001.htm>
More information about the flash-users
mailing list