[MacPorts] #36428: gcc44 4.4.7_6 compile error on Lion and Snow Leopard

MacPorts noreply at macports.org
Tue Oct 2 12:35:07 PDT 2012


#36428: gcc44 4.4.7_6 compile error on Lion and Snow Leopard
-----------------------+--------------------------------
 Reporter:  mwglass@…  |      Owner:  macports-tickets@…
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.1.2
 Keywords:             |       Port:  gcc44
-----------------------+--------------------------------
 After updating our macports installation to 2.1.2, we have run into an
 issue with the gcc44 port which is demonstrated below.

 Given the simple C routine, foo.c:

 {{{
 int foo(int a) { return a+5; }
 }}}

 It compiles fine with:

 {{{
 gcc-mp-4.4 -c foo.c
 }}}


 But it throws an error when I have an include path the ends with the word
 "search":

 {{{
 bash-3.2$ gcc-mp-4.4 -Isearch -c foo.c
 /opt/local/bin/as: more than one -arch option (not allowed, use cc(1)
 instead)

 bash-3.2$ gcc-mp-4.4 -Iextras/mysearch -c foo.c
 /opt/local/bin/as: more than one -arch option (not allowed, use cc(1)
 instead)
 }}}

 I also get this behavior with the gcc45 port but not with gcc46 or gcc47.
 We have a ~10M LOC project that is not yet ported to gcc46 or above so
 having this fixed got gcc44 would really be helpful.

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


More information about the macports-tickets mailing list