[Wrf-users] WRF 3.2.1 compilation errors

Maria Prodanova Maria.Prodanova at meteo.bg
Thu Dec 16 06:19:30 MST 2010


Hi Feng,

I tried all but the result is the same. The compilation failed ( I 
received only wrf.exe and tr* ), not tc.exe, real.exe, nup.exe and 
ndown.exe. The reason is that this programs require obg.     
module_initialize_real.o but during compilation I have errors :

PGF90-S-0134-Illegal attribute - conflict with intent
(../dyn_em/module_initialize_real.f90: )

I didn't understand how I can change the program  
module_initialize_real.f to overcome this error. My opinion is that my 
version of PGI - 6.1 is the reason.

Really, as you see:

gcc: p7: No such file or directory
gcc: 32: No such file or directory
gcc: unrecognized option `-tp'
gcc: unrecognized option `-pc'
gcc: unrecognized option `-Mnoframe'
make[3]: [c_code.o] Error 1 (ignored)

But these options are ignored and also I have the same mesage in 
compilation of WRF 3.1.1, but the compilation is OK and I work with this 
version.

Thank you very much for your reply,
Maria


On 15.12.2010 ?. 18:49, Feng Liu wrote:
> Hi, Maria,
> Try to edit your configure.wrf file by changing
> CC              =       $(DM_CC) -DFSEEKO64_OK
> Into
> CC              =       $(DM_CC) -DFSEEKO64_OK -w -O3
>
> If it does not work then replace DM_CC with SCC and try to compile againg.
>
> The problem I think is related gcc compiler, please see the first error appearance in your compile.log file:
>
> make[3]: Entering directory `/home/cecip/WRF_3.2.1/WRFV3/external/RSL_LITE'
> mpicc -cc=gcc -DMPI2_SUPPORT -DFSEEKO64_OK   -DDM_PARALLEL -DMAX_HISTORY=25  -c c_code.c
> gcc: p7: No such file or directory
> gcc: 32: No such file or directory
> gcc: unrecognized option `-tp'
> gcc: unrecognized option `-pc'
> gcc: unrecognized option `-Mnoframe'
> make[3]: [c_code.o] Error 1 (ignored)
>
> -----Original Message-----
> From: Maria Prodanova [mailto:Maria.Prodanova at meteo.bg]
> Sent: Tuesday, December 14, 2010 1:07 PM
> To: Feng Liu
> Subject: RE: [Wrf-users] WRF 3.2.1 compilation errors
>
> Hi Feng,
>
> Thanks for your reply. I fulfilled your steps, but result is the same -
> the compilation is not accomplished.
>
> 2. gcc  is in /usr/bin but Ihave path to gcc
> 3. NETCDFPATH      =    /home/cecip/M3HOME/lib/netCDF/netcdf-3.6.2 is
> write in this way because in the tcsh file I give setenv $M3HOME M3HOME
>
> So the error is somewhere else. In the compile log.file that I sent there
> are very strange message as (I wrote them in the previous e-mail):
>
>> gcc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  registry.c
>> registry.c: In function `main':
>> registry.c:23: warning: return type of 'main' is not `int'
>> ----------------------------------------------------------
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (../dyn_em/module_initialize_real.f90: 2424)
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (../dyn_em/module_initialize_real.f90: 2425)
>> -------------------------
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (module_initialize_real.f90: 2657)
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (module_initialize_real.f90: 2658)
>>    0 inform,   0 warnings,   2 severes, 0 fatal for find_my_parent2
>>
>> So, because there is not /dyn_em/module_initialize_real.o compilation
>> failed. I attach my compile.log file.
>>
> Regards,
> Maria
>
>
>
>
>> Hi, Maria,
>> Try these steps as below and see if it works:
>>
>> 1)  Make clean all by make -a clean
>>
>> 2)  Check the location of gcc on your system by 'which gcc', and then set
>>
>> SCC  = YOUR_LOCAL_PATH_OF_GCC/gcc
>>
>> 3)  Compile again.
>>
>>
>> I am also wondering your netCDF is located at
>>   NETCDFPATH      =    /home/cecip/M3HOME/lib/netCDF/netcdf-3.6.2/
>>
>> Not at ?
>> NETCDFPATH      =    /home/cecip/$M3HOME/lib/netCDF/netcdf-3.6.2
>>
>> BTW, you do not need the slash "/" at the end of NETCDFPATH
>>
>> Please update me if you have any progress. Good luck.
>>
>> Feng
>>
>>
>> From: Maria Prodanova [mailto:Maria.Prodanova at meteo.bg]
>> Sent: Tuesday, December 14, 2010 2:50 AM
>> To: Feng Liu; wrf-users at ucar.edu
>> Subject: Re: [Wrf-users] WRF 3.2.1 compilation errors
>>
>> Hi Feng,
>>
>> It is my mistake I sent you configure.wrf when I  made ./configure for
>> serial mode. In serial mode I also didn't compile WRF V3.2.1.
>> I sent you now configure.wrf with dmpar and the log file compile.log from
>> compilation. Configure.wrf with dmpar has the same DM_CC, FC and CC as you
>>   wrote me, but the compilation failed.
>>
>> Ragards,
>> Maria
>>
>>
>>
>> On 13.12.2010 Ç. 22:23, Feng Liu wrote:
>> Hi, Maria,
>> Replace the corresponding staffs in your configure.wrf by the following
>> ones, and then try to compile your wrf3.2.1 again.  Hope that is helpful.
>> Feng
>>
>> DM_CC           =       mpicc -cc=$(SCC) -DMPI2_SUPPORT
>> FC              =        $(DM_FC)
>> CC              =       $(DM_CC) -DFSEEKO64_OK
>>
>> Your descriptions as below are not correct.
>>   DM_CC       =       mpicc -cc=$(SCC)
>> FC          =        $(SFC)
>> CC          =       $(SCC) -DFSEEKO64_OK
>>
>>
>> From: Maria Prodanova [mailto:Maria.Prodanova at meteo.bg]
>> Sent: Monday, December 13, 2010 12:18 PM
>> To: Feng Liu
>> Subject: Re: [Wrf-users] WRF 3.2.1 compilation errors
>>
>> Hi Feng,
>>
>> Yes, I have ~/WRFV3/frame/ if you have the file named
>> wrf_num_bytes_between.c. I attach it with my configure.wrf file.
>>
>> Many thanks for your willingness to help me.
>>
>> Regards,
>> Maria
>>
>> On 13.12.2010 Ç. 20:28, Feng Liu wrote:
>> Hi, Maria,
>> Please check at  ~/WRFV3/frame/ if you have the file named
>> wrf_num_bytes_between.c. I addition, could you please send me your
>> configure.wrf file? Thanks.
>> Feng
>>
>>
>>
>> From: wrf-users-bounces at ucar.edu<mailto:wrf-users-bounces at ucar.edu>
>> [mailto:wrf-users-bounces at ucar.edu] On Behalf Of Maria Prodanova
>> Sent: Friday, December 03, 2010 11:42 AM
>> To: wrf-users at ucar.edu<mailto:wrf-users at ucar.edu>
>> Subject: [Wrf-users] WRF 3.2.1 compilation errors
>>
>> Dear all,
>>
>>
>> I have problem compiling WRF version 3.2.1 using PGI compiler and with gcc
>> (dmpar). I have installed PGI compiler version 6.1 and netCDF 3.6.2
>>
>> I ran WRF 3.1.1 without problem - different cases using nesting, fdda,
>> ndown. I compiled  WRF 3.2 but there is problem with fdda analysis
>> nudging.
>>
>> With WRF 3.2.1 I have problem with compilation. There is some strange
>> warnings and errors,  for example:
>>
>> gcc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  registry.c
>> registry.c: In function `main':
>> registry.c:23: warning: return type of 'main' is not `int'
>> ----------------------------------------------------------
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (../dyn_em/module_initialize_real.f90: 2424)
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (../dyn_em/module_initialize_real.f90: 2425)
>> -------------------------
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (module_initialize_real.f90: 2657)
>> PGF90-S-0134-Illegal attribute - conflict with intent
>> (module_initialize_real.f90: 2658)
>>    0 inform,   0 warnings,   2 severes, 0 fatal for find_my_parent2
>>
>> So, because there is not /dyn_em/module_initialize_real.o compilation
>> failed. I attach my compile.log file.
>>
>> I have searching the internet  for solution but to no avail. If there is
>> anyone who knows the solution your help is greatly appreciated.
>>
>> Thank you very much in advance,
>>
>> Maria
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> *************************************************
>>
>> Maria Prodanova-Boiadjieva
>>
>> National Institute of Meteorology and Hydrology
>>
>> 66 Tzarigradsko shaussee, Sofia 1784, Bulgaria
>>
>> Phone: (+3592) 462 4598
>>
>> Fax: (+3592) 988 03 80, 988 44 94
>>
>> e-mail:Maria.Prodanova at meteo.bg<mailto:e-mail:Maria.Prodanova at meteo.bg>
>>
>> **************************************************
>>
>


-- 
*************************************************
Maria Prodanova-Boiadjieva
National Institute of Meteorology and Hydrology
66 Tzarigradsko shaussee, Sofia 1784, Bulgaria
Phone: (+3592) 462 4598
Fax: (+3592) 988 03 80, 988 44 94
e-mail:Maria.Prodanova at meteo.bg
**************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20101216/91ae9bc5/attachment.html 


More information about the Wrf-users mailing list