ROMS in MACmini Aple Chip M1

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
claudio_ccpo
Posts: 6
Joined: Sun Feb 20, 2022 12:16 am
Location: Center for Coastal Physical Oceanography at Old D

ROMS in MACmini Aple Chip M1

#1 Unread post by claudio_ccpo »

Hello,

After letting a Mac Mini (arm, M1 SONOMA VER 14.6) collect dust on my desk for about two years, I decided to try installing ROMS using a YouTube tutorial. Basically, I started by installing Brew and then ran `brew install gcc netcdf-fortran open-mpi`. I also needed to modify a specific section of the Darwin-gfortran.mk file ...
(*tutorial https://www.youtube.com/watch?v=DCg0u015qek&t=437s)

NF_CONFIG ?= nf-config
NETCDF_INCDIR ?= $(shell $(NF_CONFIG) --includedir)
LIBS += -L/opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib -lnetcdff
INCDIR += $(NETCDF_INCDIR) $(INCDIR)

after that, I run the ./build_roms.sh -j

Clearly, as you can see from the following code-lines, the romS files was not created, I will appreciate any help with this problem

ld: library not found for -ld_classic
collect2: error: ld returned 1 exit status
make: *** [/Users/cl/Downloads/roms_projects/upwelling/romsM] Error 1

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
GNU Build script command: build_roms.sh -j
ROMS source directory: /Users/cl/Downloads/roms
ROMS header file: /Users/cl/Downloads/roms_projects/upwelling/upwelling.h
ROMS build directory: /Users/cl/Downloads/roms_projects/upwelling/Build_romsM
ROMS Application: UPWELLING
grep: ./ROMS/Version: No such file or directory
grep: ./ROMS/Version: No such file or directory
Fortran compiler: gfortran
Fortran flags: -frepack-arrays -fallow-argument-mismatch -O3
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

Thanks to all!
Attachments
build_roms.sh
(15.15 KiB) Downloaded 98 times

robertson
Site Admin
Posts: 227
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: ROMS in MACmini Aple Chip M1

#2 Unread post by robertson »

Check that you have the latest non-beta Xcode and command line tools installed.

Post Reply