compile error when cross compiling GLIB for arm_v5t_le-gcc
Submitted by Jerry
Link to original bug (#762274)
Description
I am building with glib-2.46 I am in the process of porting gstreamer to our 32-bit/armv5/linux platform. I have been able to build most of the components that go into it so far with mostly no problems..for some reason..1 of the 3 plugins (gst-plugins-bad) for gstreamer is producing a conpiler error originating in glib. Neither gstreamer or any of the other pluggins throws this error:
In file included from /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/glibconfig.h:9:0, from /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/gtypes.h:32, from /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/galloca.h:32, from /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/glib.h:30, from /home/joram/alta-sdk/ipnc/ipnc_app/lib/gstreamer/gstreamer-1.6.0/gst/gst.h:27, from gstdecklink.cpp:26: gstdecklink.cpp: In function 'GType gst_decklink_mode_get_type()': /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/gmacros.h:92:29: error: size of array '_GStaticAssertCompileTimeAssertion_0' is negative attribute((unused)) ^ /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/gmacros.h:182:120: note: in expansion of macro 'G_GNUC_UNUSED' #define G_STATIC_ASSERT(expr) typedef char G_PASTE (GStaticAssertCompileTimeAssertion, COUNTER)[(expr) ? 1 : -1] G_GNUC_UNUSED
^
/home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/gthread.h:249:5: note: in expansion of macro 'G_STATIC_ASSERT'
G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer));
^
gstdecklink.cpp:83:7: note: in expansion of macro 'g_once_init_enter'
if (g_once_init_enter (&id)) {
^
In file included from /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/gasyncqueue.h:32:0,
from /home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/glib.h:32,
from /home/joram/alta-sdk/ipnc/ipnc_app/lib/gstreamer/gstreamer-1.6.0/gst/gst.h:27,
from gstdecklink.cpp:26:
/home/joram/alta-sdk/ipnc/ipnc_app/lib/glib/glib-2.46.1/glib/gthread.h:250:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void) (0 ? (gpointer) *(location) : 0);
^
gstdecklink.cpp:83:7: note: in expansion of macro 'g_once_init_enter'
if (g_once_init_enter (&id)) {
Any idea what might be causing this? like I said all of the other gstreamer related libraries I compiled against glib had no problems with it, only the gst-plugins-bad throws this error.