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

scan.l(44): catastrophic error: cannot open source file "y.tab.h" when compiled the WRF-chem model

wangplll

New member
Hi,

I compiled the WRF-chem-v4.3.1 Model, and it was not successful!

and I got many catastrophic errors like this:

make[1]: Entering directory `/public/home/wangpeng/Build_WRF/WRFV3/chem/KPP/kpp/kpp-2.1/src'
icc -O0 -c lex.yy.c
scan.l(44): catastrophic error: cannot open source file "y.tab.h"
#include "y.tab.h"

compilation aborted for lex.yy.c (code 4)
make[1]: *** [lex.yy.o] Error 4

and this is my .bashrc setting:
# SET wrf-chem model
export WRF_EM_CORE=1
export WRF_NMM_CORE=0
export WRF_DA_CORE=0
export WRF_CHEM=1
export WRF_KPP=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export YACC=$DIR/LIBRARIES/byacc/bin/yacc
export FLEX_LIB_DIR=$DIR/LIBRARIES/flex/lib
export NETCDF_classic=1

and attached the compiled log file! Please help me and thanks greatly!!!!
 

Attachments

  • compile.log
    814.1 KB · Views: 0
Hi,

I compiled the WRF-chem-v4.3.1 Model, and it was not successful!

and I got many catastrophic errors like this:

make[1]: Entering directory `/public/home/wangpeng/Build_WRF/WRFV3/chem/KPP/kpp/kpp-2.1/src'
icc -O0 -c lex.yy.c
scan.l(44): catastrophic error: cannot open source file "y.tab.h"
#include "y.tab.h"

compilation aborted for lex.yy.c (code 4)
make[1]: *** [lex.yy.o] Error 4

and this is my .bashrc setting:
# SET wrf-chem model
export WRF_EM_CORE=1
export WRF_NMM_CORE=0
export WRF_DA_CORE=0
export WRF_CHEM=1
export WRF_KPP=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export YACC=$DIR/LIBRARIES/byacc/bin/yacc
export FLEX_LIB_DIR=$DIR/LIBRARIES/flex/lib
export NETCDF_classic=1

and attached the compiled log file! Please help me and thanks greatly!!!!
I would try the newest version 4.6.0

I vaguely remember this issue being fixed in later versions.
 
Top