Support to fix "error 5" when compiling WW3 #1066
-
Hello everyone! best regards. I have tried the following: wget https://github.com/NOAA-EMC/WW3/archive/refs/tags/6.07.tar.1.gz When I do ./w3_make I get the following error:
Exporting WWATCH3_ENV=/media/ctorresm/Datos/CROCO/WW3-6.07.1/model/bin/wwatch3.env [INFO] list of the programs selected : ww3_grid ww3_strt ww3_bound ww3_outf ww3_outp ww3_trck ww3_grib ww3_gint gx_outf gx_outp ww3_uprstr ww3_gspl ww3_prep ww3_shel ww3_prnc ww3_ounf ww3_ounp ww3_bounc ww3_trnc ww3_prtide ww3_multi ww3_sbs1 libww3 ww3_systrk Processing ww3_gridad3 : processing constants My variables are defined like this: export CC=gcc #Librerias MPI export WWATCH3_NETCDF=NC4 #export NETCDF_CONFIG=/usr/bin when I do nc-config --all and nf-config --all, I get: nf-config --all This netCDF-Fortran 4.5.4 has been built with the following features: --cc -> gcc --fc -> gfortran --has-nc2 -> yes --prefix -> /usr nc-config --all This netCDF 4.8.1 has been built with the following features: --cc -> /usr/bin/cc --has-c++ -> no --has-c++4 -> no --has-fortran -> yes --has-dap -> yes --prefix -> /usr At the moment, this is the information I am sharing. If you need anything else, do not hesitate to ask for it. Please, any suggestions would be greatly appreciated. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 18 replies
-
Hi Cesar, I really recommend you to move to the latest release of the develop branch of WW3 and to use cmake to build WW3, it is more robust and user friendly. There is a tutorial about ww3 installation that we do during our annual training course: |
Beta Was this translation helpful? Give feedback.
-
Hi Mickael, As for the contents of the log file, it says the following: gfortran: error: unrecognized command line option ‘-fallow-invalid-boz’ Best regards, |
Beta Was this translation helpful? Give feedback.
-
the official installation procedure is described in the readme : |
Beta Was this translation helpful? Give feedback.
-
Hi @Cesar-IIUNAM,
I think it should resolve the error you displayed at the C compiler check. |
Beta Was this translation helpful? Give feedback.
-
@Cesar-IIUNAM also, if this has been addressed to your satisfaction, please feel free to close the discussion thread. Cheers |
Beta Was this translation helpful? Give feedback.
-
Hi,
… u need to run make in the build directory … and u can chose the binaries by saying … e.g. make ww3_shel, u can compile in parallel by using make -j 4 ww3_shel … let us know!
Aron
Von: Cesar-IIUNAM ***@***.***>
Gesendet: Dienstag, 19. September 2023 19:55
An: NOAA-EMC/WW3 ***@***.***>
Cc: Subscribed ***@***.***>
Betreff: Re: [NOAA-EMC/WW3] Support to fix "error 5" when compiling WW3 (Discussion #1066)
Hi @MatthewMasarik-NOAA <https://github.com/MatthewMasarik-NOAA> ,
Thanks for your support! I have changed my switch and at least now I don't get errors anymore. After "cmake -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DSWITCH=/media/ctorresm/Datos/CROCO/WW3/model/bin/switch_IINGEN_st4 .."
I get the following, is it ok?:
<https://user-images.githubusercontent.com/113042121/269043212-ce09cd19-7441-4529-8f77-48efe45c8ee4.png>
Based on the guide (https://github.com/NOAA-EMC/WW3/blob/develop/model/README.md), from the build directory, I did:
"make"
"make install"
Which does not seem to be correct. Then I ran it in one level up, ../WW3/
Well I am not doing something right yet...
<https://user-images.githubusercontent.com/113042121/269049670-6ee39aad-985c-4401-b74f-b33987b58cec.png>
Again, thank very much for your support!
César.
—
Reply to this email directly, view it on GitHub <#1066 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB2S43XS4AVPAO4LDSF26ODX3HL7NANCNFSM6AAAAAA4KXYREA> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/AB2S43RZDUA4JLPGV2ICYH3X3HL7NA5CNFSM6AAAAAA4KXYRECWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQANOIHG.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
Hi @Cesar-IIUNAM,
I wanted to circle back and see if you had a chance to try this latest
cmake
call:I think it should resolve the error you displayed at the C compiler check.