Bug 1190358 - GCC 5.0/armv7hl: "cast increases required alignment of target type" errors
Summary: GCC 5.0/armv7hl: "cast increases required alignment of target type" errors
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gstreamer
Version: rawhide
Hardware: armv7hl
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Benjamin Otte
QA Contact: Fedora Extras Quality Assurance
URL: http://koji.fedoraproject.org/koji/ta...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-07 14:50 UTC by Stefan Becker
Modified: 2015-02-08 09:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-08 09:49:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stefan Becker 2015-02-07 14:50:42 UTC
Description of problem:

pidgin-sipe fails to compile on rawhide with GCC 5.0 on armv7hl due to the following 6 errors reported in gstreamer headers:

/usr/include/gstreamer-0.10/gst/gstbuffer.h:349:10: error: cast increases required alignment of target type [-Werror=cast-align]
   return (GstBuffer *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (buf));
          ^
/usr/include/gstreamer-0.10/gst/gstevent.h:404:10: error: cast increases required alignment of target type [-Werror=cast-align]
   return (GstEvent *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (event));
          ^
/usr/include/gstreamer-0.10/gst/gstevent.h:169:42: error: cast increases required alignment of target type [-Werror=cast-align]
 #define GST_EVENT_CAST(obj)             ((GstEvent *)(obj))
                                          ^
/usr/include/gstreamer-0.10/gst/gstmessage.h:330:10: error: cast increases required alignment of target type [-Werror=cast-align]
   return (GstMessage *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (msg));
          ^
/usr/include/gstreamer-0.10/gst/gstmessage.h:150:51: error: cast increases required alignment of target type [-Werror=cast-align]
 #define GST_MESSAGE_CAST(obj)                    ((GstMessage*)(obj))
                                                   ^

Version-Release number of selected component (if applicable):
gstreamer-devel-0.10.36-11.fc22.armv7hl
glib2-devel-2.43.3-1.fc22.armv7hl

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Stefan Becker 2015-02-07 14:51:21 UTC
Add koji URL of failed task

Comment 2 Stefan Becker 2015-02-07 14:58:06 UTC
FYI: related to glib2 bug #1190360

Comment 3 Stefan Becker 2015-02-08 09:49:58 UTC
This seems to be an old known problem not a new one for GCC 5.0. Unfortunately the workaround in the code stopped working for GCC 5.0 :-/

Closing as NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.