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

cannot open source file "y.tab.h" when compiled the KPP

walker990217

New member
Hi,

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

and I got many catastrophic errors like this:

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

i see this file (WRFV4.6.1/chem/KPP/kpp/kpp-2.1/src) has "y.tab.o" and "y.tab.c" (but no "y.tab.h"), i dont know how to get this
I dont have any access to root. original version is yacc - 1.9 20130304, i install byacc-20241231 but dont know if it wroks

and this is my environment setting:
# SET wrf-chem model
export EM_CORE=1
export NMM_CORE=0
export WRF_PLUS_CORE=1
export DA_CORE=0
export WRF_CHEM=0
export WRF_KPP=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export WRFIO_NCD_NO_LARGE_FILE_SUPPORT=1
export YACC='/public/home/elzd_2023_00077/zsc/WRFV4.6.1/byacc-20241231/bin/yacc -d'
export FLEX=/public/home/elzd_2023_00077/zsc/WRFV4.6.1/flex2.5.3/bin/flex
export FLEX_LIB_DIR=/public/home/elzd_2023_00077/zsc/WRFV4.6.1/flex2.5.3/lib
export KPP_HOME=WRFV4.6.1/chem/KPP/kpp/kpp-2.1
export WRF_SRC_ROOT_DIR=WRFV4.6.1
export PATH=$WRFV4.6.1/chem/KPP/kpp/kpp-2.1/bin:$PATH
export SED=/usr/bin/sed
export WRFIO_NCD_LARGE_FILE_SUPPORT=1

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

Attachments

  • compile (3).log
    54.1 KB · Views: 1
Top