From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22342 invoked by alias); 20 Oct 2013 10:22:43 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 22329 invoked by uid 89); 20 Oct 2013 10:22:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f178.google.com Received: from mail-wi0-f178.google.com (HELO mail-wi0-f178.google.com) (209.85.212.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 20 Oct 2013 10:22:38 +0000 Received: by mail-wi0-f178.google.com with SMTP id hn9so2746196wib.17 for ; Sun, 20 Oct 2013 03:22:35 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.211.71 with SMTP id na7mr5746033wic.5.1382264555218; Sun, 20 Oct 2013 03:22:35 -0700 (PDT) Received: by 10.216.67.129 with HTTP; Sun, 20 Oct 2013 03:22:35 -0700 (PDT) In-Reply-To: References: Date: Sun, 20 Oct 2013 10:22:00 -0000 Message-ID: Subject: Re: Undefined symbols for architecture x86_64 From: Arjen Markus To: felipepimenta@gmail.com Cc: Fortran List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00063.txt.bz2 Can you find these symbols, like fjul_dutcoftai, in the source files of FVC= OM? If so, you may be missing one or more object files in the link step. An alternative is that the naming conventions are different. You may also require to add yet another library. Regards, Arjen 2013/10/20 Felipe Pimenta : > I am using gfortran to compile an ocean circulation model (FVCOM) on a > Mac OS X 10.8.5. > > Everything goes well with the compilation until the error below results. > > Does anybody have any idea what is missing? > > Thanks, > > Felipe > > > > make: Circular mod_prec.o <- mod_prec.o dependency dropped. > /usr/local/bin/gfortran -O3 func_pointer.o mod_prec.o sinter.o > mod_types.o mod_time.o mod_main.o mod_spherical.o mod_utils.o > mod_clock.o eqs_of_state.o mod_bulk.o mod_interp.o mod_par.o > mod_ncll.o mod_nctools.o mod_wd.o mod_sng.o mod_heatflux.o mod_input.o > mod_force.o mod_obcs.o mod_petsc.o mod_semi_implicit.o mod_non_hydro.o > mod_set_time.o ice_kinds_mod.o ice_model_size.o ice_domain.o > ice_constants.o ice_fileunits.o ice_state.o ice_work.o ice_grid.o > ice_albedo.o ice_calendar.o ice_flux.o ice_flux_in.o ice_itd.o > ice_mechred.o ice_itd_linear.o ice_scaling.o ice_atmo.o ice_ocean.o > ice_therm_vertical.o ice_init.o ice_therm_itd.o mod_ice2d.o mod_ice.o > mod_startup.o mod_wqm.o mod_ncdio.o mod_setup.o mod_newinp.o > particle.o linklist.o mod_lag.o mod_northpole.o mod_pwp.o mod_dye.o > mod_optimal_interpolation.o mod_report.o mod_probe.o mod_gotm.o > mod_balance_2d.o mod_tridiag.o mod_scal.o mod_meanflow.o mod_obcs2.o > mod_obcs3.o mod_sed.o mod_enkf.o mod_etkf.o mod_rrk.o mod_rrkf_obs.o > mod_rrkassim.o mod_enkf_ncd.o enkf_ncdio.o mod_enkf_obs.o > mod_enkfassim.o mod_assim.o mod_nesting.o mod_visit.o mod_plbc.o > mod_dam.o mod_station_timeseries.o mod_boundschk.o mod_main_wave.o > swmod1.o swmod2.o swmod3.o mod_action_im.o mod_action_ex.o > mod_wavesetup.o mod_wave_current_interaction.o mod_bbl.o fvcom.o > genmap.o tge.o longshore_flow.o cell_area.o open_all.o load_grid.o > allocate_all.o setup_domain.o genmap_obc.o genmap_lsf.o print_vals.o > coords_n_const.o shape_coef_gcn.o shape_coef_gcy.o depth_grad.o > grid_metrics.o cntrl_prmtrs.o init_sed.o internal_step.o bcond_gcn.o > bcond_gcy.o adjust2d3d.o brough.o advection_edge_gcn.o > advection_edge_gcy.o ghostuv.o advave_edge_gcn.o advave_edge_gcy.o > phy_baropg.o baropg.o external_step.o extel_edge.o extuv_edge.o > depth_check.o vertvl_edge.o adv_uv_edge_gcn.o adv_uv_edge_gcy.o > vdif_uv.o extelpf_edge.o wreal.o viscofh.o adv_q.o fct_q2.o fct_q2l.o > vdif_q.o adv_t.o adv_s.o fct_t.o vdif_ts.o vdif_ts_gom.o fct_s.o > bcond_ts.o adjust_ts.o conv_over.o visitsim.o startup_type.o > edge_len.o adcor.o icing.o rho_pmean.o calc_vort.o namelist.o > nh_set_nesting.o mod_bio_3D.o mod_onedtide.o ocpmix.o ocpcre.o > ocpids.o swanpre1.o swanpre2.o swanser.o swanmain.o swancom1.o > swancom2.o swancom3.o swancom4.o swancom5.o -L > /Users/felipe/Work/UFSC/GCN/research/ocean/model/FVCOM/FVCOM3.1.6/FVCOM_s= ource/libs/netcdf > -lnetcdf -L /Users/felipe/Work/UFSC/GCN/research/ocean/model/FVCOM/FVCOM3= .1.6/FVCOM_source/libs/julian > -ljulian -o fvcom > Undefined symbols for architecture x86_64: > "_fjul_dutcoftai_", referenced from: > ___mod_time_MOD_write_datetime in mod_time.o > "_fjul_mjdoftai_", referenced from: > ___mod_time_MOD_read_datetime in mod_time.o > "_fjul_taiofdutc_", referenced from: > ___mod_time_MOD_read_datetime in mod_time.o > "_fjul_taiofmjd_", referenced from: > ___mod_time_MOD_write_datetime in mod_time.o > "_gjul_formatdate_", referenced from: > _fjul_formatdate_ in libjulian.a(fjulian.o) > "_gjul_formatpds_", referenced from: > _fjul_formatpds_ in libjulian.a(fjulian.o) > "_gjul_formatsql_", referenced from: > _fjul_formatsql_ in libjulian.a(fjulian.o) > "_gjul_formattime_", referenced from: > _fjul_formattime_ in libjulian.a(fjulian.o) > "_gjul_initleaps_", referenced from: > _fjul_initleaps_ in libjulian.a(fjulian.o) > "_gjul_parsedate_", referenced from: > _fjul_parsedate_ in libjulian.a(fjulian.o) > "_gjul_parsedt_", referenced from: > _fjul_parsedt_ in libjulian.a(fjulian.o) > "_gjul_parsetime_", referenced from: > _fjul_parsetime_ in libjulian.a(fjulian.o) > ld: symbol(s) not found for architecture x86_64 > collect2: error: ld returned 1 exit status > make: *** [fvcom] Error 1 > matadeiro:FVCOM_source felipe$ uname -a > Darwin matadeiro.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 > 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64 > matadeiro:FVCOM_source felipe$ > > -- > ______________________________________________ > > Felipe M. Pimenta > Universidade Federal de Santa Catarina / UFSC > Trindade, Florian=F3polis, SC, Brasil, 88010-970 > Fone: +55 (48) 3721-9286 > Email: felipe.pimenta@ufsc.br > ______________________________________________