[MacPorts] #66931: libgit2 @1.5.1: fails to build on arm64 (was: libgit2 1.5.1: fails to build on arm64)

MacPorts noreply at macports.org
Sat Feb 18 16:39:31 UTC 2023


#66931: libgit2 @1.5.1: fails to build on arm64
-----------------------+----------------------
  Reporter:  jrabinow  |      Owner:  dbevans
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.8.1
Resolution:            |   Keywords:
      Port:  libgit2   |
-----------------------+----------------------

Comment (by ryandesign):

 The error in the log is:
 {{{
 :info:build Undefined symbols for architecture arm64:
 :info:build   "_libiconv", referenced from:
 :info:build       _git_fs_path_iconv in fs_path.c.o
 :info:build       _unicode_iconv_encoding_convert in unicode_iconv.c.o
 :info:build   "_libiconv_close", referenced from:
 :info:build       _git_fs_path_iconv_clear in fs_path.c.o
 :info:build       _ntlm_unicode_shutdown in unicode_iconv.c.o
 :info:build   "_libiconv_open", referenced from:
 :info:build       _git_fs_path_direach in fs_path.c.o
 :info:build       _git_fs_path_iconv_init_precompose in fs_path.c.o
 :info:build       _git_fs_path_diriter_init in fs_path.c.o
 :info:build       _ntlm_unicode_init in unicode_iconv.c.o
 :info:build ld: symbol(s) not found for architecture arm64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 }}}

 These symbols should be defined in libiconv but unless I'm mistaken the
 build doesn't seem to be trying to use libiconv. (I don't see `-liconv`
 nor the full path to libiconv.dylib being used.)

 We have successful builds of this port on all buildbot systems. In those
 logs, I do see `-liconv` being used. (We don't have a buildbot system set
 up for Ventura for arm64 yet which is why you're having to build from
 source.)

-- 
Ticket URL: <https://trac.macports.org/ticket/66931#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list