[MacPorts] #37846: cctools as does not support AVX, consider using llvm

MacPorts noreply at macports.org
Fri Apr 13 04:29:23 UTC 2018


#37846: cctools as does not support AVX, consider using llvm
--------------------------+--------------------------------
  Reporter:  wd11@…       |      Owner:  macports-tickets@…
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.1.2
Resolution:               |   Keywords:
      Port:  cctools gcc  |
--------------------------+--------------------------------

Comment (by kencu):

 gcc on macOS uses the ancient apple gcc assembler from about 1852. It is
 version 1.32, and hasn't been updated in years. The build of gcc-as in
 binutils is disabled as it is not apple-happy. I would love it if somebody
 would update that to something fresh.

 However, gcc accepts {{{-Wa,-q}}} which causes it to use {{{clang}}} as
 the compiler. So you can add that to the cflags and cxxflags on a gcc
 build, and if {{{clang}}} calls to some newish version of clang, you're
 good to go.

 There is a flag to spec the clang you want to sent the asm to, I believe.
 I just haven't found it / tested it / bothered to look for it.

 When I want to build new asm with old gcc version (e.g. building
 TenFourFox for Intel on 10.6.8 using gcc-4.8 with modern libvpx
 instructions), I just add the mentioned flag and {{{port select}}} a
 newish clang.

-- 
Ticket URL: <https://trac.macports.org/ticket/37846#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list