All of lore.kernel.org
 help / color / mirror / Atom feed
* [master/jethro][PATCH] libxcb: Add a workaround for gcc5 bug on mips
@ 2015-12-21  1:42 Khem Raj
  2015-12-21 11:32 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2015-12-21  1:42 UTC (permalink / raw)
  To: openembedded-core

This fixes build failure for libxcb on mips

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../libxcb/gcc-mips-pr68302-mips-workaround.patch  | 22 ++++++++++++++++++++++
 meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb    |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/xorg-lib/libxcb/gcc-mips-pr68302-mips-workaround.patch

diff --git a/meta/recipes-graphics/xorg-lib/libxcb/gcc-mips-pr68302-mips-workaround.patch b/meta/recipes-graphics/xorg-lib/libxcb/gcc-mips-pr68302-mips-workaround.patch
new file mode 100644
index 0000000..698d038
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxcb/gcc-mips-pr68302-mips-workaround.patch
@@ -0,0 +1,22 @@
+Reduce debug info for xcb.c since on mips we run into a gcc5 bug
+
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68302
+
+This patch is a workaround to get past the gcc bug until its resolved.
+it should have minimal impact on libxcb while make it work.
+
+Upstream-Status: Inappropriate [OE-Specific]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Index: libxcb-1.11.1/src/Makefile.am
+===================================================================
+--- libxcb-1.11.1.orig/src/Makefile.am
++++ libxcb-1.11.1/src/Makefile.am
+@@ -188,6 +188,7 @@ EXTSOURCES += xkb.c
+ if BUILD_XKB
+ lib_LTLIBRARIES += libxcb-xkb.la
+ libxcb_xkb_la_LDFLAGS = -version-info 1:0:0 -no-undefined
++CFLAGS += -g1
+ libxcb_xkb_la_LIBADD = $(XCB_LIBS)
+ nodist_libxcb_xkb_la_SOURCES = xkb.c xkb.h
+ endif
diff --git a/meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb b/meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb
index 1f4852d..6b944c9 100644
--- a/meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb
+++ b/meta/recipes-graphics/xorg-lib/libxcb_1.11.1.bb
@@ -11,7 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7"
 
 SRC_URI = "http://xcb.freedesktop.org/dist/libxcb-${PV}.tar.bz2 \
            file://xcbincludedir.patch \
-           file://disable-check.patch"
+           file://disable-check.patch \
+           file://gcc-mips-pr68302-mips-workaround.patch \
+          "
 SRC_URI[md5sum] = "f97a65e6158775de518ac391935634c2"
 SRC_URI[sha256sum] = "b720fd6c7d200e5371affdb3f049cc8f88cff9aed942ff1b824d95eedbf69d30"
 
-- 
2.6.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [master/jethro][PATCH] libxcb: Add a workaround for gcc5 bug on mips
  2015-12-21  1:42 [master/jethro][PATCH] libxcb: Add a workaround for gcc5 bug on mips Khem Raj
@ 2015-12-21 11:32 ` Burton, Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2015-12-21 11:32 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

On 21 December 2015 at 01:42, Khem Raj <raj.khem@gmail.com> wrote:

> This fixes build failure for libxcb on mips
>

My hero!  Thanks Khem I just looked at the logs on the AB and was wondering
why it looked like gcc was crashing.

Ross

[-- Attachment #2: Type: text/html, Size: 650 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-21 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-21  1:42 [master/jethro][PATCH] libxcb: Add a workaround for gcc5 bug on mips Khem Raj
2015-12-21 11:32 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.