mesa: link mesautil with pthreads
PATCH 1/1 mesa: link mesautil with pthreads
Cherry-pick fix from mesa upstream:
23ce168048 link mesautil with pthreads
link mesautil with pthreads to avoid:
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_setname':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66: undefined reference to pthread_setname_np' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function thrd_join':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336: undefined reference to pthread_join' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function u_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48: undefined reference to pthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function thrd_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296: undefined reference to pthread_create' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function u_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference to pthread_sigmask' /builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference to pthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `call_once':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96: undefined reference to pthread_once' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function u_thread_get_time_nano':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84: undefined reference to `pthread_getcpuclockid'
collect2: error: ld returned 1 exit status
Upstream-Status: backport
--- .../files/0001-link-mesautil-with-pthreads.patch | 51 ++++++++++++++++++++++ meta/recipes-graphics/mesa/mesa_17.3.3.bb | 1 + 2 files changed, 52 insertions(+) create mode 100644 meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch
meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch new file +51 -0
@@ -0,0 +1,51 @@ +From 23ce168048698eeea3df6bb8c9de5be3ca4784cd Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko <[email protected]> +Date: Mon, 1 Jan 2018 22:49:00 +0100 +Subject: [PATCH] link mesautil with pthreads + +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_setname': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66: undefined reference to `pthread_setname_np' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `thrd_join': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336: undefined reference to `pthread_join' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_create': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48: undefined reference to `pthread_sigmask' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `thrd_create': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296: undefined reference to `pthread_create' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_create': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference to `pthread_sigmask' +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference to `pthread_sigmask' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `call_once': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96: undefined reference to `pthread_once' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_get_time_nano': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84: undefined reference to `pthread_getcpuclockid' +collect2: error: ld returned 1 exit status + +Reviewed-by: Adam Jackson <[email protected]> +Signed-off-by: Igor Gnatenko <[email protected]> +--- + src/util/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/util/Makefile.am b/src/util/Makefile.am +index a5241ad27b..633907b9fd 100644 +--- a/src/util/Makefile.am ++++ b/src/util/Makefile.am +@@ -31,6 +31,7 @@ noinst_LTLIBRARIES = \ + libxmlconfig.la + + AM_CPPFLAGS = \ ++ $(PTHREAD_CFLAGS) \ + -I$(top_srcdir)/include + + libmesautil_la_CPPFLAGS = \ +@@ -50,6 +51,7 @@ libmesautil_la_SOURCES = \ + $(MESA_UTIL_GENERATED_FILES) + + libmesautil_la_LIBADD = \ ++ $(PTHREAD_LIBS) \ + $(CLOCK_LIB) \ + $(ZLIB_LIBS) \ + $(LIBATOMIC_LIBS) +-- +2.14.3 +
meta/recipes-graphics/mesa/mesa_17.3.3.bb +1 -0
@@ -10,6 +10,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ file://0001-winsys-svga-drm-Include-sys-types.h.patch \ file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \ file://0001-anv_icd.py-improve-reproducible-builds.patch \ + file://0001-link-mesautil-with-pthreads.patch \ " SRC_URI[md5sum] = "139b5f608b371c0d4395596162f88791"
Signature · 1 line
2.11.0
✗ patchtest: failure for mesa: link mesautil with pthreads (rev2)
== Series Details ==
Series: mesa: link mesautil with pthreads (rev2)
Revision: 2
URL : https://patchwork.openembedded.org/series/10634/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue Added patch file is missing Upstream-Status in the header [test_upstream_status_presence_format]
Suggested fix Add Upstream-Status: <Valid status> to the header of meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch Standard format Upstream-Status: <Valid status> Valid status Pending, Accepted, Backport, Denied, Inappropriate [reason], Submitted [where]
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
Upstream-Status tag needs to be in the patch you add, not the commit message.
Ross
Quoted 146 lines · Randy MacLeod
Cherry-pick fix from mesa upstream:
23ce168048link mesautil with pthreadslink mesautil with pthreads to avoid:
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_setname':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66:
undefined reference topthread_setname_np' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionthrd_join':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336:
undefined reference topthread_join' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48:
undefined reference topthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionthrd_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296:
undefined reference topthread_create' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference to `pthread_sigmask' /builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference topthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functioncall_once':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96:
undefined reference topthread_once' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_get_time_nano':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84:
undefined reference to `pthread_getcpuclockid'
collect2: error: ld returned 1 exit statusUpstream-Status: backport
Signed-off-by Randy MacLeod <[email protected]>--- .../files/0001-link-mesautil-with-pthreads.patch | 51 ++++++++++++++++++++++ meta/recipes-graphics/mesa/mesa_17.3.3.bb | 1 + 2 files changed, 52 insertions(+) create mode 100644 meta/recipes-graphics/mesa/
files/0001-link-mesautil-with-pthreads.patchmeta/recipes-graphics/mesa/files/0001-link-mesautil-with- new file +0
-0pthreads.patch
meta/recipes-graphics/mesa/files/0001-link-mesautil-with- new file +6
-0@@ -0,0 +1,51 @@ +From 23ce168048698eeea3df6bb8c9de5be3ca4784cd Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko <[email protected]> +Date: Mon, 1 Jan 2018 22:49:00 +0100 +Subject: [PATCH] link mesautil with pthreads + +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): Infunction `u_thread_setname':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66:
undefined reference topthread_setname_np' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionthrd_join':+/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336:
undefined reference topthread_join' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_create':+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48:
undefined reference topthread_sigmask' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionthrd_create':+/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296:
undefined reference topthread_create' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_create':+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference to `pthread_sigmask'+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference topthread_sigmask' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functioncall_once':+/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96:
undefined reference topthread_once' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_get_time_nano':+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84:
undefined reference to `pthread_getcpuclockid'meta/recipes-graphics/mesa/files/0001-link-mesautil-with- new file +31
-0+collect2: error: ld returned 1 exit status + +Reviewed-by: Adam Jackson <[email protected]> +Signed-off-by: Igor Gnatenko <[email protected]> +--- + src/util/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/util/Makefile.am b/src/util/Makefile.am +index a5241ad27b..633907b9fd 100644 +--- a/src/util/Makefile.am ++++ b/src/util/Makefile.am +@@ -31,6 +31,7 @@ noinst_LTLIBRARIES = \ + libxmlconfig.la + + AM_CPPFLAGS = \ ++ $(PTHREAD_CFLAGS) \ + -I$(top_srcdir)/include + + libmesautil_la_CPPFLAGS = \ +@@ -50,6 +51,7 @@ libmesautil_la_SOURCES = \ + $(MESA_UTIL_GENERATED_FILES) + + libmesautil_la_LIBADD = \ ++ $(PTHREAD_LIBS) \ + $(CLOCK_LIB) \ + $(ZLIB_LIBS) \ + $(LIBATOMIC_LIBS) +-- +2.14.3 +meta/recipes-graphics/mesa/mesa_17.3.3.bb +1
-0@@ -10,6 +10,7 @@ SRC_URI = "https://mesa.freedesktop.org/ archive/mesa-${PV}.tar.xz \ file://0001-winsys-svga-drm-Include-sys-types.h.patch \ file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \ file://0001-anv_icd.py-improve-reproducible-builds.patch \ + file://0001-link-mesautil-with-pthreads.patch \ "SRC_URI[md5sum] = "
139b5f608b371c0d4395596162f88791"
--
2.11.0--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Ross
Upstream-Status tag needs to be in the patch you add, not the commit message.
Ross
Picky, picky! :)
Done.
Next patch, I'll see if local patchtest check works now. Last time I tried using it, it was busted.
../Randy
Quoted 159 lines · On 22 January 2018 at 16:56, Randy MacLeod <[email protected]…
Cherry-pick fix from mesa upstream:
23ce168048 link mesautil with pthreads
link mesautil with pthreads to avoid:
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_setname':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66:
undefined reference to `pthread_setname_np'
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `thrd_join':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336:
undefined reference to `pthread_join'
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48:
undefined reference to `pthread_sigmask'
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `thrd_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296:
undefined reference to `pthread_create'
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference to `pthread_sigmask'
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference to `pthread_sigmask'
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `call_once':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96:
undefined reference to `pthread_once'
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_get_time_nano':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84:
undefined reference to `pthread_getcpuclockid'
collect2: error: ld returned 1 exit status
Upstream-Status: backport
Signed-off-by: Randy MacLeod <[email protected]
<mailto:[email protected]>>
---
.../files/0001-link-mesautil-with-pthreads.patch | 51
++++++++++++++++++++++
meta/recipes-graphics/mesa/mesa_17.3.3.bb <http://mesa_17.3.3.bb>
| 1 +
2 files changed, 52 insertions(+)
create mode 100644
meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch
diff --git
a/meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch
b/meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch
new file mode 100644
index 0000000000..193c54661b
--- /dev/null
+++
b/meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch
@@ -0,0 +1,51 @@
+From 23ce168048698eeea3df6bb8c9de5be3ca4784cd Mon Sep 17 00:00:00 2001
+From: Igor Gnatenko <[email protected]
<mailto:[email protected]>>
+Date: Mon, 1 Jan 2018 22:49:00 +0100
+Subject: [PATCH] link mesautil with pthreads
+
+../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_setname':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66:
undefined reference to `pthread_setname_np'
+../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `thrd_join':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336:
undefined reference to `pthread_join'
+../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_create':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48:
undefined reference to `pthread_sigmask'
+../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `thrd_create':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296:
undefined reference to `pthread_create'
+../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_create':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference to `pthread_sigmask'
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50:
undefined reference to `pthread_sigmask'
+../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `call_once':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96:
undefined reference to `pthread_once'
+../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In
function `u_thread_get_time_nano':
+/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84:
undefined reference to `pthread_getcpuclockid'
+collect2: error: ld returned 1 exit status
+
+Reviewed-by: Adam Jackson <[email protected] <mailto:[email protected]>>
+Signed-off-by: Igor Gnatenko <[email protected]
<mailto:[email protected]>>
+---
+ src/util/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/util/Makefile.am b/src/util/Makefile.am
+index a5241ad27b..633907b9fd 100644
+--- a/src/util/Makefile.am
++++ b/src/util/Makefile.am
+@@ -31,6 +31,7 @@ noinst_LTLIBRARIES = \
+ libxmlconfig.la <http://libxmlconfig.la>
+
+ AM_CPPFLAGS = \
++ $(PTHREAD_CFLAGS) \
+ -I$(top_srcdir)/include
+
+ libmesautil_la_CPPFLAGS = \
+@@ -50,6 +51,7 @@ libmesautil_la_SOURCES = \
+ $(MESA_UTIL_GENERATED_FILES)
+
+ libmesautil_la_LIBADD = \
++ $(PTHREAD_LIBS) \
+ $(CLOCK_LIB) \
+ $(ZLIB_LIBS) \
+ $(LIBATOMIC_LIBS)
+--
+2.14.3
+
diff --git a/meta/recipes-graphics/mesa/mesa_17.3.3.bb
<http://mesa_17.3.3.bb> b/meta/recipes-graphics/mesa/mesa_17.3.3.bb
<http://mesa_17.3.3.bb>
index 6e3f29a2c4..623046e116 100644
--- a/meta/recipes-graphics/mesa/mesa_17.3.3.bb <http://mesa_17.3.3.bb>
+++ b/meta/recipes-graphics/mesa/mesa_17.3.3.bb <http://mesa_17.3.3.bb>
@@ -10,6 +10,7 @@ SRC_URI =
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz
<https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz> \
file://0001-winsys-svga-drm-Include-sys-types.h.patch \
file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \
file://0001-anv_icd.py-improve-reproducible-builds.patch \
+ file://0001-link-mesautil-with-pthreads.patch \
"
SRC_URI[md5sum] = "139b5f608b371c0d4395596162f88791"
--
2.11.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-core
<http://lists.openembedded.org/mailman/listinfo/openembedded-core>Signature · 2 lines
# Randy MacLeod. WR Linux # Wind River an Intel Company
Quoted 22 lines · Randy MacLeod
Cherry-pick fix from mesa upstream:
23ce168048link mesautil with pthreadslink mesautil with pthreads to avoid:
../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_setname':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66: undefined reference topthread_setname_np' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionthrd_join':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336: undefined reference topthread_join' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48: undefined reference topthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionthrd_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296: undefined reference topthread_create' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_create':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference topthread_sigmask' /builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference topthread_sigmask' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `call_once':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96: undefined reference topthread_once' ../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In functionu_thread_get_time_nano':
/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84: undefined reference to `pthread_getcpuclockid'
collect2: error: ld returned 1 exit status
Quoted 1 line
Upstream-Status: backport
This goes in the patch file.
Quoted 84 lines
Signed-off-by Randy MacLeod <[email protected]>--- .../files/0001-link-mesautil-with-pthreads.patch | 51 ++++++++++++++++++++++ meta/recipes-graphics/mesa/mesa_17.3.3.bb | 1 + 2 files changed, 52 insertions(+) create mode 100644 meta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patchmeta/recipes-graphics/mesa/files/0001-link-mesautil-with-pthreads.patch new file +51
-0@@ -0,0 +1,51 @@ +From 23ce168048698eeea3df6bb8c9de5be3ca4784cd Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko <[email protected]> +Date: Mon, 1 Jan 2018 22:49:00 +0100 +Subject: [PATCH] link mesautil with pthreads + +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_setname': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:66: undefined reference to `pthread_setname_np' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `thrd_join': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:336: undefined reference to `pthread_join' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_create': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:48: undefined reference to `pthread_sigmask' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `thrd_create': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:296: undefined reference to `pthread_create' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_create': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference to `pthread_sigmask' +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:50: undefined reference to `pthread_sigmask' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `call_once': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../include/c11/threads_posix.h:96: undefined reference to `pthread_once' +../../src/util/.libs/libmesautil.a(libmesautil_la-u_queue.o): In function `u_thread_get_time_nano': +/builddir/build/BUILD/mesa-17.3.1/src/util/../../src/util/u_thread.h:84: undefined reference to `pthread_getcpuclockid' +collect2: error: ld returned 1 exit status + +Reviewed-by: Adam Jackson <[email protected]> +Signed-off-by: Igor Gnatenko <[email protected]> +--- + src/util/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/util/Makefile.am b/src/util/Makefile.am +index a5241ad27b..633907b9fd 100644 +--- a/src/util/Makefile.am ++++ b/src/util/Makefile.am +@@ -31,6 +31,7 @@ noinst_LTLIBRARIES = \ + libxmlconfig.la + + AM_CPPFLAGS = \ ++ $(PTHREAD_CFLAGS) \ + -I$(top_srcdir)/include + + libmesautil_la_CPPFLAGS = \ +@@ -50,6 +51,7 @@ libmesautil_la_SOURCES = \ + $(MESA_UTIL_GENERATED_FILES) + + libmesautil_la_LIBADD = \ ++ $(PTHREAD_LIBS) \ + $(CLOCK_LIB) \ + $(ZLIB_LIBS) \ + $(LIBATOMIC_LIBS) +-- +2.14.3 +meta/recipes-graphics/mesa/mesa_17.3.3.bb +1
-1@@ -10,6 +10,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ file://0001-winsys-svga-drm-Include-sys-types.h.patch \ file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \ file://0001-anv_icd.py-improve-reproducible-builds.patch \ + file://0001-link-mesautil-with-pthreads.patch \ " SRC_URI[md5sum] = "139b5f608b371c0d4395596162f88791" --2.11.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750