[MacPorts] #66630: cpufetch tries to build x86 on 10.6.8 Rosetta

MacPorts noreply at macports.org
Thu Jan 5 19:29:26 UTC 2023


#66630: cpufetch tries to build x86 on 10.6.8 Rosetta
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  Schamschula
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.0
Resolution:                |   Keywords:  powerpc, rosetta, snowleopard
      Port:  cpufetch      |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 So this is genuinely broken: `gcc12` also fails to build it:
 {{{
 src/common/printer.c: In function 'print_ascii_generic':
 src/common/printer.c:487:23: error: 'ATTRIBUTE_CPU_NUM' undeclared (first
 use in this function); did you mean 'ATTRIBUTE_PEAK'?
   487 |       if(attr_type == ATTRIBUTE_CPU_NUM) {
       |                       ^~~~~~~~~~~~~~~~~
       |                       ATTRIBUTE_PEAK
 src/common/printer.c:487:23: note: each undeclared identifier is reported
 only once for each function it appears in
 src/common/printer.c: In function 'print_cpufetch_ppc':
 src/common/printer.c:693:3: error: too few arguments to function
 'print_ascii_generic'
   693 |   print_ascii_generic(art, longest_attribute, term->w,
 attribute_fields);
       |   ^~~~~~~~~~~~~~~~~~~
 src/common/printer.c:433:6: note: declared here
   433 | void print_ascii_generic(struct ascii* art, uint32_t la, int32_t
 termw, const char** attribute_fields, bool hybrid_architecture) {
       |      ^~~~~~~~~~~~~~~~~~~
 src/ppc/uarch.c:6:10: fatal error: sys/auxv.h: No such file or directory
     6 | #include <sys/auxv.h>
       |          ^~~~~~~~~~~~
 compilation terminated.
 make: *** [cpufetch] Error 1
 }}}

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


More information about the macports-tickets mailing list