[MacPorts] #63490: libdazzle @3.38.0_0: Static assert failure on PowerPC

MacPorts noreply at macports.org
Thu Sep 16 02:26:13 UTC 2021


#63490: libdazzle @3.38.0_0: Static assert failure on PowerPC
-------------------------+--------------------
  Reporter:  evanmiller  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:
      Port:  libdazzle   |
-------------------------+--------------------

Comment (by evanmiller):

 Interestingly, just the regular pack directives work as expected with gcc-
 apple-4.2:

 {{{
 #include <stdint.h>

 #pragma pack(push, 1)
 typedef struct
 {
   uint32_t id;
   uint16_t pos;
 } DzlFuzzyMutableIndexItem;
 #pragma pack(pop)

 int main() {
     return sizeof(DzlFuzzyMutableIndexItem);
 }
 }}}

 {{{
 $ gcc-mp-7 test-pack.c && ./a.out
 $ echo $?
 8

 $ gcc-apple-4.2 test-pack.c && ./a.out
 $ echo $?
 6
 }}}

 So the struct-padding algorithm changed at some point.

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


More information about the macports-tickets mailing list