Skip to contentSkip to conversation

GCC fixes and enable llvmpipe in mesa for x86

PATCH In review Khem Raj 2 participants 5 messages Jun 15, 2018 – Jun 16, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover GCC fixes and enable llvmpipe in mesa for x86

Fixes gcc for xscale march/mcpu issue
Drop redundant patch
enable llvmpipe for mesa

The following changes since commit 8ab5b439ea82ac775494a0ce7a6f3615b61c94be:

linux-yocto/4.14/4.15: fix gcc8 mips compilation issues (2018-06-11 23:38:17 +0100)

are available in the Git repository at:

git://git.openembedded.org/openembedded-core-contrib kraj/master
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=kraj/master

Andre McCurdy (1):
gcc8: drop stray uClibc specific patch

Khem Raj (2):
mesa: Enable gallium-llvm on x86 and x86_64
gcc-8: Fix spurious mcpu/march conflict for xscale

 meta/recipes-devtools/gcc/gcc-8.1.inc         |  2 +-
 .../gcc/gcc-8.1/0002-c99-snprintf.patch       | 28 ---------
 ...003-build-failures-with-with-cpu-xsc.patch | 61 +++++++++++++++++++
 meta/recipes-graphics/cairo/cairo.inc         |  3 +-
 meta/recipes-graphics/mesa/mesa.inc           |  3 +
 5 files changed, 67 insertions(+), 30 deletions(-)
 delete mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0002-c99-snprintf.patch
 create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0041-arm-PR-target-86003-build-failures-with-with-cpu-xsc.patch
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/3 mesa: Enable gallium-llvm on x86 and x86_64

---
 meta/recipes-graphics/cairo/cairo.inc | 3 ++-
 meta/recipes-graphics/mesa/mesa.inc   | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)
meta/recipes-graphics/cairo/cairo.inc +2 -1
index 20e0d2c92a..7347f223ff 100644
@@ -22,7 +22,8 @@ X11DEPENDS = "virtual/libx11 libsm libxrender libxext"
 DEPENDS = "libpng fontconfig pixman glib-2.0 zlib"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \
-           ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)}"
+           ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \
+           ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}"
 
 PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}"
 PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb"
meta/recipes-graphics/mesa/mesa.inc +3 -0
index fa99f7d50c..d1723e3506 100644
@@ -45,6 +45,9 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland vulkan', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \
 		   "
 
+PACKAGECONFIG_append_x86 = " gallium-llvm gallium r600"
+PACKAGECONFIG_append_x86-64 = " gallium-llvm gallium r600"
+
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
 
Signature · 1 line
2.17.1
author
#3 lore raw

PATCH 2/3 gcc8: drop stray uClibc specific patch

In reply to Khem Raj

From: Andre McCurdy <[email protected]>

The patch was previously removed for gcc7 but came back with gcc8.

http://git.openembedded.org/openembedded-core/commit/?id=f71bc69e5b7581c53071055b694bb0dbfe4b4a87

---
 meta/recipes-devtools/gcc/gcc-8.1.inc         |  1 -
 .../gcc/gcc-8.1/0002-c99-snprintf.patch       | 28 -------------------
 2 files changed, 29 deletions(-)
 delete mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0002-c99-snprintf.patch
meta/recipes-devtools/gcc/gcc-8.1.inc +0 -1
index cb0fbd9379..d83ba6555e 100644
@@ -32,7 +32,6 @@ BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
-           file://0002-c99-snprintf.patch \
            file://0003-gcc-poison-system-directories.patch \
            file://0004-gcc-poison-dir-extend.patch \
            file://0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \
meta/recipes-devtools/gcc/gcc-8.1/0002-c99-snprintf.patch deleted +0 -28
deleted file mode 100644
index aa123b41a1..0000000000
@@ -1,28 +0,0 @@
-From 5fbfcf247ed6dd01263639daf0c9c3a291e2fd3a Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 29 Mar 2013 08:49:03 +0400
-Subject: [PATCH 02/39] c99-snprintf
-
-Signed-off-by: Khem Raj <[email protected]>
-
-Upstream-Status: Pending
----
- libstdc++-v3/include/c_std/cstdio | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libstdc++-v3/include/c_std/cstdio b/libstdc++-v3/include/c_std/cstdio
-index 1b9571eaa8d..ad816be4fd1 100644
---- a/libstdc++-v3/include/c_std/cstdio
-+++ b/libstdc++-v3/include/c_std/cstdio
-@@ -144,7 +144,7 @@ namespace std
-   using ::vsprintf;
- } // namespace std
- 
--#if _GLIBCXX_USE_C99_STDIO
-+#if _GLIBCXX_USE_C99_STDIO || defined(__UCLIBC__)
- 
- #undef snprintf
- #undef vfscanf
--- 
-2.17.0
-
Signature · 1 line
2.17.1
author
#4 lore raw

PATCH 3/3 gcc-8: Fix spurious mcpu/march conflict for xscale

In reply to Khem Raj
---
 meta/recipes-devtools/gcc/gcc-8.1.inc         |  1 +
 ...003-build-failures-with-with-cpu-xsc.patch | 61 +++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0041-arm-PR-target-86003-build-failures-with-with-cpu-xsc.patch
meta/recipes-devtools/gcc/gcc-8.1.inc +1 -0
index d83ba6555e..c5f25f89ac 100644
@@ -73,6 +73,7 @@ SRC_URI = "\
            ${BACKPORTS} \
 "
 BACKPORTS = "\
+           file://0041-arm-PR-target-86003-build-failures-with-with-cpu-xsc.patch \
 "
 SRC_URI[md5sum] = "65f7c65818dc540b3437605026d329fc"
 SRC_URI[sha256sum] = "1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153"
meta/recipes-devtools/gcc/gcc-8.1/0041-arm-PR-target-86003-build-failures-with-with-cpu-xsc.patch new file +61 -0

61 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH 1/3] mesa: Enable gallium-llvm on x86 and x86_64

In reply to Khem Raj