Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

WRF compiling problem

dafage66

New member
After reinstalled WRF,I run Fortran + C + NetCDF + MPI+Fortran + C + NetCDF tests,results were ok,then ./compile em_real >& log.compile,someting went wrong,here are some of the errors in the log,full compile log file sees in the attached file.
In file included from rsl_bcast.c:69:
rsl_bcast.c: In function ‘destroy_list’:
rsl_lite.h:164:35: error: conversion from ‘rsl_list_t **’ (or ‘struct rsl_list **’) to non-scalar type ‘char **’ requested in passing argument 1 of ‘rsl_free’ [-Wincompatible-pointer-types]
164 | #define RSL_FREE(P) rsl_free(&(P))
| ^~~~
| |
| rsl_list_t ** {or struct rsl_list **}
rsl_bcast.c:96:5: note: in expansion of macro ‘RSL_FREE’
96 | RSL_FREE( trash ) ;
| ^~~~~~~~
rsl_lite.h:170:24: note: expected ‘char **’ but argument is of type ‘rsl_list_t **’ (or ‘struct rsl_list **’)
170 | void rsl_free( char ** p ) ;
| ~~~~~~~~^
rsl_bcast.c: In function ‘rsl_lite_nesting_reset_’:
rsl_lite.h:164:35: error: conversion from ‘rsl_list_t ***’ (or ‘struct rsl_list ***’) to non-scalar type ‘char **’ requested in passing argument 1 of ‘rsl_free’ [-Wincompatible-pointer-types]
164 | #define RSL_FREE(P) rsl_free(&(P))
| ^~~~
| |
| rsl_list_t *** {or struct rsl_list ***}
rsl_bcast.c:180:5: note: in expansion of macro ‘RSL_FREE’
180 | RSL_FREE( Plist ) ;
| ^~~~~~~~
rsl_lite.h:170:24: note: expected ‘char **’ but argument is of type ‘rsl_list_t ***’ (or ‘struct rsl_list ***’)
170 | void rsl_free( char ** p ) ;
| ~~~~~~~~^
c_code.c: In function ‘rsl_lite_pack_’:
c_code.c:487:27: error: conversion from ‘char *’ to non-scalar type ‘long int *’ requested in passing argument 1 of ‘F_PACK_LINT’ [-Wincompatible-pointer-types]
487 | F_PACK_LINT ( buf, p+yp_curs, imemord, &js, &je, &ks, &ke, &is, &ie,
| ^~~
| |
| char *
In file included from c_code.c:31:
rsl_lite.h:200:25: note: expected ‘long int *’ but argument is of type ‘char *’
200 | void F_PACK_LINT (long *inbuf, long *outbuf, int* memorder, int* js, int* je, int* ks, int* ke, int* is, int* ie, int* jms, int* jme, int* kms, int* kme, int* ims, int* ime, int* curs);
| ~~~~~~^~~~~
c_code.c:487:33: error: conversion from ‘char *’ to non-scalar type ‘long int *’ requested in passing argument 2 of ‘F_PACK_LINT’ [-Wincompatible-pointer-types]
487 | F_PACK_LINT ( buf, p+yp_curs, imemord, &js, &je, &ks, &ke, &is, &ie,
| ~^~~~~~~~
| |
| char *
rsl_lite.h:200:38: note: expected ‘long int *’ but argument is of type ‘char *’
200 | void F_PACK_LINT (long *inbuf, long *outbuf, int* memorder, int* js, int* je, int* ks, int* ke, int* is, int* ie, int* jms, int* jme, int* kms, int* kme, int* ims, int* ime, int* curs);
| ~~~~~~^~~~~~
c_code.c:492:26: error: conversion from ‘char *’ to non-scalar type ‘int *’ requested in passing argument 1 of ‘F_PACK_INT’ [-Wincompatible-pointer-types]
492 | F_PACK_INT ( buf, p+yp_curs, imemord, &js, &je, &ks, &ke, &is, &ie,
| ^~~
| |
| char *
rsl_lite.h:201:23: note: expected ‘int *’ but argument is of type ‘char *’
 

Attachments

  • compilelog.txt
    109.1 KB · Views: 3
I'm not seeing any errors in the compile log you sent. I'm not sure if you forgot to send both the standard errors and out to the compile log (by using the ">&" syntax), or if it's because the errors aren't in English. Can you issue the following?

./clean -a
./configure
./compile >& -j 1 compilelog.txt

and then attach that new compile log, along with your configure.wrf file?

Did you happen to make any modifications to the WRF code, or is it pristine "out-of-the-box" code?
 
I'm not seeing any errors in the compile log you sent. I'm not sure if you forgot to send both the standard errors and out to the compile log (by using the ">&" syntax), or if it's because the errors aren't in English. Can you issue the following?

./clean -a
./configure
./compile >& -j 1 compilelog.txt

and then attach that new compile log, along with your configure.wrf file?

Did you happen to make any modifications to the WRF code, or is it pristine "out-of-the-box" code?
No modifications were made.
 

Attachments

  • wrf.zip
    55.6 KB · Views: 4
  • Screenshot from 2024-08-09 19-47-49.png
    Screenshot from 2024-08-09 19-47-49.png
    58.3 KB · Views: 3
  • Screenshot from 2024-08-09 22-36-37.png
    Screenshot from 2024-08-09 22-36-37.png
    13.1 KB · Views: 4
  • Screenshot from 2024-08-09 22-37-12.png
    Screenshot from 2024-08-09 22-37-12.png
    18 KB · Views: 4
  • Screenshot from 2024-08-09 22-37-44.png
    Screenshot from 2024-08-09 22-37-44.png
    12.5 KB · Views: 4
  • Screenshot from 2024-08-09 22-38-34.png
    Screenshot from 2024-08-09 22-38-34.png
    27.1 KB · Views: 4
  • Screenshot from 2024-08-09 22-40-28.png
    Screenshot from 2024-08-09 22-40-28.png
    36.5 KB · Views: 3
  • Screenshot from 2024-08-09 22-42-02.png
    Screenshot from 2024-08-09 22-42-02.png
    37 KB · Views: 4
Thanks for doing that. The error message in your log file is:

Code:
 681 |             F_UNPACK_INT ( p+xm_curs, buf, imemord, &js, &je, &ks, &ke, &is, &ie,
      |                                       ^~~
      |                                       |
      |                                       char *
rsl_lite.h:203:37: note: expected ‘int *’ but argument is of type ‘char *’
  203 | void F_UNPACK_INT (int *inbuf, int *outbuf, int* memorder, int* js, int* je, int* ks, int* ke, int* is, int* ie, int* jms, int* jme, int* kms, int* kme, int* ims, int* ime, int* curs);
      |                                ~~~~~^~~~~~
make[3]: [makefile:22: c_code.o] Error 1 (ignored)

Take a look at this previous post that addresses this issue.
 
Thank you for that,sir,the errors listed above were solved.would you mind take a look at the error below,Is there a solution for it?

/usr/bin/ld: /usr/lib64/libnetcdf.so.19: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
 
I'm happy to hear the original problem was resolved - thanks for the update!

Regarding the new question, to keep the posts organized and easy to read through and search, we try to keep each thread targeted to a specific question. Since this is a new question, will you please start a new thread to ask about that? Please provide any helpful files and information - such as a namelist.input file, the full error log, etc. Thanks!
 
Top