[MacPorts] #31485: asterisk: invalid value '6' in '-O6'

MacPorts noreply at macports.org
Mon Oct 3 23:07:06 PDT 2011


#31485: asterisk: invalid value '6' in '-O6'
--------------------------------+-------------------------------------------
 Reporter:  andrew@…            |       Owner:  mr_bond@…           
     Type:  defect              |      Status:  new                 
 Priority:  Normal              |   Milestone:                      
Component:  ports               |     Version:  2.0.3               
 Keywords:  clang               |        Port:  asterisk            
--------------------------------+-------------------------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)
  * keywords:  lion => clang


Comment:

 [http://mailman2.u.washington.edu/pipermail/imap-
 uw/2007-February/001154.html This discussion] from a few years ago claims
 that in all official versions of gcc, any optimization level greater than
 3 is treated the same as optimization level 3, confirmed by this page
 [http://www.unixguide.net/linux/faq/05.08.shtml this page]. And as you
 found, clang dies with an error if optimization level 6 is requested. (I
 can reproduce this on Snow Leopard as well, if I request clang.) So we
 should modify asterisk to not request that optimization level. I've fixed
 this in r84891. It now fails with a different error for me with clang, but
 the clang on Lion is newer than mine; please selfupdate and test this
 version and let us know what happens. If it doesn't work for you either,
 we may have to try a newer version of asterisk; see #31497. In the mean
 time, we could also try using llvm-gcc-4.2 instead of clang.

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


More information about the macports-tickets mailing list