[MacPorts] #63304: clang 3.4 @3.4.2_15: Build fails (incompatible cpu-subtype) on a G3

MacPorts noreply at macports.org
Tue Jul 27 15:32:45 UTC 2021


#63304: clang 3.4 @3.4.2_15: Build fails (incompatible cpu-subtype) on a G3
-------------------------+----------------------
  Reporter:  evanmiller  |      Owner:  jeremyhu
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:  ppc
      Port:  clang-3.4   |
-------------------------+----------------------

Comment (by kencu):

 apple-gcc42 usually puts out the right cpu subtype for you, otherwise
 nothing would run on your machine at all, so this doesn't appear to me to
 be an inherent error in apple-gcc42.

 In fact, usually it puts out all the cpu subtypes, I believe, via
 cpu_subtype_all being a default setting.

 in #63259, it seems gcc is being told to output Altivec code with
 -maltivec, so it does. That the cpu can't run it in the end seems to be a
 cmake logic error in libjpeg-turbo, not a gcc problem, although with
 further testing this might turn out to be an actual gcc error, don't know
 yet.

 here, I dunno if anyone has ever tried to build clang-3.4 on a G3
 before....I never have. Obviously somewhere apple-gcc42 is being told to
 put out ppc7400 code, probably by an -maltivec being thrown in somewhere
 in the build scripts for clang-3.4.

 where exactly that might be, whether it is in multiple places, and whether
 clang-3.4 can be built without Altivec all remain unknown.

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


More information about the macports-tickets mailing list