Opened 21 months ago

Closed 20 months ago

Last modified 19 months ago

#66985 closed defect (fixed)

poppler-qt4-mac: build against glib2-upstream: gatomic.h: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' type

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: poppler-qt4-mac

Description

Perhaps an issue no one gonna face but me, but just in case:

:info:build /opt/local/include/glib-2.0/glib/gatomic.h:131:19: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' type
:info:build   131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
:info:build       |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/glib-2.0/glib/gthread.h:262:7: note: in expansion of macro 'g_atomic_pointer_get'
:info:build   262 |     (!g_atomic_pointer_get (location) &&                             \
:info:build       |       ^~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-private.h:151:13: note: in expansion of macro 'g_once_init_enter'
:info:build   151 |         if (g_once_init_enter (&g_define_type_id__volatile)) {                        \
:info:build       |             ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc:28:1: note: in expansion of macro 'POPPLER_DEFINE_BOXED_TYPE'
:info:build    28 | POPPLER_DEFINE_BOXED_TYPE (PopplerDest, poppler_dest, poppler_dest_copy, poppler_dest_free)
:info:build       | ^~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc: In function 'void poppler_action_layer_free(PopplerActionLayer*)':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc:77:55: warning: cast between incompatible function types from 'void (*)(gpointer)' {aka 'void (*)(void*)'} to 'GFunc' {aka 'void (*)(void*, void*)'} [-Wcast-function-type]
:info:build    77 |                 g_list_foreach (action_layer->layers, (GFunc)g_object_unref, NULL);
:info:build       |                                                       ^~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc: In function 'PopplerActionLayer* poppler_action_layer_copy(PopplerActionLayer*)':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc:91:47: warning: cast between incompatible function types from 'void* (*)(gpointer)' {aka 'void* (*)(void*)'} to 'GFunc' {aka 'void (*)(void*, void*)'} [-Wcast-function-type]
:info:build    91 |         g_list_foreach (action_layer->layers, (GFunc)g_object_ref, NULL);
:info:build       |                                               ^~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc: In function 'GType poppler_action_get_type()':
:info:build /opt/local/include/glib-2.0/glib/gatomic.h:131:19: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' type
:info:build   131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
:info:build       |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/glib-2.0/glib/gthread.h:262:7: note: in expansion of macro 'g_atomic_pointer_get'
:info:build   262 |     (!g_atomic_pointer_get (location) &&                             \
:info:build       |       ^~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-private.h:151:13: note: in expansion of macro 'g_once_init_enter'
:info:build   151 |         if (g_once_init_enter (&g_define_type_id__volatile)) {                        \
:info:build       |             ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc:96:1: note: in expansion of macro 'POPPLER_DEFINE_BOXED_TYPE'
:info:build    96 | POPPLER_DEFINE_BOXED_TYPE (PopplerAction, poppler_action, poppler_action_copy, poppler_action_free)
:info:build       | ^~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc: In function 'void poppler_action_free(PopplerAction*)':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/poppler-0.61.1/glib/poppler-action.cc:139:71: warning: cast between incompatible function types from 'void (*)(PopplerActionLayer*)' {aka 'void (*)(_PopplerActionLayer*)'} to 'GFunc' {aka 'void (*)(void*, void*)'} [-Wcast-function-type]
:info:build   139 |                         g_list_foreach (action->ocg_state.state_list, (GFunc)poppler_action_layer_free, NULL);
:info:build       |                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_poppler-qt4-mac/poppler-qt4-mac/work/build'
:info:build [ 51%] Built target perf-test

Before it has built fine:

36-154% port -v installed poppler-qt4-mac
The following ports are currently installed:
  poppler-qt4-mac @0.61.1_2 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-02-11T20:25:12+0800'
  1. S. Also notice it fails on Lion and earlier on build bots which must use standard glib2 port: https://ports.macports.org/port/poppler-qt4-mac/details

Change History (6)

comment:1 Changed 21 months ago by barracuda156

Summary: poppler-qt4-mac: build against glib-upstream: gatomic.h: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' typepoppler-qt4-mac: build against glib2-upstream: gatomic.h: error: argument 2 of '__atomic_load' must not be a pointer to a 'volatile' type

comment:2 Changed 21 months ago by barracuda156

Port: poppler-qt4-mac added

comment:3 Changed 21 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 21 months ago by barracuda156

By the way, also fails with current glib2. Apparently some breaking change occurred on the way.

comment:5 Changed 20 months ago by kencu (Ken)

Resolution: fixed
Status: newclosed

comment:6 in reply to:  5 Changed 19 months ago by barracuda156

Note: See TracTickets for help on using tickets.