<div dir="ltr"><div><br></div>Hi Dmitry, Bakirov,<div><br></div><div>what you are likely asking for is not about the configure vs cmake debate;</div><div>I'd rather hint towards scripted mechanisms for building scientific software, fi. EasyBuild's esyconfigs:</div>
<div><a href="https://github.com/hpcugent/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/w/WRF/WRF-3.5.1-ictce-5.3.0-dmpar.eb">https://github.com/hpcugent/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/w/WRF/WRF-3.5.1-ictce-5.3.0-dmpar.eb</a><br>
</div><div><br></div><div>What you just described can be handled via a `maxparallel=1` directive.</div><div>(and interestingly, sometimes this kind of failure modes can be filesystem-specific, ie. site-specific)</div><div>
<br></div><div>best,</div><div>Fotis</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 12, 2014 at 5:18 PM, Dmitry N. Mikushin <span dir="ltr"><<a href="mailto:maemarcus@gmail.com" target="_blank">maemarcus@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I ran into this some time ago. Instead of endlessly fixing that,<br>
someone should rewrite WRF's build system from a buggy makefile into<br>
something modern, e.g. CMake. Particularly CMake would also make the<br>
Windows users happy.<br>
<br>
- D.<br>
<br>
2014-03-12 16:22 GMT+04:00 Бакиров, Медер <<a href="mailto:bakirov@almetico.com">bakirov@almetico.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Dear Sirs!<br>
><br>
> There are build errors, when running compile in parallel (where N>1 in<br>
> 'compile -j N'), with 'compile -j 1' everything is fine. Is it<br>
> sufficient to report this as a bug in this list?<br>
><br>
> I have a RHEL 6.5 x86_64.<br>
> ifort v14.0.2.144 Build 20140120<br>
> WRF 3.5.1<br>
> NetCDF 3.6.3<br>
><br>
> Error message:<br>
> --------------------------------------<br>
> ( cd main ; make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm<br>
> -I/opt/WRFV3/external/esmf_time_f90 -I/opt/WRFV3/main<br>
> -I/opt/WRFV3/external/io_netcdf -I/opt/WRFV3/external/io_int<br>
> -I/opt/WRFV3/frame -I/opt/WRFV3/share -I/opt/WRFV3/phys -I<br>
> /opt/WRFV3/chem -I/opt/WRFV3/inc -I/opt/netcdf-3.6.3//include<br>
> -I/opt/intel/composer_xe_2013_sp1.2.144/mkl/include<br>
> -I/opt/intel/composer_xe_2013_sp1.2.144/compiler/include " SOLVER=em<br>
> IDEAL_CASE=real em_real )<br>
> make[1]: Entering directory `/opt/WRFV3/main'<br>
> rm -f ../dyn_em/module_initialize_real.o<br>
> /lib/cpp -C -P -I/opt/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0<br>
> -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0<br>
> -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4<br>
> -DNONSTANDARD_SYSTEM_FUNC -DWRF_USE_CLM -DNETCDF -DUSE_ALLOCATA<br>
> BLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536<br>
> -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional<br>
> -D_OPENMP ../dyn_em/module_initialize_real.F ><br>
> ../dyn_em/<a href="http://module_initialize_real.bb" target="_blank">module_initialize_real.bb</a><br>
> rm -f real_em.o<br>
> /lib/cpp -C -P -I/opt/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0<br>
> -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0<br>
> -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4<br>
> -DNONSTANDARD_SYSTEM_FUNC -DWRF_USE_CLM -DNETCDF -DUSE_ALLOCATA<br>
> BLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536<br>
> -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional<br>
> -D_OPENMP real_em.F > <a href="http://real_em.bb" target="_blank">real_em.bb</a><br>
> /opt/WRFV3/tools/standard.exe <a href="http://real_em.bb" target="_blank">real_em.bb</a> | /lib/cpp -C -P > real_em.f90<br>
> /opt/WRFV3/tools/standard.exe ../dyn_em/<a href="http://module_initialize_real.bb" target="_blank">module_initialize_real.bb</a> |<br>
> /lib/cpp -C -P > ../dyn_em/module_initialize_real.f90<br>
> rm -f real_em.b <a href="http://real_em.bb" target="_blank">real_em.bb</a><br>
> ifort -o real_em.o -c -O3 -ip -w -ftz -align all -fno-alias -FR<br>
> -convert big_endian -xHost -fp-model fast=2 -no-heap-arrays<br>
> -no-prec-div -no-prec-sqrt -fno-common -static-intel -openmp -fpp<br>
> -auto -I../dyn_em -I../dyn_nmm -I/opt/WRFV3/<br>
> external/esmf_time_f90 -I/opt/WRFV3/main<br>
> -I/opt/WRFV3/external/io_netcdf -I/opt/WRFV3/external/io_int<br>
> -I/opt/WRFV3/frame -I/opt/WRFV3/share -I/opt/WRFV3/phys<br>
> -I/opt/WRFV3/chem -I/opt/WRFV3/inc -I/opt/netcdf-3.6.3//include<br>
> -I/opt/intel/c<br>
> omposer_xe_2013_sp1.2.144/mkl/include<br>
> -I/opt/intel/composer_xe_2013_sp1.2.144/compiler/include -i4<br>
> real_em.f90<br>
> ifort: command line remark #10382: option '-xHOST' setting '-xAVX'<br>
> rm -f ../dyn_em/module_initialize_real.b ../dyn_em/<a href="http://module_initialize_real.bb" target="_blank">module_initialize_real.bb</a><br>
> ifort -o ../dyn_em/module_initialize_real.o -c -O3 -ip -w -ftz -align<br>
> all -fno-alias -FR -convert big_endian -xHost -fp-model fast=2<br>
> -no-heap-arrays -no-prec-div -no-prec-sqrt -fno-common -static-intel<br>
> -openmp -fpp -auto -I../dyn_em -I.<br>
> ./dyn_nmm -I/opt/WRFV3/external/esmf_time_f90 -I/opt/WRFV3/main<br>
> -I/opt/WRFV3/external/io_netcdf -I/opt/WRFV3/external/io_int<br>
> -I/opt/WRFV3/frame -I/opt/WRFV3/share -I/opt/WRFV3/phys<br>
> -I/opt/WRFV3/chem -I/opt/WRFV3/inc -I/opt/netcdf-3.6.<br>
> 3//include -I/opt/intel/composer_xe_2013_sp1.2.144/mkl/include<br>
> -I/opt/intel/composer_xe_2013_sp1.2.144/compiler/include -i4<br>
> ../dyn_em/module_initialize_real.f90<br>
> ifort: command line remark #10382: option '-xHOST' setting '-xAVX'<br>
> real_em.f90(12): error #7002: Error in opening the compiled module<br>
> file. Check INCLUDE paths. [MODULE_INITIALIZE_REAL]<br>
> USE module_initialize_real, ONLY : wrfu_initialize, find_my_parent,<br>
> find_my_parent2<br>
> -------^<br>
> real_em.f90(91): error #6632: Keyword arguments are invalid without an<br>
> explicit interface. [DEFAULTCALKIND]<br>
> CALL WRFU_Initialize( defaultCalKind=WRFU_CAL_GREGORIAN, rc=rc )<br>
> -------------------------^<br>
> real_em.f90(91): error #6632: Keyword arguments are invalid without an<br>
> explicit interface. [RC]<br>
> CALL WRFU_Initialize( defaultCalKind=WRFU_CAL_GREGORIAN, rc=rc )<br>
> ------------------------------------------------------------^<br>
> real_em.f90(12): error #6580: Name in only-list does not exist.<br>
> [WRFU_INITIALIZE]<br>
> USE module_initialize_real, ONLY : wrfu_initialize, find_my_parent,<br>
> find_my_parent2<br>
> --------------------------------------^<br>
> real_em.f90(12): error #6580: Name in only-list does not exist.<br>
> [FIND_MY_PARENT]<br>
> USE module_initialize_real, ONLY : wrfu_initialize, find_my_parent,<br>
> find_my_parent2<br>
> -------------------------------------------------------^<br>
> real_em.f90(12): error #6580: Name in only-list does not exist.<br>
> [FIND_MY_PARENT2]<br>
> USE module_initialize_real, ONLY : wrfu_initialize, find_my_parent,<br>
> find_my_parent2<br>
> -----------------------------------------------------------------------^<br>
> real_em.f90(258): error #7002: Error in opening the compiled module<br>
> file. Check INCLUDE paths. [MODULE_INITIALIZE_REAL]<br>
> USE module_initialize_real<br>
> -------^<br>
> real_em.f90(340): error #6404: This name does not have a type, and<br>
> must have an explicit type. [INTERNAL_TIME_LOOP]<br>
> internal_time_loop = loop<br>
> ------^<br>
> compilation aborted for real_em.f90 (code 1)<br>
> make[1]: [real_em.o] Error 1 (ignored)<br>
> --------------------------------------<br>
><br>
> With the best regards,<br>
> Meder Bakirov<br>
> _______________________________________________<br>
> Wrf-users mailing list<br>
> <a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
_______________________________________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-family:monospace;border-collapse:separate;color:rgb(0,0,0);font-size:medium">-- <br>echo "sysadmin know better bash than english"|sed s/min/mins/ \<br>
| sed 's/better bash/bash better/' # Yelling in a CERN forum<br><br></span></div>
</div>