<div dir="ltr">Good day Flash3 users:<br><div class="gmail_quote"><div dir="ltr"><br>I have some compilation problems that I haven't been able to solve.<br><br>$ make, at the object directory and it displays:<br><i><br>
-L/mraosw/data1/krause/lib/mpich-1.2.4/lib <br>
/home/krause/dataw/lib/mpich-1.2.4/lib/libmpich.a(p4_secure.o)(.text+0x91): In function `start_slave'<br>:<br>: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared librarie<br>
s from the glibc version used for linking<br>/mraosw/data1/krause/lib/hdf/5-1.6.5-amd-icc/lib/libhdf5.a(H5FDstream.o)(.text+0x723): In function `H<br>5FD_stream_open_socket':<br>: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared lib<br>
raries from the glibc version used for linking<br>Grid_bcApplyToRegionSpecialized.o(.text+0x5ac): In function `grid_bcapplytoregionspecialized_':<br>: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_counter1_<br>
Grid_bcApplyToRegionSpecialized.o(.text+0x5c7): In function `grid_bcapplytoregionspecialized_':<br>: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_numepis_<br>Grid_bcApplyToRegionSpecialized.o(.text+0x5e2): In function `grid_bcapplytoregionspecialized_':<br>
: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_tinit_<br>Grid_bcApplyToRegionSpecialized.o(.text+0x5f0): In function `grid_bcapplytoregionspecialized_':<br>: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_tjet_<br>
Grid_bcApplyToRegionSpecialized.o(.text+0x600): In function `grid_bcapplytoregionspecialized_':<br>: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_counter1_<br>Grid_bcApplyToRegionSpecialized.o(.text+0x629): In function `grid_bcapplytoregionspecialized_':<br>
: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_counter1_<br>Grid_bcApplyToRegionSpecialized.o(.text+0x943): In function `grid_bcapplytoregionspecialized_':<br>: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_jetradius_<br>
Grid_bcApplyToRegionSpecialized.o(.text+0x9a1): In function `grid_bcapplytoregionspecialized_':<br>: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_jetvel_<br>Grid_bcApplyToRegionSpecialized.o(.text+0x9fc): In function `grid_bcapplytoregionspecialized_':<br>
: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_gamma_<br>Grid_bcApplyToRegionSpecialized.o(.text+0xa4b): In function `grid_bcapplytoregionspecialized_':<br>: relocation truncated to fit: R_X86_64_PC32 simulation_data_mp_sim_gamma_<br>
Grid_conserveField.o(.text+0xe): In function `grid_conservefield_':<br>: additional relocation overflows omitted from the output<br>/home/krause/dataw/lib/mpich-1.2.4/lib/libpmpich.a(getpname.o)(.text+0x1b): In function `PMPI_Get_pro<br>
cessor_name':<br>: undefined reference to `MPID_Node_name'<br>make: *** [flash3] Error 1</i><br><br><br><br>My make file (taken from my working flash2.5 for the same machine):<br><br><i>LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/mraosw/data1/krause/lib/hdf/szip2.0-amd-enc/lib<br>
#HDF4_PATH = /usr/local/hdf4<br>HDF5_PATH = /mraosw/data1/krause/lib/hdf/5-1.6.5-amd-icc<br>#hdf/hdf5-1.6.5/hdf5/<br>#PAPI_PATH = /usr/papi<br><br>#PAPI_FLAGS = -c -fast -I$(PAPI_PATH)/include<br><br>#----------------------------------------------------------------------------<br>
# Compiler and linker commands<br>#<br># Use the MPICH wrappers around the compilers -- these will automatically<br># load the proper libraries and include files. Version of MPICH prior<br># to 1.2.2 (?) do not recognize .F90 as a valid Fortran file extension.<br>
# You need to edit mpif90 and add .F90 to the test of filename extensions,<br># or upgrade your MPICH.<br>#----------------------------------------------------------------------------<br>FCOMP = /mraosw/data1/krause/lib/mpich-1.2.4/bin//mpif90<br>
CCOMP = /mraosw/data1/krause/lib/mpich-1.2.4/bin//mpicc<br>CPPCOMP = /mraosw/data1/krause/lib/mpich-1.2.4/bin//mpicc<br>LINK = /mraosw/data1/krause/lib/mpich-1.2.4/bin//mpif90 -static <br>#FCOMP = /mraosw/data1/krause/lib/mpich2-1.0.4p1/bin/mpif90<br>
#CCOMP = /mraosw/data1/krause/lib/mpich2-1.0.4p1/bin/mpicc<br>#CPPCOMP = /mraosw/data1/krause/lib/mpich2-1.0.4p1/bin/mpicc<br>#LINK = /mraosw/data1/krause/lib/mpich2-1.0.4p1/bin/mpif90 -static<br># pre-processor flag<br>
PP = -D<br><br>#----------------------------------------------------------------------------<br># Compilation flags<br>#<br># Three sets of compilation/linking flags are defined: one for optimized<br># code, one for testing, and one for debugging. The default is to use the<br>
# _OPT version. Specifying -debug to setup will pick the _DEBUG version,<br># these should enable bounds checking. Specifying _TEST is used for<br># flash_test, and is set for quick code generation, and (sometimes)<br>
# profiling. The Makefile generated by setup will assign the generic token<br># (ex. FFLAGS) to the proper set of flags (ex. FFLAGS_OPT).<br>#----------------------------------------------------------------------------<br>
<br>#FFLAGS_OPT = -c -fast -r8 -i4<br>#FFLAGS_DEBUG = -g -c -Mbounds -r8 -i4<br>#FFLAGS_TEST = -c -r8 -i4 -Mprof=lines<br>FFLAGS_OPT = -c -r8 -i4 -O3 -I/home/krause/mpich2-0.971/mpich2-install/include<br>FFLAGS_DEBUG = -g -c -Mbounds -double<br>
FFLAGS_TEST = -c -double -Mprof=lines<br><br>F90FLAGS = -w -v -mismatch -dusty<br><br><br># if we are using HDF5, we need to specify the path to the include files<br>CFLAGS_HDF5 = -I $(HDF5_PATH)/include<br><br>CFLAGS_OPT = -O3 -c<br>
CFLAGS_DEBUG = -g -c<br>CFLAGS_TEST = -c<br><br><br>#----------------------------------------------------------------------------<br># Linker flags<br>#<br># There is a seperate version of the linker flags for each of the _OPT,<br>
# _DEBUG, and _TEST cases.<br>#----------------------------------------------------------------------------<br><br>LFLAGS_OPT = -o<br>LFLAGS_DEBUG = -g -o<br>LFLAGS_TEST = -Mprof=lines -o<br><br><br>#----------------------------------------------------------------------------<br>
# Library specific linking<br>#<br># If a FLASH module has a 'LIBRARY xxx' line in its Config file, we need to<br># create a macro in this Makefile.h for LIB_xxx, which will be added to the<br># link line when FLASH is built. This allows us to switch between different<br>
# (incompatible) libraries. We also create a _OPT, _DEBUG, and _TEST<br># library macro to add any performance-minded libraries (like fast math),<br># depending on how FLASH was setup.<br>#----------------------------------------------------------------------------<br>
<br>#LIB_MPI = -L/mraosw/data1/krause/lib/mpich-1.2.4/lib<br>LIB_MPI = -L/mraosw/data1/krause/lib/mpich-1.2.6/lib<br>LIB_HDF4 = -L$(HDF4_PATH)/lib -lmfhdf -ldf -ljpeg -lz<br>LIB_HDF5 = -L$(HDF5_PATH)/lib -lhdf5 -lz -lhdf5_fortran<br>
# SZ with path to be included if v1.6.3 is used (not recommended)<br>#LIB_PAPI = $(PAPI_PATH)/lib/libpapi.a<br>LIB_MATH = -ldfftw -ldrfftw<br><br>#LIB_OPT = -L/home/krause/mpich2-0.971/mpich2-install/lib<br><br>LIB_DEBUG =<br>
LIB_TEST =<br><br><br>#----------------------------------------------------------------------------<br># Additional machine-dependent object files<br>#<br># Add any machine specific files here -- they will be compiled and linked<br>
# when FLASH is built.<br>#----------------------------------------------------------------------------<br><br>MACHOBJ =<br><br><br>#----------------------------------------------------------------------------<br># Additional commands<br>
#----------------------------------------------------------------------------<br><br>MV = mv -f<br>AR = ar -r<br>RM = rm -f<br>CD = cd<br>RL = ranlib<br>ECHO = echo<br></i><br>Do you have any hints?<br><br>Thank you.<br clear="all">
<br>-- <br> Martin Huarte-Espinosa<br> PhD Student, Astrophysics Group,<br> Physics Department, University of Cambridge<br> <a href="mailto:mh475@cam.ac.uk" target="_blank">mh475@cam.ac.uk</a><br>
</div>
</div>
</div>