Skip to content

Instantly share code, notes, and snippets.

@marslo
Last active December 8, 2023 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marslo/c6a3cbce17f4d53a3d223d1313a2d302 to your computer and use it in GitHub Desktop.
Save marslo/c6a3cbce17f4d53a3d223d1313a2d302 to your computer and use it in GitHub Desktop.
log : build git from source for macOS

stackoverflow: build and install git from source on macOS: "ld: multiple errors: archive member '/' not a mach-o file"

environment

$ sw_vers
ProductName:		macOS
ProductVersion:		14.1.2
BuildVersion:		23B92

# brew install
$ brew install gcc autoconf automake openssl@3 expat gettext zlib libtool libiconv ncurses
$ brew install asciidoc xmlto docbook2x docbook-xsl hunspell
$ ln -sf /usr/local/bin/docbook2texi /usr/local/bin/docbook2x-texi
$ brew install gnu-getopt libao

$ echo $CFLAGS
-I/usr/local/include -I/usr/local/opt/tcl-tk/include

$ echo $PKG_CONFIG_PATH
/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11.1:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/python@3.11/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/libressl/lib/pkgconfig:/usr/local/Cellar/icu4c@71.1/71.1/lib/pkgconfig:/usr/local/opt/expat/lib/pkgconfig:/usr/local/opt/ncurses/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig

$ echo $CPPFLAGS
-I/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home/include -I/usr/local/opt/openldap/include -I/usr/local/opt/curl/include -I/usr/local/opt/binutils/include -I/usr/local/opt/sqlite/include -I/usr/local/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/Cellar/node/21.1.0/include -I/usr/local/opt/libressl/include -I/usr/local/opt/expat/include -I/usr/local/opt/ncurses/include -I/usr/local/opt/libiconv/include -I/usr/local/opt/zlib/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/ruby/include -I/usr/local/Cellar/icu4c@71.1/71.1/include -I/usr/local/opt/llvm/include

$ echo $LDFLAGS
-L/usr/local/opt/openldap/lib -L/usr/local/opt/curl/lib -L/usr/local/opt/binutils/lib -L/usr/local/opt/python@3.11/lib -L/usr/local/opt/ruby/lib -L/usr/local/opt/tcl-tk/lib -L/usr/local/opt/sqlite/lib -L/usr/local/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/usr/local/Cellar/node/21.1.0/libexec/lib -L/usr/local/opt/libressl/lib -L/usr/local/Cellar/icu4c@71.1/71.1/lib -L/usr/local/opt/expat/lib -L/usr/local/opt/ncurses/lib -L/usr/local/opt/libiconv/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/llvm/lib -L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++

clone

$ git clone https://github.com/git/git.git
$ cd git
$ git show -s
commit 564d0252ca632e0264ed670534a51d18a689ef5d (HEAD -> master, tag: v2.43.0, origin/master, origin/HEAD)
Author: Junio C Hamano <gitster@pobox.com>
Date:   Mon Nov 20 08:47:38 2023 +0900

    Git 2.43

    Signed-off-by: Junio C Hamano <gitster@pobox.com>

make configure

$ make configure
GIT_VERSION = 2.43.0
    GEN configure

configure

$ ./configure --prefix=/usr/local --with-shell=/usr/local/bin/bash
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
configure: Setting SHELL_PATH to /usr/local/bin/bash
configure: CHECKS for programs
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking for inline... inline
checking if linker supports -R... no
checking if linker supports -Wl,-rpath,... yes
checking for gar... gar
checking for gtar... gtar
checking for gnudiff... no
checking for gdiff... no
checking for diff... diff
checking for asciidoc... asciidoc
checking for asciidoc version... asciidoc 10.2.0 (unknown)
configure: CHECKS for libraries
checking for SHA1_Init in -lcrypto... yes
checking for curl_global_init in -lcurl... yes
checking for curl-config... curl-config
configure: Setting CURL_LDFLAGS to '-L/usr/local/Cellar/curl/8.5.0/lib -lcurl'
checking for XML_ParserCreate in -lexpat... yes
checking for iconv in -lc... no
checking for iconv in -liconv... yes
checking for deflateBound in -lz... yes
checking for socket in -lc... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for hstrerror... yes
checking for basename in -lc... yes
checking if libc contains libintl... no
checking for libintl.h... yes
configure: CHECKS for header files
checking for sys/select.h... yes
checking for poll.h... yes
checking for sys/poll.h... yes
checking for inttypes.h... (cached) yes
checking for old iconv()... no
checking whether iconv omits bom for utf-16 and utf-32... no
configure: CHECKS for typedefs, structures, and compiler characteristics
checking for socklen_t... yes
checking for struct itimerval... yes
checking for struct stat.st_mtimespec.tv_nsec... yes
checking for struct stat.st_mtim.tv_nsec... no
checking for struct dirent.d_type... yes
checking for struct passwd.pw_gecos... yes
checking for struct sockaddr_storage... yes
checking for struct addrinfo... yes
checking for getaddrinfo... yes
checking for library containing getaddrinfo... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/local/opt/grep/libexec/gnubin/grep
checking for egrep... /usr/local/opt/grep/libexec/gnubin/grep -E
checking whether the platform regex supports REG_STARTEND... yes
checking whether system succeeds to read fopen'ed directory... yes
checking whether snprintf() and/or vsnprintf() return bogus value... no
checking whether the platform uses typical file type bits... yes
configure: CHECKS for library functions
checking for libgen.h... yes
checking for paths.h... yes
checking for libcharset.h... yes
checking for strings.h... (cached) yes
checking for locale_charset in -liconv... yes
checking for clock_gettime... yes
checking for library containing clock_gettime... none required
checking for CLOCK_MONOTONIC... yes
checking for sync_file_range... no
checking for setitimer... yes
checking for library containing setitimer... none required
checking for strcasestr... yes
checking for library containing strcasestr... none required
checking for memmem... yes
checking for library containing memmem... none required
checking for strlcpy... yes
checking for library containing strlcpy... none required
checking for uintmax_t... yes
checking for strtoumax... yes
checking for library containing strtoumax... none required
checking for setenv... yes
checking for library containing setenv... none required
checking for unsetenv... yes
checking for library containing unsetenv... none required
checking for mkdtemp... yes
checking for library containing mkdtemp... none required
checking for initgroups... yes
checking for library containing initgroups... none required
checking for getdelim... yes
checking for library containing getdelim... none required
checking for BSD sysctl... yes
checking for POSIX Threads with ''... yes
configure: creating ./config.status
config.status: creating config.mak.autogen
config.status: executing config.mak.autogen commands

make

$ make -j all
    * new build flags
    * new link flags
    GEN command-list.h
    * new prefix flags
    CC versioncmp.o
    CC walker.o
    CC wildmatch.o
    CC worktree.o
    CC write-or-die.o
    CC wrapper.o
    CC ws.o
    CC wt-status.o
    CC xdiff-interface.o
    CC unix-socket.o
    CC unix-stream-server.o
    CC compat/simple-ipc/ipc-shared.o
    CC compat/simple-ipc/ipc-unix-socket.o
    CC sha1dc_git.o
    CC sha1collisiondetection/lib/ubc_check.o
    CC sha256/block/sha256.o
    CC compat/precompose_utf8.o
    CC compat/fopen.o
    CC compat/open.o
    CC compat/qsort_s.o
    CC compat/regcomp_enhanced.o
    CC compat/stub/procinfo.o
    CC compat/fsmonitor/fsm-health-darwin.o
    CC compat/fsmonitor/fsm-ipc-darwin.o
    CC compat/fsmonitor/fsm-listen-darwin.o
    CC sha1collisiondetection/lib/sha1.o
    CC compat/fsmonitor/fsm-settings-darwin.o
    CC compat/fsmonitor/fsm-path-utils-darwin.o
    CC xdiff/xdiffi.o
    CC xdiff/xemit.o
    CC xdiff/xhistogram.o
    CC xdiff/xmerge.o
    CC xdiff/xpatience.o
    CC xdiff/xprepare.o
    CC xdiff/xutils.o
    CC reftable/basics.o
    CC reftable/error.o
    CC reftable/block.o
    CC reftable/blocksource.o
    CC reftable/iter.o
    CC reftable/publicbasics.o
    CC reftable/merged.o
    CC reftable/pq.o
    CC reftable/reader.o
    CC reftable/record.o
    CC reftable/refname.o
    CC reftable/generic.o
    CC reftable/stack.o
    CC reftable/tree.o
    CC reftable/writer.o
    CC http-backend.o
    CC imap-send.o
    CC http.o
    CC sh-i18n--envsubst.o
    CC shell.o
    CC http-walker.o
    CC http-fetch.o
    CC http-push.o
    CC remote-curl.o
    * new script parameters
    * new perl-specific parameters
    CC git.o
    * new Python interpreter location
    CC builtin/add.o
    CC builtin/am.o
    CC builtin/annotate.o
    CC builtin/apply.o
    CC builtin/archive.o
    CC builtin/bisect.o
    CC builtin/blame.o
    CC builtin/branch.o
    GEN hook-list.h
    CC builtin/bundle.o
    CC builtin/cat-file.o
    CC builtin/check-attr.o
    CC builtin/check-ignore.o
    CC builtin/check-mailmap.o
    CC builtin/check-ref-format.o
    CC builtin/checkout--worker.o
    CC builtin/checkout-index.o
    CC builtin/checkout.o
    CC builtin/clean.o
    CC builtin/clone.o
    CC builtin/column.o
    CC builtin/commit-graph.o
    CC builtin/commit-tree.o
    CC builtin/commit.o
    CC builtin/config.o
    CC builtin/count-objects.o
    CC builtin/credential-cache--daemon.o
    CC builtin/credential-store.o
    CC builtin/credential-cache.o
    CC builtin/credential.o
    CC builtin/describe.o
    CC builtin/diagnose.o
    CC builtin/diff-files.o
    CC builtin/diff-index.o
    CC builtin/diff-tree.o
    CC builtin/diff.o
    CC builtin/difftool.o
    CC builtin/fast-export.o
    CC builtin/fast-import.o
    CC builtin/fetch-pack.o
    CC builtin/fetch.o
    CC builtin/fmt-merge-msg.o
    CC builtin/for-each-ref.o
    CC builtin/for-each-repo.o
    CC builtin/fsck.o
    CC builtin/fsmonitor--daemon.o
    CC builtin/gc.o
    CC builtin/get-tar-commit-id.o
    CC builtin/hash-object.o
    CC builtin/grep.o
    GEN config-list.h
    CC builtin/hook.o
    CC builtin/index-pack.o
    CC builtin/init-db.o
    CC builtin/interpret-trailers.o
    CC builtin/log.o
    CC builtin/ls-files.o
    CC builtin/ls-remote.o
    CC builtin/ls-tree.o
    CC builtin/mailinfo.o
    CC builtin/mailsplit.o
    CC builtin/merge-base.o
    CC builtin/merge-file.o
    CC builtin/merge-index.o
    CC builtin/merge-ours.o
    CC builtin/merge-recursive.o
    CC builtin/merge-tree.o
    CC builtin/merge.o
    CC builtin/mktag.o
    CC builtin/mktree.o
    CC builtin/multi-pack-index.o
    CC builtin/mv.o
    CC builtin/name-rev.o
    CC builtin/notes.o
    CC builtin/pack-objects.o
    CC builtin/pack-redundant.o
    CC builtin/pack-refs.o
    CC builtin/patch-id.o
    CC builtin/prune.o
    CC builtin/prune-packed.o
    CC builtin/pull.o
    CC builtin/push.o
    CC builtin/range-diff.o
    CC builtin/read-tree.o
    CC builtin/rebase.o
    CC builtin/receive-pack.o
    CC builtin/reflog.o
    CC builtin/remote-ext.o
    CC builtin/remote-fd.o
    CC builtin/remote.o
    CC builtin/replace.o
    CC builtin/rerere.o
    CC builtin/reset.o
    CC builtin/rev-list.o
    CC builtin/rev-parse.o
    CC builtin/revert.o
    CC builtin/rm.o
    CC builtin/shortlog.o
    CC builtin/send-pack.o
    CC builtin/repack.o
    CC builtin/show-branch.o
    CC builtin/show-index.o
    CC builtin/show-ref.o
    CC builtin/sparse-checkout.o
    CC builtin/stash.o
    CC builtin/stripspace.o
    CC builtin/submodule--helper.o
    CC builtin/symbolic-ref.o
    CC builtin/tag.o
    CC builtin/unpack-file.o
    CC builtin/unpack-objects.o
    CC builtin/update-index.o
    CC builtin/update-server-info.o
    CC builtin/upload-archive.o
    CC builtin/update-ref.o
    CC builtin/upload-pack.o
    CC builtin/var.o
    CC builtin/verify-commit.o
    CC builtin/verify-pack.o
    CC builtin/verify-tag.o
    CC builtin/worktree.o
    CC builtin/write-tree.o
    GEN git-mergetool--lib
    GEN git-sh-i18n
    GEN git-sh-setup
    CC scalar.o
    MKDIR -p po/build/locale/bg/LC_MESSAGES
    MSGFMT po/build/locale/bg/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/ca/LC_MESSAGES
    MKDIR -p po/build/locale/de/LC_MESSAGES
    MSGFMT po/build/locale/ca/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/de/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/el/LC_MESSAGES
    MKDIR -p po/build/locale/es/LC_MESSAGES
    MSGFMT po/build/locale/el/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/es/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/fr/LC_MESSAGES
    MKDIR -p po/build/locale/id/LC_MESSAGES
    MSGFMT po/build/locale/fr/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/is/LC_MESSAGES
    MSGFMT po/build/locale/id/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/it/LC_MESSAGES
    MSGFMT po/build/locale/is/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/ko/LC_MESSAGES
    MSGFMT po/build/locale/it/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/pl/LC_MESSAGES
    MSGFMT po/build/locale/ko/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/pt_PT/LC_MESSAGES
    MSGFMT po/build/locale/pl/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/ru/LC_MESSAGES
    MKDIR -p po/build/locale/sv/LC_MESSAGES
    MSGFMT po/build/locale/ru/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/sv/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/tr/LC_MESSAGES
    MSGFMT po/build/locale/tr/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/uk/LC_MESSAGES
    MSGFMT po/build/locale/uk/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/vi/LC_MESSAGES
    MKDIR -p po/build/locale/zh_CN/LC_MESSAGES
    MSGFMT po/build/locale/vi/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/zh_CN/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/zh_TW/LC_MESSAGES
    MKDIR -p perl/build/lib
    MSGFMT po/build/locale/zh_TW/LC_MESSAGES/git.mo
    MKDIR -p perl/build/lib/Git
    GEN perl/build/lib/Git.pm
    MKDIR -p perl/build/lib/Git
    GEN perl/build/lib/Git/I18N.pm
    GEN perl/build/lib/Git/IndexInfo.pm
    MKDIR -p perl/build/lib/Git
    MKDIR -p perl/build/lib/Git
    GEN perl/build/lib/Git/LoadCPAN.pm
    MKDIR -p perl/build/lib/Git
    GEN perl/build/lib/Git/Packet.pm
    GEN perl/build/lib/Git/SVN.pm
    MKDIR -p perl/build/lib/Git/LoadCPAN
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/LoadCPAN/Error.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Editor.pm
    GEN perl/build/lib/Git/SVN/Fetcher.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/GlobSpec.pm
    MKDIR -p perl/build/lib/Git/SVN
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Log.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Migration.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Prompt.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Ra.pm
    MKDIR -p perl/build/lib/Git/LoadCPAN/Mail
    GEN perl/build/lib/Git/SVN/Utils.pm
    GEN perl/build/lib/Git/LoadCPAN/Mail/Address.pm
    MKDIR -p perl/build/lib/Git/SVN/Memoize
    MKDIR -p perl/build/lib/FromCPAN
    GEN perl/build/lib/Git/SVN/Memoize/YAML.pm
    GEN perl/build/lib/FromCPAN/Error.pm
    MKDIR -p perl/build/lib/FromCPAN/Mail
    CC t/helper/test-fake-ssh.o
    CC reftable/basics_test.o
    CC reftable/block_test.o
    CC reftable/dump.o
    GEN perl/build/lib/FromCPAN/Mail/Address.pm
    CC reftable/merged_test.o
    CC reftable/pq_test.o
    CC reftable/record_test.o
    CC reftable/readwrite_test.o
    CC reftable/refname_test.o
    CC reftable/stack_test.o
    CC reftable/test_framework.o
    CC reftable/tree_test.o
    CC t/helper/test-tool.o
    CC t/helper/test-advise.o
    CC t/helper/test-bitmap.o
    CC t/helper/test-bloom.o
    CC t/helper/test-bundle-uri.o
    CC t/helper/test-cache-tree.o
    CC t/helper/test-chmtime.o
    CC t/helper/test-config.o
    CC t/helper/test-crontab.o
    CC t/helper/test-csprng.o
    CC t/helper/test-ctype.o
    CC t/helper/test-date.o
    CC t/helper/test-delta.o
    CC t/helper/test-dir-iterator.o
    CC t/helper/test-drop-caches.o
    CC t/helper/test-dump-cache-tree.o
    CC t/helper/test-dump-fsmonitor.o
    CC t/helper/test-dump-split-index.o
    CC t/helper/test-dump-untracked-cache.o
    CC t/helper/test-env-helper.o
    CC t/helper/test-example-decorate.o
    CC t/helper/test-fast-rebase.o
    CC t/helper/test-find-pack.o
    CC t/helper/test-fsmonitor-client.o
    CC t/helper/test-genrandom.o
    CC t/helper/test-genzeros.o
    CC t/helper/test-getcwd.o
    CC t/helper/test-hash-speed.o
    CC t/helper/test-hash.o
    CC t/helper/test-hashmap.o
    CC t/helper/test-hexdump.o
    CC t/helper/test-json-writer.o
    CC t/helper/test-lazy-init-name-hash.o
    CC t/helper/test-match-trees.o
    CC t/helper/test-mergesort.o
    CC t/helper/test-mktemp.o
    CC t/helper/test-oid-array.o
    CC t/helper/test-oidmap.o
    CC t/helper/test-oidtree.o
    CC t/helper/test-online-cpus.o
    CC t/helper/test-pack-mtimes.o
    CC t/helper/test-parse-options.o
    CC t/helper/test-parse-pathspec-file.o
    CC t/helper/test-partial-clone.o
    CC t/helper/test-path-utils.o
    CC t/helper/test-pcre2-config.o
    CC t/helper/test-pkt-line.o
    CC t/helper/test-prio-queue.o
    CC t/helper/test-proc-receive.o
    CC t/helper/test-progress.o
    CC t/helper/test-reach.o
    CC t/helper/test-read-cache.o
    CC t/helper/test-read-graph.o
    CC t/helper/test-read-midx.o
    CC t/helper/test-ref-store.o
    CC t/helper/test-reftable.o
    CC t/helper/test-regex.o
    CC t/helper/test-rot13-filter.o
    CC t/helper/test-repository.o
    CC t/helper/test-revision-walking.o
    CC t/helper/test-run-command.o
    CC t/helper/test-scrap-cache-tree.o
    CC t/helper/test-serve-v2.o
    CC t/helper/test-sha1.o
    CC t/helper/test-sha256.o
    CC t/helper/test-sigchain.o
    CC t/helper/test-simple-ipc.o
    CC t/helper/test-strcmp-offset.o
    CC t/helper/test-string-list.o
    CC t/helper/test-submodule-config.o
    CC t/helper/test-submodule-nested-repo-config.o
    CC t/helper/test-submodule.o
    CC t/helper/test-subprocess.o
    CC t/helper/test-trace2.o
    CC t/helper/test-truncate.o
    CC t/helper/test-urlmatch-normalization.o
    CC t/helper/test-userdiff.o
    CC t/helper/test-windows-named-pipe.o
    CC t/helper/test-write-cache.o
    CC t/helper/test-xml-encode.o
    CC t/helper/test-wildmatch.o
    MKDIR -p bin-wrappers
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git
    MKDIR -p bin-wrappers
    GEN bin-wrappers/scalar
    GEN bin-wrappers/git-receive-pack
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-shell
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-upload-archive
    MKDIR -p bin-wrappers
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-upload-pack
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-cvsserver
    GEN bin-wrappers/test-fake-ssh
    MKDIR -p bin-wrappers
    GEN gitweb/static/gitweb.js
    GEN bin-wrappers/test-tool
    CC oss-fuzz/fuzz-commit-graph.o
    CC oss-fuzz/fuzz-pack-headers.o
    CC oss-fuzz/fuzz-pack-idx.o
    CC daemon.o
    CC common-main.o
    CC abspath.o
    CC add-interactive.o
    CC add-patch.o
    CC advice.o
    CC alias.o
    CC alloc.o
    CC apply.o
    CC archive-tar.o
    CC archive-zip.o
    CC archive.o
    CC attr.o
    CC base85.o
    CC bisect.o
    CC blame.o
    CC blob.o
    CC bloom.o
    CC branch.o
    CC bulk-checkin.o
    CC bundle-uri.o
    CC bundle.o
    CC cache-tree.o
    CC cbtree.o
    CC chdir-notify.o
    CC checkout.o
    CC chunk-format.o
    CC color.o
    CC column.o
    CC combine-diff.o
    CC commit-graph.o
    CC commit-reach.o
    CC commit.o
    CC compat/nonblock.o
    CC compat/obstack.o
    CC compat/terminal.o
    CC compat/zlib-uncompress2.o
    CC config.o
    CC connect.o
    CC connected.o
    CC convert.o
    CC copy.o
    CC credential.o
    CC csum-file.o
    CC ctype.o
    CC date.o
    CC decorate.o
    CC delta-islands.o
    CC diagnose.o
    CC diff-delta.o
    CC diff-merges.o
    CC diff-lib.o
    CC diff-no-index.o
    CC diff.o
    CC diffcore-break.o
    CC diffcore-delta.o
    CC diffcore-order.o
    CC diffcore-pickaxe.o
    CC diffcore-rename.o
    CC diffcore-rotate.o
    CC dir-iterator.o
    CC dir.o
    CC editor.o
    CC entry.o
    CC environment.o
    CC ewah/bitmap.o
    CC ewah/ewah_bitmap.o
    CC ewah/ewah_io.o
    CC ewah/ewah_rlw.o
    CC exec-cmd.o
    CC fetch-negotiator.o
    CC fetch-pack.o
    CC fmt-merge-msg.o
    CC fsck.o
    CC fsmonitor.o
    CC fsmonitor-ipc.o
    CC fsmonitor-settings.o
    CC gettext.o
    CC git-zlib.o
    CC gpg-interface.o
    CC grep.o
    CC hash-lookup.o
    CC hashmap.o
    CC help.o
    CC hex.o
    CC hex-ll.o
    CC hook.o
    CC ident.o
    CC json-writer.o
    CC kwset.o
    CC graph.o
    CC levenshtein.o
    CC line-log.o
    CC line-range.o
    CC linear-assignment.o
    CC list-objects-filter-options.o
    CC list-objects-filter.o
    CC list-objects.o
    CC lockfile.o
    CC log-tree.o
    CC ls-refs.o
    CC mailinfo.o
    CC mailmap.o
    CC match-trees.o
    CC mem-pool.o
    CC merge-blobs.o
    CC merge-ll.o
    CC merge-ort.o
    CC merge-ort-wrappers.o
    CC merge-recursive.o
    CC merge.o
    CC midx.o
    CC name-hash.o
    CC negotiator/default.o
    CC negotiator/noop.o
    CC negotiator/skipping.o
    CC notes-cache.o
    CC notes-merge.o
    CC notes-utils.o
    CC notes.o
    CC object-file.o
    CC object-name.o
    CC object.o
    CC oid-array.o
    CC oidmap.o
    CC oidset.o
    CC oidtree.o
    CC pack-bitmap-write.o
    CC pack-bitmap.o
    CC pack-check.o
    CC pack-mtimes.o
    CC pack-objects.o
    CC pack-revindex.o
    CC pack-write.o
    CC packfile.o
    CC pager.o
    CC parallel-checkout.o
    CC parse.o
    CC parse-options-cb.o
    CC parse-options.o
    CC patch-delta.o
    CC patch-ids.o
    CC path.o
    CC pathspec.o
    CC pkt-line.o
    CC preload-index.o
    CC pretty.o
    CC prio-queue.o
    CC progress.o
    CC promisor-remote.o
    CC prompt.o
    CC protocol.o
    CC protocol-caps.o
    CC prune-packed.o
    CC quote.o
    CC range-diff.o
    CC reachable.o
    CC read-cache.o
    CC rebase-interactive.o
    CC rebase.o
    CC ref-filter.o
    CC reflog-walk.o
    CC reflog.o
    CC refs.o
    CC refs/debug.o
    CC refs/files-backend.o
    CC refs/iterator.o
    CC refs/packed-backend.o
    CC refs/ref-cache.o
    CC refspec.o
    CC remote.o
    CC replace-object.o
    CC repo-settings.o
    CC repository.o
    CC rerere.o
    CC reset.o
    CC resolve-undo.o
    CC revision.o
    CC run-command.o
    CC send-pack.o
    CC sequencer.o
    CC server-info.o
    CC setup.o
    CC shallow.o
    CC sideband.o
    CC sigchain.o
    CC sparse-index.o
    CC split-index.o
    CC stable-qsort.o
    CC statinfo.o
    CC strbuf.o
    CC streaming.o
    CC string-list.o
    CC strmap.o
    CC strvec.o
    CC sub-process.o
    CC submodule-config.o
    CC submodule.o
    CC serve.o
    CC symlinks.o
    CC tag.o
    CC tempfile.o
    CC tmp-objdir.o
    CC trace.o
    CC trace2.o
    CC trace2/tr2_cfg.o
    CC thread-utils.o
    CC trace2/tr2_cmd_name.o
    CC trace2/tr2_ctr.o
    CC trace2/tr2_dst.o
    CC trace2/tr2_tgt_event.o
    CC trace2/tr2_tgt_normal.o
    CC trace2/tr2_tgt_perf.o
    CC trace2/tr2_tls.o
    CC trailer.o
    CC transport-helper.o
    CC tree-diff.o
    CC tree-walk.o
    CC unpack-trees.o
    CC upload-pack.o
    CC tree.o
    CC trace2/tr2_sid.o
    CC transport.o
    CC trace2/tr2_sysenv.o
    CC trace2/tr2_tbuf.o
    CC trace2/tr2_tmr.o
    CC url.o
    CC urlmatch.o
    CC usage.o
    CC userdiff.o
    CC utf8.o
    CC varint.o
    CC version.o
    AR xdiff/lib.a
    AR reftable/libreftable.a
    GEN git-difftool--helper
    GEN git-filter-branch
    GEN git-merge-octopus
    GEN git-merge-one-file
    GEN git-merge-resolve
    GEN git-mergetool
    GEN git-quiltimport
    GEN git-request-pull
    GEN git-submodule
    GEN git-web--browse
    GEN GIT-PERL-HEADER
    GEN git-p4
    GEN git-instaweb
    CC builtin/bugreport.o
    CC builtin/help.o
    GEN gitweb/gitweb.cgi
    AR reftable/libreftable_test.a
    GEN git-archimport
    GEN git-cvsexportcommit
    GEN git-cvsimport
    GEN git-cvsserver
    GEN git-send-email
    GEN git-svn
    AR libgit.a
    LINK git-daemon
    LINK git-http-backend
    LINK git-imap-send
    LINK git-sh-i18n--envsubst
    LINK git-shell
    LINK git-http-fetch
    LINK git-http-push
    LINK git-remote-http
    LINK git
    LINK scalar
    LINK t/helper/test-fake-ssh
    LINK t/helper/test-tool
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [git-daemon] Error 1
make: *** Waiting for unfinished jobs....
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
make: *** [git-http-backend] Error 1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'
make: *** [git-imap-send] Error 1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
make: *** [git-sh-i18n--envsubst] Error 1
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a', 'reftable/libreftable.a', 'xdiff/lib.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [git-http-push] Error 1
make: *** [git-remote-http] Error 1
make: *** [git-http-fetch] Error 1
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a', 'reftable/libreftable.a', 'xdiff/lib.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable_test.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [t/helper/test-fake-ssh] Error 1
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
make: *** [git] Error 1
make: *** [scalar] Error 1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [git-shell] Error 1
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable_test.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [t/helper/test-tool] Error 1
@marslo
Copy link
Author

marslo commented Dec 8, 2023

logs for add environment:

export NO_GETTEXT=true
export CC=clang
export CXX=clang++

logs

$ export CC=clang
$ export CXX=clang++
$ export NO_GETTEXT=true

$ make configure
GIT_VERSION = 2.43.0
    GEN configure

$ ./configure --prefix=/usr/local --with-shell=/usr/local/bin/bash
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
configure: Setting SHELL_PATH to /usr/local/bin/bash
configure: CHECKS for programs
checking whether the compiler supports GNU C... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to enable C11 features... (cached) none needed
checking for inline... inline
checking if linker supports -R... no
checking if linker supports -Wl,-rpath,... yes
checking for gar... gar
checking for gtar... gtar
checking for gnudiff... no
checking for gdiff... no
checking for diff... diff
checking for asciidoc... asciidoc
checking for asciidoc version... asciidoc 10.2.0 (unknown)
configure: CHECKS for libraries
checking for SHA1_Init in -lcrypto... yes
checking for curl_global_init in -lcurl... yes
checking for curl-config... curl-config
configure: Setting CURL_LDFLAGS to '-L/usr/local/Cellar/curl/8.5.0/lib -lcurl'
checking for XML_ParserCreate in -lexpat... yes
checking for iconv in -lc... no
checking for iconv in -liconv... yes
checking for deflateBound in -lz... yes
checking for socket in -lc... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for hstrerror... yes
checking for basename in -lc... yes
checking if libc contains libintl... no
checking for libintl.h... yes
configure: CHECKS for header files
checking for sys/select.h... yes
checking for poll.h... yes
checking for sys/poll.h... yes
checking for inttypes.h... (cached) yes
checking for old iconv()... no
checking whether iconv omits bom for utf-16 and utf-32... no
configure: CHECKS for typedefs, structures, and compiler characteristics
checking for socklen_t... yes
checking for struct itimerval... yes
checking for struct stat.st_mtimespec.tv_nsec... yes
checking for struct stat.st_mtim.tv_nsec... no
checking for struct dirent.d_type... yes
checking for struct passwd.pw_gecos... yes
checking for struct sockaddr_storage... yes
checking for struct addrinfo... yes
checking for getaddrinfo... yes
checking for library containing getaddrinfo... none required
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/local/opt/grep/libexec/gnubin/grep
checking for egrep... /usr/local/opt/grep/libexec/gnubin/grep -E
checking whether the platform regex supports REG_STARTEND... yes
checking whether system succeeds to read fopen'ed directory... yes
checking whether snprintf() and/or vsnprintf() return bogus value... no
checking whether the platform uses typical file type bits... yes
configure: CHECKS for library functions
checking for libgen.h... yes
checking for paths.h... yes
checking for libcharset.h... yes
checking for strings.h... (cached) yes
checking for locale_charset in -liconv... yes
checking for clock_gettime... yes
checking for library containing clock_gettime... none required
checking for CLOCK_MONOTONIC... yes
checking for sync_file_range... no
checking for setitimer... yes
checking for library containing setitimer... none required
checking for strcasestr... yes
checking for library containing strcasestr... none required
checking for memmem... yes
checking for library containing memmem... none required
checking for strlcpy... yes
checking for library containing strlcpy... none required
checking for uintmax_t... yes
checking for strtoumax... yes
checking for library containing strtoumax... none required
checking for setenv... yes
checking for library containing setenv... none required
checking for unsetenv... yes
checking for library containing unsetenv... none required
checking for mkdtemp... yes
checking for library containing mkdtemp... none required
checking for initgroups... yes
checking for library containing initgroups... none required
checking for getdelim... yes
checking for library containing getdelim... none required
checking for BSD sysctl... yes
checking for POSIX Threads with ''... yes
configure: creating ./config.status
config.status: creating config.mak.autogen
config.status: executing config.mak.autogen commands

$ make -j all
    * new build flags
    * new link flags
    GEN command-list.h
    * new prefix flags
    CC versioncmp.o
    CC walker.o
    CC wildmatch.o
    CC worktree.o
    CC wrapper.o
    CC write-or-die.o
    CC ws.o
    CC wt-status.o
    CC xdiff-interface.o
    CC unix-socket.o
    CC unix-stream-server.o
    CC compat/simple-ipc/ipc-shared.o
    CC compat/simple-ipc/ipc-unix-socket.o
    CC sha1dc_git.o
    CC sha1collisiondetection/lib/sha1.o
    CC sha1collisiondetection/lib/ubc_check.o
    CC sha256/block/sha256.o
    CC compat/precompose_utf8.o
    CC compat/fopen.o
    CC compat/open.o
    CC compat/qsort_s.o
    CC compat/regcomp_enhanced.o
    CC compat/stub/procinfo.o
    CC compat/fsmonitor/fsm-listen-darwin.o
    CC compat/fsmonitor/fsm-health-darwin.o
    CC compat/fsmonitor/fsm-ipc-darwin.o
    CC compat/fsmonitor/fsm-settings-darwin.o
    CC compat/fsmonitor/fsm-path-utils-darwin.o
    CC xdiff/xdiffi.o
    CC xdiff/xemit.o
    CC xdiff/xhistogram.o
    CC xdiff/xmerge.o
    CC xdiff/xpatience.o
    CC xdiff/xprepare.o
    CC xdiff/xutils.o
    CC reftable/basics.o
    CC reftable/erro    CC builtin/archive.o
    CC reftable/blocksource.o
    CC reftable/publicbasics.o
    CC reftable/merged.o
    CC builtin/annotate.o
    CC builtin/apply.o
r.o
    CC reftable/block.o
    CC reftable/iter.o
    CC reftable/pq.o
    CC reftable/reader.o
    CC reftable/record.o
    CC reftable/refname.o
    CC reftable/generic.o
    CC reftable/stack.o
    CC reftable/writer.o
    CC reftable/tree.o
    CC http-backend.o
    CC imap-send.o
    CC http.o
    CC sh-i18n--envsubst.o
    CC shell.o
    CC http-walker.o
    CC http-fetch.o
    CC http-push.o
    CC remote-curl.o
    CC git.o
    * new script parameters
    CC builtin/add.o
    * new perl-specific parameters
    CC builtin/am.o
    * new Python interpreter location
    CC builtin/bisect.o
    CC builtin/blame.o
    CC builtin/branch.o
    GEN hook-list.h
    CC builtin/bundle.o
    CC builtin/cat-file.o
    CC builtin/check-attr.o
    CC builtin/check-ignore.o
    CC builtin/check-mailmap.o
    CC builtin/check-ref-format.o
    CC builtin/checkout--worker.o
    CC builtin/checkout-index.o
    CC builtin/checkout.o
    CC builtin/clean.o
    CC builtin/clone.o
    CC builtin/column.o
    CC builtin/commit-graph.o
    CC builtin/commit-tree.o
    CC builtin/commit.o
    CC builtin/config.o
    CC builtin/count-objects.o
    CC builtin/credential-cache--daemon.o
    CC builtin/credential-cache.o
    CC builtin/credential-store.o
    CC builtin/credential.o
    CC builtin/describe.o
    CC builtin/diagnose.o
    CC builtin/diff-files.o
    CC builtin/diff-index.o
    CC builtin/diff-tree.o
    CC builtin/diff.o
    CC builtin/difftool.o
    CC builtin/fast-export.o
    CC builtin/fast-import.o
    CC builtin/fetch-pack.o
    CC builtin/fetch.o
    CC builtin/fmt-merge-msg.o
    CC builtin/for-each-ref.o
    CC builtin/for-each-repo.o
    CC builtin/fsck.o
    CC builtin/fsmonitor--daemon.o
    CC builtin/gc.o
    CC builtin/get-tar-commit-id.o
    CC builtin/grep.o
    CC builtin/hash-object.o
    GEN config-list.h
    CC builtin/hook.o
    CC builtin/index-pack.o
    CC builtin/init-db.o
    CC builtin/interpret-trailers.o
    CC builtin/log.o
    CC builtin/ls-files.o
    CC builtin/ls-remote.o
    CC builtin/ls-tree.o
    CC builtin/mailinfo.o
    CC builtin/mailsplit.o
    CC builtin/merge-base.o
    CC builtin/merge-file.o
    CC builtin/merge-index.o
    CC builtin/merge-ours.o
    CC builtin/merge-recursive.o
    CC builtin/merge-tree.o
    CC builtin/merge.o
    CC builtin/mktag.o
    CC builtin/mktree.o
    CC builtin/multi-pack-index.o
    CC builtin/mv.o
    CC builtin/name-rev.o
    CC builtin/notes.o
    CC builtin/pack-objects.o
    CC builtin/pack-redundant.o
    CC builtin/pack-refs.o
    CC builtin/patch-id.o
    CC builtin/prune-packed.o
    CC builtin/prune.o
    CC builtin/pull.o
    CC builtin/push.o
    CC builtin/range-diff.o
    CC builtin/read-tree.o
    CC builtin/rebase.o
    CC builtin/receive-pack.o
    CC builtin/reflog.o
    CC builtin/remote-ext.o
    CC builtin/remote-fd.o
    CC builtin/remote.o
    CC builtin/repack.o
    CC builtin/replace.o
    CC builtin/rerere.o
    CC builtin/reset.o
    CC builtin/rev-list.o
    CC builtin/rev-parse.o
    CC builtin/revert.o
    CC builtin/rm.o
    CC builtin/send-pack.o
    CC builtin/shortlog.o
    CC builtin/show-branch.o
    CC builtin/show-index.o
    CC builtin/show-ref.o
    CC builtin/sparse-checkout.o
    CC builtin/stash.o
    CC builtin/stripspace.o
    CC builtin/submodule--helper.o
    CC builtin/symbolic-ref.o
    CC builtin/tag.o
    CC builtin/unpack-file.o
    CC builtin/unpack-objects.o
    CC builtin/update-index.o
    CC builtin/update-ref.o
    CC builtin/update-server-info.o
    CC builtin/upload-archive.o
    CC builtin/upload-pack.o
    CC builtin/var.o
    CC builtin/verify-commit.o
    CC builtin/verify-pack.o
    CC builtin/verify-tag.o
    CC builtin/worktree.o
    CC builtin/write-tree.o
    GEN git-mergetool--lib
    GEN git-sh-i18n
    GEN git-sh-setup
    CC scalar.o
    MKDIR -p po/build/locale/bg/LC_MESSAGES
    MKDIR -p po/build/locale/ca/LC_MESSAGES
    MSGFMT po/build/locale/bg/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/de/LC_MESSAGES
    MSGFMT po/build/locale/ca/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/de/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/el/LC_MESSAGES
    MSGFMT po/build/locale/el/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/es/LC_MESSAGES
    MSGFMT po/build/locale/es/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/fr/LC_MESSAGES
    MKDIR -p po/build/locale/id/LC_MESSAGES
    MSGFMT po/build/locale/fr/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/is/LC_MESSAGES
    MSGFMT po/build/locale/id/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/it/LC_MESSAGES
    MSGFMT po/build/locale/is/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/it/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/ko/LC_MESSAGES
    MSGFMT po/build/locale/ko/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/pl/LC_MESSAGES
    MKDIR -p po/build/locale/pt_PT/LC_MESSAGES
    MSGFMT po/build/locale/pl/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/ru/LC_MESSAGES
    MKDIR -p po/build/locale/sv/LC_MESSAGES
    MSGFMT po/build/locale/ru/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/sv/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/tr/LC_MESSAGES
    MKDIR -p po/build/locale/uk/LC_MESSAGES
    MSGFMT po/build/locale/tr/LC_MESSAGES/git.mo
    MSGFMT po/build/locale/uk/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/vi/LC_MESSAGES
    MSGFMT po/build/locale/vi/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/zh_CN/LC_MESSAGES
    MSGFMT po/build/locale/zh_CN/LC_MESSAGES/git.mo
    MKDIR -p po/build/locale/zh_TW/LC_MESSAGES
    MKDIR -p perl/build/lib
    MSGFMT po/build/locale/zh_TW/LC_MESSAGES/git.mo
    MKDIR -p perl/build/lib/Git
    GEN perl/build/lib/Git.pm
    GEN perl/build/lib/Git/I18N.pm
    MKDIR -p perl/build/lib/Git
    MKDIR -p perl/build/lib/Git
    MKDIR -p perl/build/lib/Git
    GEN perl/build/lib/Git/LoadCPAN.pm
    GEN perl/build/lib/Git/Packet.pm
    GEN perl/build/lib/Git/IndexInfo.pm
    MKDIR -p perl/build/lib/Git
    MKDIR -p perl/build/lib/Git/LoadCPAN
    GEN perl/build/lib/Git/SVN.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/LoadCPAN/Error.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Editor.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Fetcher.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/GlobSpec.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Log.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Migration.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Prompt.pm
    MKDIR -p perl/build/lib/Git/SVN
    GEN perl/build/lib/Git/SVN/Ra.pm
    MKDIR -p perl/build/lib/Git/LoadCPAN/Mail
    GEN perl/build/lib/Git/SVN/Utils.pm
    MKDIR -p perl/build/lib/Git/SVN/Memoize
    GEN perl/build/lib/Git/LoadCPAN/Mail/Address.pm
    MKDIR -p perl/build/lib/FromCPAN
    GEN perl/build/lib/Git/SVN/Memoize/YAML.pm
    GEN perl/build/lib/FromCPAN/Error.pm
    MKDIR -p perl/build/lib/FromCPAN/Mail
    CC t/helper/test-fake-ssh.o
    CC reftable/basics_test.o
    CC reftable/block_test.o
    CC reftable/dump.o
    GEN perl/build/lib/FromCPAN/Mail/Address.pm
    CC reftable/merged_test.o
    CC reftable/pq_test.o
    CC reftable/record_test.o
    CC reftable/readwrite_test.o
    CC reftable/refname_test.o
    CC reftable/stack_test.o
    CC reftable/test_framework.o
    CC reftable/tree_test.o
    CC t/helper/test-tool.o
    CC t/helper/test-advise.o
    CC t/helper/test-bitmap.o
    CC t/helper/test-bloom.o
    CC t/helper/test-bundle-uri.o
    CC t/helper/test-cache-tree.o
    CC t/helper/test-chmtime.o
    CC t/helper/test-config.o
    CC t/helper/test-crontab.o
    CC t/helper/test-csprng.o
    CC t/helper/test-ctype.o
    CC t/helper/test-date.o
    CC t/helper/test-delta.o
    CC t/helper/test-dir-iterator.o
    CC t/helper/test-drop-caches.o
    CC t/helper/test-dump-cache-tree.o
    CC t/helper/test-dump-fsmonitor.o
    CC t/helper/test-dump-split-index.o
    CC t/helper/test-dump-untracked-cache.o
    CC t/helper/test-env-helper.o
    CC t/helper/test-example-decorate.o
    CC t/helper/test-fast-rebase.o
    CC t/helper/test-find-pack.o
    CC t/helper/test-fsmonitor-client.o
    CC t/helper/test-genrandom.o
    CC t/helper/test-genzeros.o
    CC t/helper/test-getcwd.o
    CC t/helper/test-hash-speed.o
    CC t/helper/test-hash.o
    CC t/helper/test-hashmap.o
    CC t/helper/test-hexdump.o
    CC t/helper/test-json-writer.o
    CC t/helper/test-lazy-init-name-hash.o
    CC t/helper/test-match-trees.o
    CC t/helper/test-mergesort.o
    CC t/helper/test-mktemp.o
    CC t/helper/test-oid-array.o
    CC t/helper/test-oidtree.o
    CC t/helper/test-online-cpus.o
    CC t/helper/test-pack-mtimes.o
    CC t/helper/test-parse-pathspec-file.o
    CC t/helper/test-oidmap.o
    CC t/helper/test-partial-clone.o
    CC t/helper/test-parse-options.o
    CC t/helper/test-path-utils.o
    CC t/helper/test-pcre2-config.o
    CC t/helper/test-pkt-line.o
    CC t/helper/test-prio-queue.o
    CC t/helper/test-proc-receive.o
    CC t/helper/test-progress.o
    CC t/helper/test-reach.o
    CC t/helper/test-read-cache.o
    CC t/helper/test-read-graph.o
    CC t/helper/test-read-midx.o
    CC t/helper/test-ref-store.o
    CC t/helper/test-reftable.o
    CC t/helper/test-regex.o
    CC t/helper/test-rot13-filter.o
    CC t/helper/test-repository.o
    CC t/helper/test-revision-walking.o
    CC t/helper/test-run-command.o
    CC t/helper/test-scrap-cache-tree.o
    CC t/helper/test-serve-v2.o
    CC t/helper/test-sha1.o
    CC t/helper/test-sha256.o
    CC t/helper/test-sigchain.o
    CC t/helper/test-simple-ipc.o
    CC t/helper/test-strcmp-offset.o
    CC t/helper/test-string-list.o
    CC t/helper/test-submodule-config.o
    CC t/helper/test-submodule-nested-repo-config.o
    CC t/helper/test-submodule.o
    CC t/helper/test-subprocess.o
    CC t/helper/test-trace2.o
    CC t/helper/test-truncate.o
    CC t/helper/test-urlmatch-normalization.o
    CC t/helper/test-userdiff.o
    CC t/helper/test-wildmatch.o
    CC t/helper/test-windows-named-pipe.o
    CC t/helper/test-write-cache.o
    CC t/helper/test-xml-encode.o
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git
    MKDIR -p bin-wrappers
    GEN bin-wrappers/scalar
    MKDIR -p bin-wrappers
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-receive-pack
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-shell
    GEN bin-wrappers/git-upload-archive
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-upload-pack
    MKDIR -p bin-wrappers
    GEN bin-wrappers/git-cvsserver
    MKDIR -p bin-wrappers
    GEN bin-wrappers/test-fake-ssh
    MKDIR -p bin-wrappers
    GEN gitweb/static/gitweb.js
    GEN bin-wrappers/test-tool
    CC oss-fuzz/fuzz-commit-graph.o
    CC oss-fuzz/fuzz-pack-headers.o
    CC oss-fuzz/fuzz-pack-idx.o
    CC daemon.o
    CC common-main.o
    CC abspath.o
    CC add-interactive.o
    CC add-patch.o
    CC advice.o
    CC alias.o
    CC alloc.o
    CC apply.o
    CC archive-tar.o
    CC archive-zip.o
    CC archive.o
    CC attr.o
    CC base85.o
    CC bisect.o
    CC blame.o
    CC blob.o
    CC branch.o
    CC bloom.o
    CC bulk-checkin.o
    CC bundle-uri.o
    CC bundle.o
    CC cache-tree.o
    CC cbtree.o
    CC chdir-notify.o
    CC checkout.o
    CC chunk-format.o
    CC color.o
    CC combine-diff.o
    CC column.o
    CC commit-graph.o
    CC commit-reach.o
    CC commit.o
    CC compat/nonblock.o
    CC compat/obstack.o
    CC compat/terminal.o
    CC compat/zlib-uncompress2.o
    CC config.o
    CC connect.o
    CC connected.o
    CC convert.o
    CC copy.o
    CC credential.o
    CC csum-file.o
    CC ctype.o
    CC date.o
    CC decorate.o
    CC delta-islands.o
    CC diagnose.o
    CC diff-delta.o
    CC diff-merges.o
    CC diff-lib.o
    CC diff-no-index.o
    CC diff.o
    CC diffcore-break.o
    CC diffcore-delta.o
    CC diffcore-order.o
    CC diffcore-pickaxe.o
    CC diffcore-rename.o
    CC diffcore-rotate.o
    CC dir-iterator.o
    CC dir.o
    CC editor.o
    CC entry.o
    CC environment.o
    CC ewah/bitmap.o
    CC ewah/ewah_bitmap.o
    CC ewah/ewah_io.o
    CC ewah/ewah_rlw.o
    CC exec-cmd.o
    CC fetch-negotiator.o
    CC fetch-pack.o
    CC fmt-merge-msg.o
    CC fsck.o
    CC fsmonitor.o
    CC fsmonitor-ipc.o
    CC fsmonitor-settings.o
    CC gettext.o
    CC git-zlib.o
    CC gpg-interface.o
    CC graph.o
    CC grep.o
    CC hash-lookup.o
    CC hashmap.o
    CC help.o
    CC hex.o
    CC hex-ll.o
    CC hook.o
    CC ident.o
    CC json-writer.o
    CC kwset.o
    CC levenshtein.o
    CC line-log.o
    CC line-range.o
    CC linear-assignment.o
    CC list-objects-filter-options.o
    CC list-objects-filter.o
    CC list-objects.o
    CC lockfile.o
    CC log-tree.o
    CC ls-refs.o
    CC mailinfo.o
    CC mailmap.o
    CC match-trees.o
    CC mem-pool.o
    CC merge-blobs.o
    CC merge-ll.o
    CC merge-ort.o
    CC merge-ort-wrappers.o
    CC merge-recursive.o
    CC merge.o
    CC midx.o
    CC name-hash.o
    CC negotiator/default.o
    CC negotiator/noop.o
    CC negotiator/skipping.o
    CC notes-cache.o
    CC notes-merge.o
    CC notes-utils.o
    CC notes.o
    CC object-file.o
    CC object-name.o
    CC object.o
    CC oid-array.o
    CC oidmap.o
    CC oidset.o
    CC oidtree.o
    CC pack-bitmap-write.o
    CC pack-bitmap.o
    CC pack-check.o
    CC pack-mtimes.o
    CC pack-objects.o
    CC pack-revindex.o
    CC pack-write.o
    CC packfile.o
    CC pager.o
    CC parallel-checkout.o
    CC parse.o
    CC parse-options-cb.o
    CC parse-options.o
    CC patch-delta.o
    CC patch-ids.o
    CC path.o
    CC pathspec.o
    CC pkt-line.o
    CC preload-index.o
    CC pretty.o
    CC prio-queue.o
    CC progress.o
    CC promisor-remote.o
    CC prompt.o
    CC protocol.o
    CC protocol-caps.o
    CC prune-packed.o
    CC quote.o
    CC range-diff.o
    CC reachable.o
    CC read-cache.o
    CC rebase-interactive.o
    CC rebase.o
    CC ref-filter.o
    CC reflog-walk.o
    CC reflog.o
    CC refs.o
    CC refs/debug.o
    CC refs/files-backend.o
    CC refs/iterator.o
    CC refs/packed-backend.o
    CC refs/ref-cache.o
    CC refspec.o
    CC remote.o
    CC replace-object.o
    CC repo-settings.o
    CC repository.o
    CC rerere.o
    CC reset.o
    CC resolve-undo.o
    CC revision.o
    CC run-command.o
    CC send-pack.o
    CC sequencer.o
    CC serve.o
    CC server-info.o
    CC setup.o
    CC shallow.o
    CC sideband.o
    CC sigchain.o
    CC sparse-index.o
    CC split-index.o
    CC stable-qsort.o
    CC statinfo.o
    CC strbuf.o
    CC streaming.o
    CC string-list.o
    CC strmap.o
    CC sub-process.o
    CC strvec.o
    CC submodule-config.o
    CC submodule.o
    CC symlinks.o
    CC tag.o
    CC tempfile.o
    CC thread-utils.o
    CC tmp-objdir.o
    CC trace.o
    CC trace2.o
    CC trace2/tr2_cfg.o
    CC trace2/tr2_cmd_name.o
    CC trace2/tr2_ctr.o
    CC trace2/tr2_dst.o
    CC trace2/tr2_sid.o
    CC trace2/tr2_sysenv.o
    CC trace2/tr2_tbuf.o
    CC trace2/tr2_tgt_event.o
    CC trace2/tr2_tgt_normal.o
    CC trace2/tr2_tgt_perf.o
    CC trace2/tr2_tmr.o
    CC trace2/tr2_tls.o
    CC trailer.o
    CC transport-helper.o
    CC transport.o
    CC tree-diff.o
    CC tree-walk.o
    CC tree.o
    CC unpack-trees.o
    CC upload-pack.o
    CC url.o
    CC urlmatch.o
    CC usage.o
    CC userdiff.o
    CC utf8.o
    CC varint.o
    CC version.o
    AR xdiff/lib.a
    AR reftable/libreftable.a
    GEN git-difftool--helper
    GEN git-filter-branch
    GEN git-merge-octopus
    GEN git-merge-one-file
    GEN git-merge-resolve
    GEN git-mergetool
    GEN git-quiltimport
    GEN git-request-pull
    GEN git-submodule
    GEN git-web--browse
    GEN GIT-PERL-HEADER
    GEN git-p4
    GEN git-instaweb
    CC builtin/bugreport.o
    CC builtin/help.o
    AR reftable/libreftable_test.a
    GEN gitweb/gitweb.cgi
    GEN git-archimport
    GEN git-cvsexportcommit
    GEN git-cvsimport
    GEN git-cvsserver
    GEN git-send-email
    GEN git-svn
    AR libgit.a
    LINK git-daemon
    LINK git-http-backend
    LINK git-imap-send
    LINK git-sh-i18n--envsubst
    LINK git-shell
    LINK git-http-fetch
    LINK git-http-push
    LINK git-remote-http
    LINK git
    LINK t/helper/test-fake-ssh
    LINK scalar
    LINK t/helper/test-tool
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a', 'reftable/libreftable.a', 'xdiff/lib.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a', 'reftable/libreftable.a', 'xdiff/lib.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: warning: ignoring duplicate libraries: '-liconv', 'libgit.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [git-imap-send] Error 1
make: *** Waiting for unfinished jobs....
make: *** [git-remote-http] Error 1
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable_test.a'
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
make: *** [git] Error 1
ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
clangld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in make: ld: multiple errors: archive member '/' not a mach-o file in '/Users/marslo/tools/git/libgit.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable_test.a'
'/Users/marslo/tools/git/xdiff/lib.a'; archive member '/' not a mach-o file in '/Users/marslo/tools/git/reftable/libreftable.a'
: *** [git-http-push] Error 1
error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [git-sh-i18n--envsubst] Error 1
make: *** [git-daemon] Error 1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [git-http-backend] Error 1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [t/helper/test-fake-ssh] Error 1
make: *** [t/helper/test-tool] Error 1
make: *** [git-shell] Error 1
make: *** [scalar] Error 1
make: *** [git-http-fetch] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment