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

Failed to build fire_emis

jiaqi wu

New member
Hi,I have finished changed my NETCDF_DIR in my Makefile,but when I ran ./make_mozbc,it shows
make: *** [Makefile:41: mozbc] 错误 1
未能构建 fire_emis
,I don't know where the issue is.屏幕截图 2022-10-25 092101.png
 
Hi,I have finished changed my NETCDF_DIR in my Makefile,but when I ran ./make_mozbc,it shows
make: *** [Makefile:41: mozbc] 错误 1
未能构建 fire_emis
,I don't know where the issue is.View attachment 7457
Bash:
cd $HOME/WRFCHEM/WRF_CHEM_Tools/mozbc
chmod +x make_mozbc
export DIR=$HOME/WRFCHEM/WRF_CHEM_Tools/Libs
export FC=gfortran
export NETCDF_DIR=$DIR/NETCDF
sed -i 's/"${ar_libs} -lnetcdff"/"-lnetcdff ${ar_libs}"/' make_mozbc
sed -i '8s/FFLAGS = --g/FFLAGS = --g ${fallow_argument}/' Makefile
sed -i '10s/FFLAGS = -g/FFLAGS = -g ${fallow_argument}/' Makefile
./make_mozbc

An example from a script I have that might fix it too.
 
[代码=bash]
cd $HOME/WRFCHEM/WRF_CHEM_Tools/mozbc
chmod +x make_mozbc
导出目录=$HOME/WRFCHEM/WRF_CHEM_Tools/Libs
导出 FC=gfortran
导出 NETCDF_DIR=$DIR/NETCDF
sed -i 's/"${ar_libs} -lnetcdff"/"-lnetcdff ${ar_libs}"/' make_mozbc
sed -i '8s/FFLAGS = --g/FFLAGS = --g ${fallow_argument}/' Makefile
sed -i '10s/FFLAGS = -g/FFLAGS = -g ${fallow_argument}/' Makefile
./make_mozbc

[/代码]

我拥有的脚本中的一个示例也可以修复它。thanks! I found it was a compiler bug,and it can run now~;)
 
Yes that bud for Ubuntu 22.04 can be very tricky.

For anyone running into it here is a post about it.

 
Yes that bud for Ubuntu 22.04 can be very tricky.

For anyone running into it here is a post about it.

Hello.

Pleaseeeeee! I need access to the information within this link but it seems to be deleted.

Can anyone help me?

Thank you in advance.
 
Top