public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* Undefined symbols for architecture x86_64
@ 2013-10-20  0:49 Felipe Pimenta
  2013-10-20  1:00 ` Steve Kargl
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Felipe Pimenta @ 2013-10-20  0:49 UTC (permalink / raw)
  To: fortran

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_source/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ópolis, SC, Brasil, 88010-970
Fone: +55 (48) 3721-9286
Email: felipe.pimenta@ufsc.br
______________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Undefined symbols for architecture x86_64
@ 2013-10-20 17:50 Dominique Dhumieres
  2013-10-22 10:54 ` Felipe Pimenta
  0 siblings, 1 reply; 11+ messages in thread
From: Dominique Dhumieres @ 2013-10-20 17:50 UTC (permalink / raw)
  To: fortran; +Cc: felipepimenta

> Undefined symbols for architecture x86_64:

Usually this means that different parts have been compiled for different modes.
What happens if you compile the main code with -m32 or recompile libjulian
with -m64?

Dominique

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-07-09  3:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-20  0:49 Undefined symbols for architecture x86_64 Felipe Pimenta
2013-10-20  1:00 ` Steve Kargl
2013-10-20 10:22 ` Arjen Markus
2014-07-01 19:01 ` mcz1216
2014-07-01 21:43   ` Tim Prince
2014-07-01 19:49 ` Tobias Schlüter
2017-07-09  3:12 ` OWEN1412
2013-10-20 17:50 Dominique Dhumieres
2013-10-22 10:54 ` Felipe Pimenta
2013-10-22 12:30   ` Arjen Markus
2013-10-22 17:06     ` Dominique Dhumieres

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).