[MacPorts] #37846: gcc47 cannot compile valid code because deficient linker cctools' as

MacPorts noreply at macports.org
Wed Jan 30 07:34:06 PST 2013


#37846: gcc47 cannot compile valid code because deficient linker cctools' as
----------------------------------+--------------------------------
 Reporter:  wd11@…                |      Owner:  macports-tickets@…
     Type:  defect                |     Status:  new
 Priority:  Normal                |  Milestone:  MacPorts 2.1.3
Component:  ports                 |    Version:  2.1.2
 Keywords:  deficient dependency  |       Port:  gcc47
----------------------------------+--------------------------------
 The gcc groups of compiler ports (gcc47 etc) depend on cctools' for the
 linker 'as'. However, that linker is deficient: it doesn't know about the
 AVX instruction set supported by Intel's sandy-bridge and ivy-bridge
 processors, which are used in the recent mac books. As a consequence, gcc
 cannot compile valid code, such as the attached c++ program (note: compile
 with the -march=native option on a intel corei7 chip)

 Note that this is a known issue
 (http://stackoverflow.com/questions/9840207/how-to-use-avx-pclmulqdq-on-
 mac-os-x-lion), but the suggested solution is extremely inelegant and does
 not mesh well with macports updates.

 Instead, this problem should solved at its heart, i.e. by shipping the gcc
 ports with a better linker (or by convincing cctools to ship a useful
 linker).

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


More information about the macports-tickets mailing list