[MacPorts] #30933: llvm-gcc42 does not accept -march

MacPorts noreply at macports.org
Mon Aug 22 17:21:28 PDT 2011


#30933: llvm-gcc42 does not accept -march
--------------------------------+-------------------------------------------
 Reporter:  naromero@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  2.0.1                                
 Keywords:                      |        Port:  llvm-gcc42                           
--------------------------------+-------------------------------------------

Comment(by naromero@…):

 I asked on the llvm-dev list and they say that the problem is not in llvm
 but in MacPorts.
 Note that the problem was with -arch and not -march as I heard stated
 earlier.

 One developer stated:

 The -arch option is handled by Apple's "driver-driver", and the MacPorts
 build is probably not using that.  See the driverdriver.c source file in
 llvm-gcc for details.

 My follow-up
 > Since presumably Macports is just fetching an llvm tar ball from some
 > repository, is the issue that llvm
 > has been misconfigure in some obvious way? Yes, I can take a look at
 > the driverdriver.c source file
 > as well.
 >

 Reply by another developer:
 Just plain configure/make/make install won't build the driver driver. You
 need an apple style buildit for that. Check out the build_llvm or
 build_gcc scripts in the source directory for a guideline.

 > Should this also be working in LLVM 2.9 or is the latest SVN also
 needed?
 >

 2.9 should be fine.

 Could someone please take look into this?

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


More information about the macports-tickets mailing list