Opened 13 years ago

Last modified 13 years ago

#27624 closed defect

latest version of git-core fails to build — at Initial Version

Reported by: jason.swails@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: git-core

Description

Hopefully this is not a repeat, I tried searching to see if it was. Here are my system specs:

Xcode v3.2.3 MacBook Pro, OS X 10.6.5 2.53 GHz Core 2 Duo

Here is the tail of the verbose build log after "port install git-core"

  • new build flags or prefix CC fast-import.o

cc1: error: unrecognized command line option "-arch" make: * [fast-import.o] Error 1 shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_de

... etc.

I have multiple GCCs built along with gcc_select, and the default GCC version is typically 4.4 or 4.5, depending on my mood, but never the Xcode version. -arch is recognized by the Xcode gcc, but not by any of the MacPorts builds. Temporarily making gcc42 my default fixes the above issue, but I've never encountered it with any other port before (as Ports that require Xcode GCC often use gcc-4.2 as their default compiler) I'm not quite familiar enough with some of the inner-workings of MacPorts to know how to fix this.

Change History (0)

Note: See TracTickets for help on using tickets.