All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes
@ 2021-03-07 14:04 Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 1/6] package/libtheora: disable package if binutils is affected from bug 21464 Giulio Benetti
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Giulio Benetti @ 2021-03-07 14:04 UTC (permalink / raw
  To: buildroot

This patchset applies after this:
https://patchwork.ozlabs.org/project/buildroot/list/?series=232409

and fixes build failures on Nios II and OpenRisc.

Giulio Benetti (6):
  package/libtheora: disable package if binutils is affected from bug
    21464
  package/gnutls: disable package if binutils is affected from bug 21464
  toolchain: introduce BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100
  package/openal: disable package if binutils is affected from bug 27100
  package/libcamera: disable package while building for Nios II
  package/kf5-kcoreaddons: disable package while building for Nios II

 package/gnutls/Config.in              | 4 +++-
 package/kf5/kf5-kcoreaddons/Config.in | 1 +
 package/libcamera/Config.in           | 4 +++-
 package/libtheora/Config.in           | 1 +
 package/openal/Config.in              | 4 +++-
 toolchain/Config.in                   | 6 ++++++
 6 files changed, 17 insertions(+), 3 deletions(-)

-- 
2.25.1

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

* [Buildroot] [PATCH 1/6] package/libtheora: disable package if binutils is affected from bug 21464
  2021-03-07 14:04 [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes Giulio Benetti
@ 2021-03-07 14:04 ` Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 2/6] package/gnutls: " Giulio Benetti
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2021-03-07 14:04 UTC (permalink / raw
  To: buildroot

This package is affected from binutils bug 21464, since there is no
workaround, let's disable it.

Fixes:
http://autobuild.buildroot.net/results/6c8/6c87be004adf03955c832be72c0c59749f311f71/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/libtheora/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libtheora/Config.in b/package/libtheora/Config.in
index eee9e9b1db..18a450ce99 100644
--- a/package/libtheora/Config.in
+++ b/package/libtheora/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_LIBTHEORA
 	bool "libtheora"
 	select BR2_PACKAGE_LIBOGG
 	select BR2_PACKAGE_LIBVORBIS
+	depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464
 	help
 	  A library for the free and open video compression format
 	  "Theora" from the Xiph.org Foundation.
-- 
2.25.1

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

* [Buildroot] [PATCH 2/6] package/gnutls: disable package if binutils is affected from bug 21464
  2021-03-07 14:04 [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 1/6] package/libtheora: disable package if binutils is affected from bug 21464 Giulio Benetti
@ 2021-03-07 14:04 ` Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 3/6] toolchain: introduce BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100 Giulio Benetti
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2021-03-07 14:04 UTC (permalink / raw
  To: buildroot

This package is affected from binutils bug 21464, since there is no
workaround, let's disable it.

Fixes:
http://autobuild.buildroot.net/results/ce9/ce9050a183a3f1e31cefbc4d4a6d780235466e39/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/gnutls/Config.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/gnutls/Config.in b/package/gnutls/Config.in
index 15b930b6bd..c4fa729e71 100644
--- a/package/gnutls/Config.in
+++ b/package/gnutls/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_GNUTLS
 	# gnulib requires a library that implements wctomb().
 	# This is noticed only when linking with libgnutls.so.
 	depends on BR2_USE_WCHAR
+	depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464
 	select BR2_PACKAGE_LIBTASN1
 	select BR2_PACKAGE_NETTLE
 	select BR2_PACKAGE_PCRE
@@ -32,4 +33,5 @@ config BR2_PACKAGE_GNUTLS_TOOLS
 endif
 
 comment "gnutls needs a toolchain w/ wchar, dynamic library"
-	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
+	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS || \
+		   !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464
-- 
2.25.1

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

* [Buildroot] [PATCH 3/6] toolchain: introduce BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100
  2021-03-07 14:04 [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 1/6] package/libtheora: disable package if binutils is affected from bug 21464 Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 2/6] package/gnutls: " Giulio Benetti
@ 2021-03-07 14:04 ` Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 4/6] package/openal: disable package if binutils is affected from bug 27100 Giulio Benetti
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2021-03-07 14:04 UTC (permalink / raw
  To: buildroot

On OpenRisc binutils it still present ld bug 27100 leading to a package
openal to fail building:
http://autobuild.buildroot.net/results/c05/c053b9e191b31f0b1f8f8c902b602e187f714dc0/

The bug was already reported and it's been updated:
https://sourceware.org/bugzilla/show_bug.cgi?id=27100

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 toolchain/Config.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index b37a44be05..8472d13b85 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -87,6 +87,12 @@ config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464
 	bool
 	default y if BR2_or1k
 
+# https://sourceware.org/bugzilla/show_bug.cgi?id=27100
+# Affect toolchains built with binutils 2.33.1 (fixed in binutils 2.36)
+config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100
+	bool
+	default y if BR2_or1k && !BR2_BINUTILS_VERSION_2_36_X
+
 # Atomic types can be:
 #  - never lock-free
 #  - sometimes lock-free
-- 
2.25.1

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

* [Buildroot] [PATCH 4/6] package/openal: disable package if binutils is affected from bug 27100
  2021-03-07 14:04 [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes Giulio Benetti
                   ` (2 preceding siblings ...)
  2021-03-07 14:04 ` [Buildroot] [PATCH 3/6] toolchain: introduce BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100 Giulio Benetti
@ 2021-03-07 14:04 ` Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 5/6] package/libcamera: disable package while building for Nios II Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 6/6] package/kf5-kcoreaddons: " Giulio Benetti
  5 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2021-03-07 14:04 UTC (permalink / raw
  To: buildroot

This package is affected from binutils bug 21464, since there is no
workaround, let's disable it.

Fixes:
http://autobuild.buildroot.net/results/c05/c053b9e191b31f0b1f8f8c902b602e187f714dc0/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/openal/Config.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/openal/Config.in b/package/openal/Config.in
index 6b0e9973db..def95222de 100644
--- a/package/openal/Config.in
+++ b/package/openal/Config.in
@@ -19,6 +19,7 @@ config BR2_PACKAGE_OPENAL
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11 PR56019
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
+	depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100
 	help
 	  OpenAL provides capabilities for playing audio in a virtual
 	  3D environment. Distance attenuation, doppler shift, and
@@ -31,4 +32,5 @@ comment "openal needs a toolchain w/ NPTL, C++, gcc >= 4.9"
 	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
 	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
 		|| !BR2_INSTALL_LIBSTDCPP \
-		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
+		|| !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100
-- 
2.25.1

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

* [Buildroot] [PATCH 5/6] package/libcamera: disable package while building for Nios II
  2021-03-07 14:04 [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes Giulio Benetti
                   ` (3 preceding siblings ...)
  2021-03-07 14:04 ` [Buildroot] [PATCH 4/6] package/openal: disable package if binutils is affected from bug 27100 Giulio Benetti
@ 2021-03-07 14:04 ` Giulio Benetti
  2021-03-07 14:04 ` [Buildroot] [PATCH 6/6] package/kf5-kcoreaddons: " Giulio Benetti
  5 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2021-03-07 14:04 UTC (permalink / raw
  To: buildroot

This package fails to build with Nios II up to gcc version 10.x and no
work around has been found. So let's disable it whil building for Nios
II.

Fixes:
http://autobuild.buildroot.net/results/8ac/8ac599392f773eecff4773393ef0d0232a22f372/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/libcamera/Config.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/libcamera/Config.in b/package/libcamera/Config.in
index b9c243084e..8181c9fe5a 100644
--- a/package/libcamera/Config.in
+++ b/package/libcamera/Config.in
@@ -12,6 +12,7 @@ menuconfig BR2_PACKAGE_LIBCAMERA
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
 	depends on !BR2_STATIC_LIBS # gnutls
 	depends on BR2_USE_WCHAR # gnutls
+	depends on !BR2_nios
 	select BR2_PACKAGE_GNUTLS
 	select BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO if !BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
 	help
@@ -73,4 +74,5 @@ endif # BR2_PACKAGE_LIBCAMERA
 comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 7"
 	depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || BR2_STATIC_LIBS || !BR2_USE_WCHAR
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || BR2_STATIC_LIBS || !BR2_USE_WCHAR \
+		!BR2_nios2
-- 
2.25.1

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

* [Buildroot] [PATCH 6/6] package/kf5-kcoreaddons: disable package while building for Nios II
  2021-03-07 14:04 [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes Giulio Benetti
                   ` (4 preceding siblings ...)
  2021-03-07 14:04 ` [Buildroot] [PATCH 5/6] package/libcamera: disable package while building for Nios II Giulio Benetti
@ 2021-03-07 14:04 ` Giulio Benetti
  5 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2021-03-07 14:04 UTC (permalink / raw
  To: buildroot

This package fails to build with Nios II up to gcc version 10.x and no
work around has been found. So let's disable it whil building for Nios
II.

Fixes:
http://autobuild.buildroot.net/results/0c1/0c1e7e094b0990970f28cda2be0e3fe7d82ce6a2/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/kf5/kf5-kcoreaddons/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/kf5/kf5-kcoreaddons/Config.in b/package/kf5/kf5-kcoreaddons/Config.in
index 88fda03ee0..0acb68297b 100644
--- a/package/kf5/kf5-kcoreaddons/Config.in
+++ b/package/kf5/kf5-kcoreaddons/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_KF5_KCOREADDONS
 	bool "kf5-kcoreaddons"
+	depends on !BR2_nios
 	select BR2_PACKAGE_KF5_EXTRA_CMAKE_MODULES
 	select BR2_PACKAGE_QT5TOOLS
 	select BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS
-- 
2.25.1

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

end of thread, other threads:[~2021-03-07 14:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-07 14:04 [Buildroot] [PATCH 0/6] Some Nios II and OpenRisc Fixes Giulio Benetti
2021-03-07 14:04 ` [Buildroot] [PATCH 1/6] package/libtheora: disable package if binutils is affected from bug 21464 Giulio Benetti
2021-03-07 14:04 ` [Buildroot] [PATCH 2/6] package/gnutls: " Giulio Benetti
2021-03-07 14:04 ` [Buildroot] [PATCH 3/6] toolchain: introduce BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100 Giulio Benetti
2021-03-07 14:04 ` [Buildroot] [PATCH 4/6] package/openal: disable package if binutils is affected from bug 27100 Giulio Benetti
2021-03-07 14:04 ` [Buildroot] [PATCH 5/6] package/libcamera: disable package while building for Nios II Giulio Benetti
2021-03-07 14:04 ` [Buildroot] [PATCH 6/6] package/kf5-kcoreaddons: " Giulio Benetti

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.