Opened 3 weeks ago

Closed 2 weeks ago

#70870 closed defect (invalid)

git install failed

Reported by: adalseno (Andrea Dalseno) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc:
Port: git

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am trying to install git on my Mac with Sonoma, but I get the following error:

--->  Building git
Error: Failed to build git: command execution failed

MacPort is version 2.10.1 and is up to date. Mac Os 14.6.1

Attachments (1)

main.log (1.9 MB) - added by adalseno (Andrea Dalseno) 3 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 3 weeks ago by adalseno (Andrea Dalseno)

Attachment: main.log added

comment:1 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: git install fail sonoma removed

The log shows the first error is:

:info:build /usr/local/include/Block.h:37:28: error: expected ';' after top level declarator
:info:build BLOCK_EXPORT void *__single _Block_copy(const void *__single aBlock)
:info:build                            ^

Get rid of what you have installed in /usr/local. See wiki:FAQ#usrlocal.

comment:2 Changed 3 weeks ago by adalseno (Andrea Dalseno)

It worked, thanks! I knew I had an old version of git installed, but I was scared of uninstalling it before installing the new one and finding myself without git. Using the trace option did the trick. After having installed the new version with MacPorts I removed the old one.

❯ which git
/opt/local/bin/git
❯ git --version
git version 2.46.1

Problem solved. Thank you very much.

comment:3 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.