Bug 1190358

Summary: GCC 5.0/armv7hl: "cast increases required alignment of target type" errors
Product: [Fedora] Fedora Reporter: Stefan Becker <chemobejk>
Component: gstreamerAssignee: Benjamin Otte <otte>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: otte, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: armv7hl   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=8857870
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-08 09:49:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.