Opened 18 months ago

#67481 assigned defect

linalg fails to build as universal (i386+x86_64) with a bunch on missing gfortran symbols

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: linalg

Description

[ 13%] Linking C executable ferror_test_c
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/build/_deps/ferror-build/test && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/ferror_test_c.dir/link.txt --verbose=ON
[ 14%] Building Fortran object CMakeFiles/linalg.dir/src/qrupdate/cchdex.f.o
/opt/local/bin/gfortran-mp-12  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/build/_deps/ferror-build/include -pipe -Os -mmacosx-version-min=10.6 -Jinclude -fPIC -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/linalg-c9b741d913d0574a481037dee10a025b93691953/src/qrupdate/cchdex.f -o CMakeFiles/linalg.dir/src/qrupdate/cchdex.f.o
/opt/local/bin/clang-mp-11 -pipe -Os -DNDEBUG -I/opt/local/include -arch x86_64 -arch i386 -mmacosx-version-min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib/libgcc CMakeFiles/ferror_test_c.dir/ferror_test_c.c.o -o ferror_test_c   -L/opt/local/lib/gcc12/gcc/x86_64-apple-darwin10/12.2.0  -L/opt/local/lib/gcc12  -Wl,-rpath,/opt/local/lib ../libferror.a 
/opt/local/bin/cmake -E touch _deps/fortran_test_helper-build/CMakeFiles/fortran_test_helper.dir/src/fth_asserts.f90.o.provides.build
Undefined symbols for architecture x86_64:
  "__gfortran_st_open", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_string_trim", referenced from:
      ___ferror_MOD_er_get_log_filename in libferror.a(ferror_implementation.f90.o)
  "__gfortran_concat_string", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_warning in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_st_write", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_warning in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_transfer_character_write", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_warning in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_transfer_integer_write", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_warning in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_st_close", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_st_write_done", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_warning in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_exit_i4", referenced from:
      ___ferror_MOD_er_report_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_idate_i4", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_itime_i4", referenced from:
      ___ferror_MOD_er_log_error in libferror.a(ferror_implementation.f90.o)
  "__gfortran_os_error_at", referenced from:
      ___ferror_c_binding_MOD_cstr_2_fstr in libferror.a(ferror_c_binding.f90.o)
      _alloc_error_handler in libferror.a(ferror_c_binding.f90.o)
      ___ferror_MOD_er_get_warning_fcn in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_get_err_fcn in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_get_warning_msg in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_get_err_msg in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_report_warning in libferror.a(ferror_implementation.f90.o)
      ...
  "__gfortran_runtime_error_at", referenced from:
      ___ferror_c_binding_MOD_cstr_2_fstr in libferror.a(ferror_c_binding.f90.o)
      _free_error_handler in libferror.a(ferror_c_binding.f90.o)
      ___ferror_MOD_er_get_warning_fcn in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_get_err_fcn in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_get_warning_msg in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_get_err_msg in libferror.a(ferror_implementation.f90.o)
      ___ferror_MOD_er_reset_warning_status in libferror.a(ferror_implementation.f90.o)
      ...
  "__gfortran_is_extension_of", referenced from:
      ___ferror_c_binding_MOD_err_callback in libferror.a(ferror_c_binding.f90.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ 15%] Building Fortran object CMakeFiles/linalg.dir/src/qrupdate/cchinx.f.o
/opt/local/bin/gfortran-mp-12  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/build/_deps/ferror-build/include -pipe -Os -mmacosx-version-min=10.6 -Jinclude -fPIC -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/linalg-c9b741d913d0574a481037dee10a025b93691953/src/qrupdate/cchinx.f -o CMakeFiles/linalg.dir/src/qrupdate/cchinx.f.o
make[2]: *** [_deps/ferror-build/test/ferror_test_c] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_linalg/linalg/work/build'
make[1]: *** [_deps/ferror-build/test/CMakeFiles/ferror_test_c.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Change History (0)

Note: See TracTickets for help on using tickets.