I now get the following warning messages: cp -f ..//lib/modules/an_header.f90 an_header.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include an_header.f90 rm -f an_header.f90 cp -f ..//lib/charutils.f90 charutils.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include charutils.f90 rm -f charutils.f90 cp -f ..//lib/dateutils.f90 dateutils.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include dateutils.f90 rm -f dateutils.f90 gcc -c -O2 -DPC_LINUX1 -I..//include ..//lib/dted.c ..//lib/dted.c: In function ‘readdted1_’: ..//lib/dted.c:230: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result ..//lib/dted.c:249: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result gcc -c -O2 -DPC_LINUX1 -I..//include ..//eff/eenviron.c ..//eff/eenviron.c: In function ‘fegetenv_’: ..//eff/eenviron.c:144: warning: incompatible implicit declaration of built-in function ‘exit’ cp -f ..//lib/error_mess.f90 error_mess.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include error_mess.f90 rm -f error_mess.f90 cp -f ..//lib/filelist.F90 filelist.F90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include -DPC_LINUX1 filelist.F90 f951: warning: command line option "-FR" is valid for C/C++/ObjC/ObjC++ but not for Fortran rm -f filelist.F90 cp -f ..//lib/getvar.f90 getvar.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include getvar.f90 rm -f getvar.f90 cp -f ..//lib/htint-opt.f90 htint-opt.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include htint-opt.f90 rm -f htint-opt.f90 cp -f ..//lib/interp_lib.f90 interp_lib.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include interp_lib.f90 rm -f interp_lib.f90 cp -f ..//lib/map_proj.f90 map_proj.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include map_proj.f90 rm -f map_proj.f90 cp -f ..//lib/numutils.f90 numutils.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include numutils.f90 rm -f numutils.f90 gcc -c -O2 -DPC_LINUX1 -I..//include ..//lib/parlib.c cp -f ..//lib/polarst.f90 polarst.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include polarst.f90 rm -f polarst.f90 cp -f ..//lib/rsys.F90 rsys.F90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include -DPC_LINUX1 rsys.F90 f951: warning: command line option "-FR" is valid for C/C++/ObjC/ObjC++ but not for Fortran rm -f rsys.F90 cp -f ..//lib/therm_lib.f90 therm_lib.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include therm_lib.f90 rm -f therm_lib.f90 gcc -c -O2 -DPC_LINUX1 -I..//include ..//lib/tmpname.c ..//lib/tmpname.c: In function ‘form_tmpname_’: ..//lib/tmpname.c:29: warning: incompatible implicit declaration of built-in function ‘strlen’ gcc -c -O2 -DPC_LINUX1 -I..//include ..//lib/utils_c.c ..//lib/utils_c.c: In function ‘rams_c_read_’: ..//lib/utils_c.c:169: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result ..//lib/utils_c.c: In function ‘rams_c_read_char_’: ..//lib/utils_c.c:181: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result ..//lib/utils_c.c: In function ‘vfirecr_’: ..//lib/utils_c.c:213: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result ..//lib/utils_c.c:217: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result cp -f ..//lib/utils_f.f90 utils_f.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include utils_f.f90 rm -f utils_f.f90 cp -f ..//lib/vformat.f90 vformat.f90 gfortran -c -FR -O2 -fconvert=big-endian -g -I..//include vformat.f90 rm -f vformat.f90 ar rs /media/WRFDisk/WRF3.2/WRFV3/Prep_sources_chem_cptec_wrf/utils/bin//libutils-2.0-opt.a an_header.o charutils.o dateutils.o dted.o eenviron.o error_mess.o filelist.o getvar.o htint-opt.o interp_lib.o map_proj.o numutils.o parlib.o polarst.o rsys.o therm_lib.o tmpname.o utils_c.o utils_f.o vformat.o ar: creating /media/WRFDisk/WRF3.2/WRFV3/Prep_sources_chem_cptec_wrf/utils/bin//libutils-2.0-opt.a
Finished building === /media/WRFDisk/WRF3.2/WRFV3/Prep_sources_chem_cptec_wrf/utils/bin//libutils-2.0-opt.a How should I go about fixing these error/warming messages? -Jason On Fri, Nov 19, 2010 at 8:25 AM, Chanoch (Ken) Bloom <[email protected]>wrote: > On Fri, 2010-11-19 at 08:11 -0800, Jason Snyder wrote: > > I found this program this bit of code that I need to use when running > > a part of the WRF model: > > > > #----------------- LINUX INTEL FORTRAN-95 Compiler/GCC --------- > > CMACH=PC_LINUX1 > > F_COMP=gfortran > > C_COMP=gcc > > LOADER=gfortran > > C_LOADER=gcc > > LIBS= > > MOD_EXT=mod > > #Compiler options > > F_OPTS=-FR -O2 -convert big_endian $(NCDF_LIBS) -g > > C_OPTS=-O2 > > LOADER_OPTS= > > C_LOADER_OPTS=-v > > #----------------------------------------------------------------- > > > > I have both the gfortran and gcc compilers on my computer but when I > > run this code I get the following error message: > > > > cp -f ..//lib/modules/an_header.f90 an_header.f90 > > gfortran -c -FR -O2 -convert big_endian -g -I..//include > > an_header.f90 > > gfortran: big_endian: No such file or directory > > gfortran: unrecognized option '-convert' > > make: *** [an_header.o] Error 1 > > > > I evidently need the command F_OPTS=-FR -O2 -convert big_endian > > $(NCDF_LIBS) -g to make the rest of the programs for this model > > including the prep_chem_sources to run properly so I am not sure how > > to resolve this program. Is it something having to do with the netcdf > > libraries that i have to add? (ncdf_libs is netcdf?). > > > > Anyway, let me know how to resolve this issue. > > Replace "-convert big_endian" with "-fconvert=big-endian" > _______________________________________________ > vox-tech mailing list > [email protected] > http://lists.lugod.org/mailman/listinfo/vox-tech >
_______________________________________________ vox-tech mailing list [email protected] http://lists.lugod.org/mailman/listinfo/vox-tech
