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