hmenke / ryuon-cmake

CMake build system for RYUON
https://kichiki.github.io/ryuon/
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Undefined symbols while link stokes_shared #2

Closed xiconxi closed 6 years ago

xiconxi commented 6 years ago
[  6%] Built target nitsol_object
[ 79%] Built target iter_object
[ 96%] Built target stokes_object
[ 97%] Built target iter_shared
[ 98%] Built target nitsol_shared
[100%] Linking C shared library libstokes.dylib
Undefined symbols for architecture x86_64:
  "_dnaupd_", referenced from:
      _dnaupd_wrap_min_max in dnaupd_c.c.o
     (maybe you meant: _dnaupd_wrap_min_max)
  "_dneupd_", referenced from:
      _dnaupd_wrap_min_max in dnaupd_c.c.o
  "_dsaupd_", referenced from:
      _dsaupd_wrap_min_max in dsaupd_c.c.o
     (maybe you meant: _dsaupd_wrap_min_max)
  "_dseupd_", referenced from:
      _dsaupd_wrap_min_max in dsaupd_c.c.o
  "_gsl_multiroot_fsolver_alloc", referenced from:
      _BD_imp_init in bd-imp.c.o
  "_gsl_multiroot_fsolver_free", referenced from:
      _BD_imp_free in bd-imp.c.o
  "_gsl_multiroot_fsolver_hybrid", referenced from:
      _BD_imp_init in bd-imp.c.o
  "_gsl_multiroot_fsolver_iterate", referenced from:
      _fastSI_GSL_MULTIROOT_wrap in bd-imp-fast.c.o
      _BD_imp_GSL_MULTIROOT_wrap in bd-imp.c.o
  "_gsl_multiroot_fsolver_root", referenced from:
      _fastSI_GSL_MULTIROOT_wrap in bd-imp-fast.c.o
      _BD_imp_GSL_MULTIROOT_wrap in bd-imp.c.o
  "_gsl_multiroot_fsolver_set", referenced from:
      _fastSI_GSL_MULTIROOT_wrap in bd-imp-fast.c.o
      _BD_imp_GSL_MULTIROOT_wrap in bd-imp.c.o
  "_gsl_multiroot_test_residual", referenced from:
      _fastSI_GSL_MULTIROOT_wrap in bd-imp-fast.c.o
      _BD_imp_GSL_MULTIROOT_wrap in bd-imp.c.o
  "_gsl_poly_solve_cubic", referenced from:
      _fastSI_solve_cubic_in_range in bd-imp-fast.c.o
  "_gsl_strerror", referenced from:
      _fastSI_GSL_MULTIROOT_wrap in bd-imp-fast.c.o
  "_gsl_vector_alloc", referenced from:
      _BD_imp_init in bd-imp.c.o
  "_gsl_vector_free", referenced from:
      _BD_imp_free in bd-imp.c.o
  "_gsl_vector_get", referenced from:
      _fastSI_GSL_MULTIROOT_func in bd-imp-fast.c.o
      _fastSI_GSL_MULTIROOT_wrap in bd-imp-fast.c.o
      _BD_imp_GSL_MULTIROOT_func in bd-imp.c.o
      _BD_imp_GSL_get_root in bd-imp.c.o
  "_gsl_vector_set", referenced from:
      _fastSI_GSL_MULTIROOT_func in bd-imp-fast.c.o
      _fastSI_GSL_MULTIROOT_wrap in bd-imp-fast.c.o
      _BD_imp_GSL_MULTIROOT_func in bd-imp.c.o
      _BD_imp_GSL_set_guess in bd-imp.c.o
  "_nc_close", referenced from:
      _stokes_nc_free in stokes-nc.c.o
  "_nc_create", referenced from:
      _stokes_nc_init_ in stokes-nc.c.o
  "_nc_def_dim", referenced from:
      _stokes_nc_init_ in stokes-nc.c.o
  "_nc_def_var", referenced from:
      _stokes_nc_init_ in stokes-nc.c.o
      _stokes_nc_init_vec in stokes-nc.c.o
      _stokes_nc_init_int_scalar in stokes-nc.c.o
      _stokes_nc_init_scalar in stokes-nc.c.o
      _stokes_nc_init_t in stokes-nc.c.o
      _stokes_nc_init_stt in stokes-nc.c.o
      _stokes_nc_init_t_vec in stokes-nc.c.o
      ...
  "_nc_enddef", referenced from:
      _stokes_nc_init_ in stokes-nc.c.o
  "_nc_get_var1_double", referenced from:
      _stokes_nc_get_time_step in stokes-nc-read.c.o
      _stokes_nc_get_rng in stokes-nc-read.c.o
      _stokes_nc_check_params in stokes-nc.c.o
      _stokes_nc_get_params in stokes-nc.c.o
  "_nc_get_var1_int", referenced from:
      _stokes_nc_get_rng in stokes-nc-read.c.o
      _stokes_nc_print_actives in stokes-nc.c.o
      _stokes_nc_check_params in stokes-nc.c.o
      _stokes_nc_get_params in stokes-nc.c.o
  "_nc_get_vara_double", referenced from:
      _stokes_nc_get_array1d in stokes-nc-read.c.o
      _stokes_nc_get_data0 in stokes-nc-read.c.o
      _stokes_nc_get_data in stokes-nc-read.c.o
      _stokes_nc_get_time in stokes-nc-read.c.o
  "_nc_get_vara_int", referenced from:
      _stokes_nc_get_rng in stokes-nc-read.c.o
  "_nc_inq", referenced from:
      _stokes_nc_open_ in stokes-nc-read.c.o
  "_nc_inq_dim", referenced from:
      _stokes_nc_open_ in stokes-nc-read.c.o
  "_nc_inq_var", referenced from:
      _stokes_nc_open_ in stokes-nc-read.c.o
  "_nc_open", referenced from:
      _stokes_nc_open_ in stokes-nc-read.c.o
     (maybe you meant: _stokes_nc_open)
  "_nc_put_att_text", referenced from:
      _stokes_nc_init_vec in stokes-nc.c.o
      _stokes_nc_init_int_scalar in stokes-nc.c.o
      _stokes_nc_init_scalar in stokes-nc.c.o
      _stokes_nc_init_t in stokes-nc.c.o
      _stokes_nc_init_stt in stokes-nc.c.o
      _stokes_nc_init_t_vec in stokes-nc.c.o
      _stokes_nc_init_t_stt in stokes-nc.c.o
      ...
  "_nc_put_var1_double", referenced from:
      _stokes_nc_set_shear_rate in stokes-nc.c.o
      _stokes_nc_set_time in stokes-nc.c.o
      _stokes_nc_set_shear_shift in stokes-nc.c.o
      _stokes_nc_set_rng in stokes-nc.c.o
  "_nc_put_var1_int", referenced from:
      _stokes_nc_init_ in stokes-nc.c.o
      _stokes_nc_set_rng in stokes-nc.c.o
  "_nc_put_vara_double", referenced from:
      _stokes_nc_set_l in stokes-nc.c.o
      _stokes_nc_set_ui0 in stokes-nc.c.o
      _stokes_nc_set_oi0 in stokes-nc.c.o
      _stokes_nc_set_ei0 in stokes-nc.c.o
      _stokes_nc_set_x0 in stokes-nc.c.o
      _stokes_nc_set_u0 in stokes-nc.c.o
      _stokes_nc_set_o0 in stokes-nc.c.o
      ...
  "_nc_put_vara_int", referenced from:
      _stokes_nc_set_rng in stokes-nc.c.o
  "_nc_strerror", referenced from:
      _stokes_nc_error in stokes-nc.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [libstokes.dylib] Error 1
make[2]: *** [CMakeFiles/stokes_shared.dir/all] Error 2
make[1]: *** [CMakeFiles/stokes_shared.dir/rule] Error 2
make: *** [stokes_shared] Error 2
hmenke commented 6 years ago

I believe this is fixed in https://github.com/hmenke/ryuon-cmake/commit/0344ee9f16541125d221b00d250f0ef592994555.

I'll add a Mac OS X target to the CI to make sure that it also builds there.

hmenke commented 6 years ago

Mac OS X target is active now https://github.com/hmenke/ryuon-cmake/commit/e2d648c035fa9f5fc4f37c2641687de1e79cfa2c