[MacPorts] #64498: llvm-3.3/3.4 fail to build for ppc on 10.6.8 (Rosetta): Undefined symbols: "_main", referenced from: start in crt1.10.5.o

MacPorts noreply at macports.org
Tue Feb 14 10:35:53 UTC 2023


#64498: llvm-3.3/3.4 fail to build for ppc on 10.6.8 (Rosetta): Undefined symbols:
"_main", referenced from: start in crt1.10.5.o
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  jeremyhu
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:              |   Keywords:  powerpc, llvm, snowleopard, rosetta
      Port:  llvm-3.3,   |
  llvm-3.4               |
-------------------------+-------------------------------------------------

Comment (by MarcusCalhoun-Lopez):

 I believe there are two separate issues here.

 Changing {{{if (TheTriple.isOSDarwin() &&
 !TheTriple.isMacOSXVersionLT(10,5)) {}}} ---> {{{if
 (TheTriple.isOSDarwin() && !TheTriple.isMacOSXVersionLT(10,6)) {}}} is
 one.

 However, the original error message stems from the fact that `CFLAGS` are
 not used when building the sample, so `-arch ppc` is not used.\\
 I am guessing the reasons using gcc10 made a difference is because it
 defaulted to `-arch ppc`.

 The offending sample was [https://github.com/llvm/llvm-
 project/commit/730df071c8780a6df552a03449b956273efe01a9 removed] entirely
 in subsequent releases of LLVM.

 There is a [https://github.com/macports/macports-ports/pull/17694/ pull
 request] that attempts to fix both problems.

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


More information about the macports-tickets mailing list