[MacPorts] #27624: git-core @1.7.3.3 fails to build with macports gcc selected

MacPorts noreply at macports.org
Fri Dec 10 14:46:38 PST 2010


#27624: git-core @1.7.3.3 fails to build with macports gcc selected
------------------------------------+---------------------------------------
 Reporter:  jason.swails@…          |       Owner:  maccheck@…        
     Type:  defect                  |      Status:  new               
 Priority:  Low                     |   Milestone:                    
Component:  ports                   |     Version:  1.9.2             
 Keywords:                          |        Port:  git-core          
------------------------------------+---------------------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)


Old 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.

New description:

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

 Xcode v3.2.3 [[br]]
 MacBook Pro, OS X 10.6.5 [[br]]
 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.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/27624#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list