All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/open62541: fix build without threads
@ 2021-01-10 13:30 Fabrice Fontaine
  2021-01-16 21:34 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-01-10 13:30 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/87ec3c987c991f790757276316d6caf81e635fa2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...eLists.txt-fix-build-without-threads.patch | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch

diff --git a/package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch b/package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch
new file mode 100644
index 0000000000..94ee76ad92
--- /dev/null
+++ b/package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch
@@ -0,0 +1,37 @@
+From a312e82124fb8c9f139d5a40fa5a28123bb77a33 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 10 Jan 2021 14:25:56 +0100
+Subject: [PATCH] arch/posix/CMakeLists.txt: fix build without threads
+
+Fix the following build failure without threads:
+
+[100%] Linking C shared library bin/libopen62541.so
+/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: cannot find -lpthread
+collect2: error: ld returned 1 exit status
+CMakeFiles/open62541.dir/build.make:192: recipe for target 'bin/libopen62541.so.0.0.0' failed
+make[3]: *** [bin/libopen62541.so.0.0.0] Error 1
+
+Fixes:
+ - http://autobuild.buildroot.org/results/87ec3c987c991f790757276316d6caf81e635fa2
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ arch/posix/CMakeLists.txt | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/arch/posix/CMakeLists.txt b/arch/posix/CMakeLists.txt
+index bb24757c..a53c9f2c 100644
+--- a/arch/posix/CMakeLists.txt
++++ b/arch/posix/CMakeLists.txt
+@@ -20,8 +20,6 @@ if (${_index} GREATER -1 OR "${UA_ARCHITECTURE}" STREQUAL "posix")
+           ua_architecture_append_to_library(netdb ndblib socket)
+         else()
+           ua_architecture_append_to_library(m)
+-          #TODO - Error on first make run if pthread is included conditional?
+-          ua_architecture_append_to_library(pthread)
+           if(UA_ENABLE_MULTITHREADING OR UA_BUILD_UNIT_TESTS)
+             ua_architecture_append_to_library(pthread)
+           endif()
+-- 
+2.29.2
+
-- 
2.29.2

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

* [Buildroot] [PATCH 1/1] package/open62541: fix build without threads
  2021-01-10 13:30 [Buildroot] [PATCH 1/1] package/open62541: fix build without threads Fabrice Fontaine
@ 2021-01-16 21:34 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-01-16 21:34 UTC (permalink / raw)
  To: buildroot

On Sun, 10 Jan 2021 14:30:26 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/87ec3c987c991f790757276316d6caf81e635fa2
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...eLists.txt-fix-build-without-threads.patch | 37 +++++++++++++++++++
>  1 file changed, 37 insertions(+)
>  create mode 100644 package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch

Applied to master, thanks. Could you submit upstream?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2021-01-16 21:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-10 13:30 [Buildroot] [PATCH 1/1] package/open62541: fix build without threads Fabrice Fontaine
2021-01-16 21:34 ` Thomas Petazzoni

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.