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

Problem compiling WRF on Ubuntu, this: (AR="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR") error presented.

Alex_mx

New member
Hello
I am configuring and compiling WRF V4.4 for the first time, I am currently on Ubuntu 22.04.5, when I try to compile it, it does nothing and then it just mark error creating the executables.
I've had previous errors with the netcdf path, I am guessing it has something to do with it.

If anyone could help I would appreciate it.

I attach the log.compile file.
 

Attachments

  • compile_wrf.log
    606.1 KB · Views: 6
Here it is.
I did it and it still present the same error, I even think there are more I don't know why.
Thanks for your answer.
 

Attachments

  • compile_wrf.log
    958.3 KB · Views: 4
That is fine, we want to see all the errors, not just the last ones as often earlier errors propagate to subsequent ones.

Can you paste the output of :
mpif90 -show

I have a suspicion that the underlying cause is the enabling of LTO (link time optimization) within the MPI wrapper.
 
Here:

Code:
gfortran -O2 -ffile-prefix-map=/build/mpich-0xgrG5/mpich-4.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -fallow-invalid-boz -fallow-argument-mismatch -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -I/usr/include/x86_64-linux-gnu/mpich -I/usr/include/x86_64-linux-gnu/mpich -L/usr/lib/x86_64-linux-gnu -lmpichfort -lmpich
 
Last edited:
Please add -fno-lto to the DM_FC line in your stanza or configure.wrf

The issue is the configuration of MPI you are using is specifying LTO (-flto=auto -ffat-lto-objects ) but when we do archive creation we use ar and ranlib which may not support gfortran/gcc LTO :
 
Was your issue resolved? I am facing the same error but the solution above did not work.
Any other solution?
if you could open a new issue, since it may be a different setup on your computer. Include all your log files that you have available for your WRF build please
 
Top