Netcdf incompatibility error: i386 architecture

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
rgawde
Posts: 11
Joined: Sat Oct 10, 2015 1:04 am
Location: UMCES Horn Point Lab

Netcdf incompatibility error: i386 architecture

#1 Unread post by rgawde »

Hello everyone,

I am trying to compile ROMS 3.5 on a Linux x86_64 machine using a 3.6.3 version of netcdf installed using intel C and Fortran. However I keep running into the following error when trying to compile the model. Does anyone have any suggestions for correcting this problem?

Thanks,
Rasika

/usr/bin/cpp -P -traditional -I/data/users/rgawde/netcdf-intel/include -DLINUX -DX86_64 -DMPIF90 -D'ROOT_DIR="/data/users/rgawde/choproms-code/COMF/ohms/CHOPROMS/sorc/ROMS/CHOPROMS2.0-ROMS3.5"' -DCHOPROMS -D'HEADER="choproms.h"' -D'ROMS_HEADER="/data/users/rgawde/choproms-code/COMF/ohms/CHOPROMS/sorc/ROMS/CHOPROMS2.0-ROMS3.5/CHOPROMS/choproms.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/data/users/rgawde/choproms-code/COMF/ohms/CHOPROMS/sorc/ROMS/CHOPROMS2.0-ROMS3.5/ROMS/Functionals"' -D'SVN_REV="Unversioned directory"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/data/users/rgawde/choproms-code/COMF/ohms/CHOPROMS/sorc/ROMS/CHOPROMS2.0-ROMS3.5/CHOPROMS -IMaster -ICompilers -D'HEADER_DIR="/data/users/rgawde/choproms-code/COMF/ohms/CHOPROMS/sorc/ROMS/CHOPROMS2.0-ROMS3.5/CHOPROMS"' Master/esmf_roms.F > Build/esmf_roms.f90
ROMS/Bin/cpp_clean Build/esmf_roms.f90
cd Build; mpif90 -c -ip -O3 esmf_roms.f90
cd Build; mpif90 -c -ip -O3 master.f90
mpif90 -ip -O3 Build/roms_import.o Build/propagator.o Build/master.o Build/roms_export.o Build/ocean_coupler.o Build/esmf_roms.o Build/ocean_control.o -o oceanM Build/libUTIL.a Build/libNLM.a Build/libNLM_bio.a Build/libNLM_sed.a Build/libANA.a Build/libUTIL.a Build/libMODS.a -L/data/users/rgawde/netcdf-intel/lib -lnetcdf
ld: i386 architecture of input file `/data/users/rgawde/netcdf-intel/lib/libnetcdf.a(netcdf.o)' is incompatible with i386:x86-64 output
make: *** [oceanM] Error 1

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Netcdf incompatibility error: i386 architecture

#2 Unread post by kate »

Yes, I suggest you compile netcdf from source code. That's the best way to know it will be fully compatible with your ROMS compiles.

rgawde
Posts: 11
Joined: Sat Oct 10, 2015 1:04 am
Location: UMCES Horn Point Lab

Re: Netcdf incompatibility error: i386 architecture

#3 Unread post by rgawde »

Thanks for your reply Kate, but how do I go about doing that? Is there a website you could direct me to?

Thanks,
Rasika

User avatar
shchepet
Posts: 188
Joined: Fri Nov 14, 2003 4:57 pm

Re: Netcdf incompatibility error: i386 architecture

#4 Unread post by shchepet »

....is there a website you could direct me to?
please read
http://people.atmos.ucla.edu/alex/techn ... g_sequence

Post Reply