Re: [MacPorts] #65933: git @2.38.0 does not build with gcc-4.2, because wrong number of arguments specified for ‘deprecated’ attribute

MacPorts noreply at macports.org
Fri Nov 11 20:17:41 UTC 2022


#65933: git @2.38.0 does not build with gcc-4.2, because wrong number of arguments
specified for ‘deprecated’ attribute
------------------------+------------------------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.2
Resolution:             |   Keywords:  leopard tiger haspatch
      Port:  git        |
------------------------+------------------------------------

Comment (by ballapete):

 Similarly on `macOS Monterey, Version 12.6`:

 {{{
 root 348 /\ find . -type f -name "json*" -ls
 528951190       16 -rw-r--r--    1 macports         wheel
 4292  7 Okt 06:48 ./git-2.38.1/json-writer.h
 528955243       24 -rw-r--r--    1 macports         wheel
 10856 11 Nov 20:52 ./git-2.38.1/json-writer.o
 528955263        8 -rw-r--r--    1 macports         wheel
 969 11 Nov 20:52 ./git-2.38.1/.depend/json-writer.o.d
 528951189       24 -rw-r--r--    1 macports         wheel
 8679  7 Okt 06:48 ./git-2.38.1/json-writer.c
 }}}

 `port build …` + `port test …` produce them same result as `port test …`
 only. Here I can see:

 {{{
 /bin/sh ./generate-cmdlist.sh \
                  \
                 command-list.txt >command-list.h
 /usr/bin/clang -o hex.o -c -MF ./.depend/hex.o.d -MQ hex.o -MMD -MP    -Os
 -std=gnu99 -arch x86_64 -I. -DPRECOMPOSE_UNICODE -DPROTECT_HFS_DEFAULT=1
 -DGIT_HOST_CPU="\"x86_64\"" -DUSE_LIBPCRE2 -I/opt/local/include
 -I/opt/local/include -DUSE_CURL_FOR_IMAP_SEND -DNO_OPENSSL
 -I/opt/local/include -DUSE_ST_TIMESPEC -DSUPPORTS_SIMPLE_IPC -DSHA1_APPLE
 -DSHA256_BLK -DSHA1_MAX_BLOCK_SIZE="1024L*1024L*1024L"  -DHAVE_DEV_TTY
 -DHAVE_BSD_SYSCTL -DHAVE_GETDELIM -DHAVE_ARC4RANDOM
 -DHAVE_NS_GET_EXECUTABLE_PATH  -DAPPLE_COMMON_CRYPTO
 -DFREAD_READS_DIRECTORIES -DOPEN_RETURNS_EINTR -DCOMMON_DIGEST_FOR_OPENSSL
 -DNO_MEMMEM -Icompat/regex -DHAVE_FSMONITOR_DAEMON_BACKEND
 -DHAVE_FSMONITOR_OS_SETTINGS -DSHELL_PATH='"/bin/sh"'  hex.c
 /usr/bin/clang -o hook.o -c -MF ./.depend/hook.o.d -MQ hook.o -MMD -MP
 -Os -std=gnu99 -arch x86_64 -I. -DPRECOMPOSE_UNICODE
 -DPROTECT_HFS_DEFAULT=1 -DGIT_HOST_CPU="\"x86_64\"" -DUSE_LIBPCRE2
 -I/opt/local/include -I/opt/local/include -DUSE_CURL_FOR_IMAP_SEND
 -DNO_OPENSSL -I/opt/local/include -DUSE_ST_TIMESPEC -DSUPPORTS_SIMPLE_IPC
 -DSHA1_APPLE -DSHA256_BLK -DSHA1_MAX_BLOCK_SIZE="1024L*1024L*1024L"
 -DHAVE_DEV_TTY -DHAVE_BSD_SYSCTL -DHAVE_GETDELIM -DHAVE_ARC4RANDOM
 -DHAVE_NS_GET_EXECUTABLE_PATH  -DAPPLE_COMMON_CRYPTO
 -DFREAD_READS_DIRECTORIES -DOPEN_RETURNS_EINTR -DCOMMON_DIGEST_FOR_OPENSSL
 -DNO_MEMMEM -Icompat/regex -DHAVE_FSMONITOR_DAEMON_BACKEND
 -DHAVE_FSMONITOR_OS_SETTINGS -DSHELL_PATH='"/bin/sh"'  hook.c
 /usr/bin/clang -o ident.o -c -MF ./.depend/ident.o.d -MQ ident.o -MMD -MP
 -Os -std=gnu99 -arch x86_64 -I. -DPRECOMPOSE_UNICODE
 -DPROTECT_HFS_DEFAULT=1 -DGIT_HOST_CPU="\"x86_64\"" -DUSE_LIBPCRE2
 -I/opt/local/include -I/opt/local/include -DUSE_CURL_FOR_IMAP_SEND
 -DNO_OPENSSL -I/opt/local/include -DUSE_ST_TIMESPEC -DSUPPORTS_SIMPLE_IPC
 -DSHA1_APPLE -DSHA256_BLK -DSHA1_MAX_BLOCK_SIZE="1024L*1024L*1024L"
 -DHAVE_DEV_TTY -DHAVE_BSD_SYSCTL -DHAVE_GETDELIM -DHAVE_ARC4RANDOM
 -DHAVE_NS_GET_EXECUTABLE_PATH  -DAPPLE_COMMON_CRYPTO
 -DFREAD_READS_DIRECTORIES -DOPEN_RETURNS_EINTR -DCOMMON_DIGEST_FOR_OPENSSL
 -DNO_MEMMEM -Icompat/regex -DHAVE_FSMONITOR_DAEMON_BACKEND
 -DHAVE_FSMONITOR_OS_SETTINGS -DSHELL_PATH='"/bin/sh"'  ident.c
 /usr/bin/clang -o json-writer.o -c -MF ./.depend/json-writer.o.d -MQ json-
 writer.o -MMD -MP    -Os -std=gnu99 -arch x86_64 -I. -DPRECOMPOSE_UNICODE
 -DPROTECT_HFS_DEFAULT=1 -DGIT_HOST_CPU="\"x86_64\"" -DUSE_LIBPCRE2
 -I/opt/local/include -I/opt/local/include -DUSE_CURL_FOR_IMAP_SEND
 -DNO_OPENSSL -I/opt/local/include -DUSE_ST_TIMESPEC -DSUPPORTS_SIMPLE_IPC
 -DSHA1_APPLE -DSHA256_BLK -DSHA1_MAX_BLOCK_SIZE="1024L*1024L*1024L"
 -DHAVE_DEV_TTY -DHAVE_BSD_SYSCTL -DHAVE_GETDELIM -DHAVE_ARC4RANDOM
 -DHAVE_NS_GET_EXECUTABLE_PATH  -DAPPLE_COMMON_CRYPTO
 -DFREAD_READS_DIRECTORIES -DOPEN_RETURNS_EINTR -DCOMMON_DIGEST_FOR_OPENSSL
 -DNO_MEMMEM -Icompat/regex -DHAVE_FSMONITOR_DAEMON_BACKEND
 -DHAVE_FSMONITOR_OS_SETTINGS -DSHELL_PATH='"/bin/sh"'  json-writer.c
 }}}

 and later a different object:

 {{{
 /usr/bin/clang -o t/helper/test-json-writer.o -c -MF t/helper/.depend
 /test-json-writer.o.d -MQ t/helper/test-json-writer.o -MMD -MP    -Os
 -std=gnu99 -arch x86_64 -I. -DPRECOMPOSE_UNICODE -DPROTECT_HFS_DEFAULT=1
 -DGIT_HOST_CPU="\"x86_64\"" -DUSE_LIBPCRE2 -I/opt/local/include
 -I/opt/local/include -DUSE_CURL_FOR_IMAP_SEND -DNO_OPENSSL
 -I/opt/local/include -DUSE_ST_TIMESPEC -DSUPPORTS_SIMPLE_IPC -DSHA1_APPLE
 -DSHA256_BLK -DSHA1_MAX_BLOCK_SIZE="1024L*1024L*1024L"  -DHAVE_DEV_TTY
 -DHAVE_BSD_SYSCTL -DHAVE_GETDELIM -DHAVE_ARC4RANDOM
 -DHAVE_NS_GET_EXECUTABLE_PATH  -DAPPLE_COMMON_CRYPTO
 -DFREAD_READS_DIRECTORIES -DOPEN_RETURNS_EINTR -DCOMMON_DIGEST_FOR_OPENSSL
 -DNO_MEMMEM -Icompat/regex -DHAVE_FSMONITOR_DAEMON_BACKEND
 -DHAVE_FSMONITOR_OS_SETTINGS -DSHELL_PATH='"/bin/sh"'  t/helper/test-json-
 writer.c
 }}}

 Finally `static library` is built:

 {{{
 rm -f libgit.a && ar rcs libgit.a abspath.o add-interactive.o add-patch.o
 advice.o alias.o alloc.o apply.o archive-tar.o archive-zip.o archive.o
 attr.o base85.o bisect.o blame.o blob.o bloom.o branch.o bulk-checkin.o
 bundle-uri.o bundle.o cache-tree.o cbtree.o chdir-notify.o checkout.o
 chunk-format.o color.o column.o combine-diff.o commit-graph.o commit-
 reach.o commit.o compat/nonblock.o compat/obstack.o compat/terminal.o
 compat/zlib-uncompress2.o config.o connect.o connected.o convert.o copy.o
 credential.o csum-file.o ctype.o date.o decorate.o delta-islands.o
 diagnose.o diff-delta.o diff-merges.o diff-lib.o diff-no-index.o diff.o
 diffcore-break.o diffcore-delta.o diffcore-order.o diffcore-pickaxe.o
 diffcore-rename.o diffcore-rotate.o dir-iterator.o dir.o editor.o entry.o
 environment.o ewah/bitmap.o ewah/ewah_bitmap.o ewah/ewah_io.o
 ewah/ewah_rlw.o exec-cmd.o fetch-negotiator.o fetch-pack.o fmt-merge-msg.o
 fsck.o fsmonitor.o fsmonitor-ipc.o fsmonitor-settings.o gettext.o gpg-
 interface.o graph.o grep.o hash-lookup.o hashmap.o help.o hex.o hook.o
 ident.o json-writer.o kwset.o levenshtein.o line-log.o line-range.o
 linear-assignment.o list-objects-filter-options.o list-objects-filter.o
 list-objects.o ll-merge.o lockfile.o log-tree.o ls-refs.o mailinfo.o
 mailmap.o match-trees.o mem-pool.o merge-blobs.o merge-ort.o merge-ort-
 wrappers.o merge-recursive.o merge.o midx.o name-hash.o
 negotiator/default.o negotiator/noop.o negotiator/skipping.o notes-cache.o
 notes-merge.o notes-utils.o notes.o object-file.o object-name.o object.o
 oid-array.o oidmap.o oidset.o oidtree.o pack-bitmap-write.o pack-bitmap.o
 pack-check.o pack-mtimes.o pack-objects.o pack-revindex.o pack-write.o
 packfile.o pager.o parallel-checkout.o parse-options-cb.o parse-options.o
 patch-delta.o patch-ids.o path.o pathspec.o pkt-line.o preload-index.o
 pretty.o prio-queue.o progress.o promisor-remote.o prompt.o protocol.o
 protocol-caps.o prune-packed.o quote.o range-diff.o reachable.o read-
 cache.o rebase-interactive.o rebase.o ref-filter.o reflog-walk.o reflog.o
 refs.o refs/debug.o refs/files-backend.o refs/iterator.o refs/packed-
 backend.o refs/ref-cache.o refspec.o remote.o replace-object.o repo-
 settings.o repository.o rerere.o reset.o resolve-undo.o revision.o run-
 command.o send-pack.o sequencer.o serve.o server-info.o setup.o shallow.o
 sideband.o sigchain.o sparse-index.o split-index.o stable-qsort.o strbuf.o
 streaming.o string-list.o strmap.o strvec.o sub-process.o submodule-
 config.o submodule.o symlinks.o tag.o tempfile.o thread-utils.o tmp-
 objdir.o trace.o trace2.o trace2/tr2_cfg.o trace2/tr2_cmd_name.o
 trace2/tr2_dst.o trace2/tr2_sid.o trace2/tr2_sysenv.o trace2/tr2_tbuf.o
 trace2/tr2_tgt_event.o trace2/tr2_tgt_normal.o trace2/tr2_tgt_perf.o
 trace2/tr2_tls.o trailer.o transport-helper.o transport.o tree-diff.o
 tree-walk.o tree.o unpack-trees.o upload-pack.o url.o urlmatch.o usage.o
 userdiff.o utf8.o varint.o version.o versioncmp.o walker.o wildmatch.o
 worktree.o wrapper.o write-or-die.o ws.o wt-status.o xdiff-interface.o
 zlib.o unix-socket.o unix-stream-server.o compat/simple-ipc/ipc-shared.o
 compat/simple-ipc/ipc-unix-socket.o sha256/block/sha256.o
 compat/sha1-chunked.o compat/precompose_utf8.o compat/fopen.o
 compat/open.o compat/memmem.o compat/qsort_s.o compat/regex/regex.o
 compat/stub/procinfo.o compat/fsmonitor/fsm-listen-darwin.o
 compat/fsmonitor/fsm-health-darwin.o compat/fsmonitor/fsm-settings-
 darwin.o
 }}}

 and a test programme is also built:

 {{{
 /usr/bin/clang   -Os -std=gnu99 -arch x86_64 -I. -DPRECOMPOSE_UNICODE
 -DPROTECT_HFS_DEFAULT=1 -DGIT_HOST_CPU="\"x86_64\"" -DUSE_LIBPCRE2
 -I/opt/local/include -I/opt/local/include -DUSE_CURL_FOR_IMAP_SEND
 -DNO_OPENSSL -I/opt/local/include -DUSE_ST_TIMESPEC -DSUPPORTS_SIMPLE_IPC
 -DSHA1_APPLE -DSHA256_BLK -DSHA1_MAX_BLOCK_SIZE="1024L*1024L*1024L"
 -DHAVE_DEV_TTY -DHAVE_BSD_SYSCTL -DHAVE_GETDELIM -DHAVE_ARC4RANDOM
 -DHAVE_NS_GET_EXECUTABLE_PATH  -DAPPLE_COMMON_CRYPTO
 -DFREAD_READS_DIRECTORIES -DOPEN_RETURNS_EINTR -DCOMMON_DIGEST_FOR_OPENSSL
 -DNO_MEMMEM -Icompat/regex -DHAVE_FSMONITOR_DAEMON_BACKEND
 -DHAVE_FSMONITOR_OS_SETTINGS -DSHELL_PATH='"/bin/sh"' -o t/helper/test-
 tool -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64
 -framework CoreServices t/helper/test-tool.o common-main.o t/helper/test-
 advise.o t/helper/test-bitmap.o t/helper/test-bloom.o t/helper/test-
 chmtime.o t/helper/test-config.o t/helper/test-crontab.o t/helper/test-
 csprng.o t/helper/test-ctype.o t/helper/test-date.o t/helper/test-delta.o
 t/helper/test-dir-iterator.o t/helper/test-drop-caches.o t/helper/test-
 dump-cache-tree.o t/helper/test-dump-fsmonitor.o t/helper/test-dump-split-
 index.o t/helper/test-dump-untracked-cache.o t/helper/test-example-
 decorate.o t/helper/test-fast-rebase.o t/helper/test-fsmonitor-client.o
 t/helper/test-genrandom.o t/helper/test-genzeros.o t/helper/test-getcwd.o
 t/helper/test-hash-speed.o t/helper/test-hash.o t/helper/test-hashmap.o
 t/helper/test-hexdump.o t/helper/test-index-version.o t/helper/test-json-
 writer.o t/helper/test-lazy-init-name-hash.o t/helper/test-match-trees.o
 t/helper/test-mergesort.o t/helper/test-mktemp.o t/helper/test-oid-array.o
 t/helper/test-oidmap.o t/helper/test-oidtree.o t/helper/test-online-cpus.o
 t/helper/test-pack-mtimes.o t/helper/test-parse-options.o t/helper/test-
 parse-pathspec-file.o t/helper/test-partial-clone.o t/helper/test-path-
 utils.o t/helper/test-pcre2-config.o t/helper/test-pkt-line.o t/helper
 /test-prio-queue.o t/helper/test-proc-receive.o t/helper/test-progress.o
 t/helper/test-reach.o t/helper/test-read-cache.o t/helper/test-read-
 graph.o t/helper/test-read-midx.o t/helper/test-ref-store.o t/helper/test-
 reftable.o t/helper/test-regex.o t/helper/test-rot13-filter.o t/helper
 /test-repository.o t/helper/test-revision-walking.o t/helper/test-run-
 command.o t/helper/test-scrap-cache-tree.o t/helper/test-serve-v2.o
 t/helper/test-sha1.o t/helper/test-sha256.o t/helper/test-sigchain.o
 t/helper/test-simple-ipc.o t/helper/test-strcmp-offset.o t/helper/test-
 string-list.o t/helper/test-submodule-config.o t/helper/test-submodule-
 nested-repo-config.o t/helper/test-submodule.o t/helper/test-subprocess.o
 t/helper/test-trace2.o t/helper/test-urlmatch-normalization.o t/helper
 /test-userdiff.o t/helper/test-wildmatch.o t/helper/test-windows-named-
 pipe.o t/helper/test-write-cache.o t/helper/test-xml-encode.o libgit.a
 xdiff/lib.a reftable/libreftable.a reftable/libreftable_test.a libgit.a
 xdiff/lib.a reftable/libreftable.a libgit.a  -lpcre2-8 -L/opt/local/lib
 -Wl,-rpath,/opt/local/lib -lz -L/opt/local/lib -Wl,-rpath,/opt/local/lib
 -liconv -lintl
 }}}

 A few tests succeed, most fail… On intel macOS Monterey and on PPC
 Leopard.

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


More information about the macports-tickets mailing list