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

MacPorts noreply at macports.org
Wed Sep 15 02:03:47 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
 Keywords:              |       Port:  libdazzle
------------------------+-----------------------
 {{{
 :info:build In file included from
 /opt/local/lib/glib-2.0/include/glibconfig.h:9:0,
 :info:build                  from
 /opt/local/include/glib-2.0/glib/gtypes.h:32,
 :info:build                  from
 /opt/local/include/glib-2.0/glib/galloca.h:32,
 :info:build                  from /opt/local/include/glib-2.0/glib.h:30,
 :info:build                  from
 /opt/local/include/glib-2.0/gobject/gbinding.h:28,
 :info:build                  from /opt/local/include/glib-2.0/glib-
 object.h:23,
 :info:build                  from ../libdazzle-3.38.0/src/search/dzl-
 fuzzy-mutable-index.h:22,
 :info:build                  from ../libdazzle-3.38.0/src/search/dzl-
 fuzzy-mutable-index.c:24:
 :info:build /opt/local/include/glib-2.0/glib/gmacros.h:738:31: error:
 static assertion failed: "Expression evaluates to false"
 :info:build  #define G_STATIC_ASSERT(expr) _Static_assert (expr,
 "Expression evaluates to false")
 :info:build                                ^
 :info:build ../libdazzle-3.38.0/src/search/dzl-fuzzy-mutable-index.c:70:1:
 note: in expansion of macro 'G_STATIC_ASSERT'
 :info:build  G_STATIC_ASSERT (sizeof(DzlFuzzyMutableIndexItem) == 6);
 :info:build  ^~~~~~~~~~~~~~~
 :info:build ninja: build stopped: subcommand failed.
 }}}

 Context:

 {{{
 #pragma pack(push, 1)
 typedef struct
 {
   guint64 id : 32;
   guint64 pos : 16;
 } DzlFuzzyMutableIndexItem;
 #pragma pack(pop)
 }}}

 In a test program, the above structure is 8 bytes but libdazzle is
 expecting it to be 6 bytes.

 sysinfo

 {{{
 :debug:sysinfo Mac OS X 10.4.11 (darwin/8.11.0) arch powerpc
 :debug:sysinfo MacPorts 2.7.1
 :debug:sysinfo Xcode 2.5
 :debug:sysinfo SDK 10.4
 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.4
 }}}

 Full log to follow.

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


More information about the macports-tickets mailing list