Skip to contentSkip to conversation

package/quickjs: disable on nios2

PATCH New Fabrice Fontaine 3 participants 3 messages Apr 14, 2021 – Apr 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/quickjs: disable on nios2

quickjs unconditionally uses FE_{DOWN,UP}WARD and so fails to build on nios2 since its addition in commit 5d50793659acb95050c110d5fc05399df20ce30b

Fixes:
- http://autobuild.buildroot.org/results/69e280a7f478d1b16be989c7bd559f766053134b
- http://autobuild.buildroot.org/results/f2c3ef7e3bbe30ac24710288336adabebd8b83a6

---
 package/quickjs/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/quickjs/Config.in +2 -0
index 5c3b068c3a..dc466241ba 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_QUICKJS
 	bool "quickjs"
+	depends on !BR2_nios2 # fenv.h lacks FE_{DOWN,UP}WARD on nios2
 	depends on !BR2_STATIC_LIBS
 	# No way to check for fenv support.
 	depends on !BR2_TOOLCHAIN_USES_UCLIBC
@@ -14,6 +15,7 @@ config BR2_PACKAGE_QUICKJS
 	  https://bellard.org/quickjs/
 
 comment "quickjs needs a glibc or musl toolchain w/ gcc >= 4.9, host gcc >= 4.9, dynamic library"
+	depends on !BR2_nios2
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_HOST_GCC_AT_LEAST_4_9
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 package/quickjs: disable on nios2

Quoted 9 lines · Fabrice Fontaine

quickjs unconditionally uses FE_{DOWN,UP}WARD and so fails to build on nios2 since its addition in commit 5d50793659acb95050c110d5fc05399df20ce30b

Fixes:
- http://autobuild.buildroot.org/results/69e280a7f478d1b16be989c7bd559f766053134b
- http://autobuild.buildroot.org/results/f2c3ef7e3bbe30ac24710288336adabebd8b83a6

Applied to master, thanks.

Regards,
Arnout

Quoted 24 lines
---
 package/quickjs/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/quickjs/Config.in +2 -0
index 5c3b068c3a..dc466241ba 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_QUICKJS
 	bool "quickjs"
+	depends on !BR2_nios2 # fenv.h lacks FE_{DOWN,UP}WARD on nios2
 	depends on !BR2_STATIC_LIBS
 	# No way to check for fenv support.
 	depends on !BR2_TOOLCHAIN_USES_UCLIBC
@@ -14,6 +15,7 @@ config BR2_PACKAGE_QUICKJS
 	  https://bellard.org/quickjs/
 
 comment "quickjs needs a glibc or musl toolchain w/ gcc >= 4.9, host gcc >= 4.9, dynamic library"
+	depends on !BR2_nios2
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_HOST_GCC_AT_LEAST_4_9
#2 lore raw

PATCH 1/1 package/quickjs: disable on nios2

In reply to Fabrice Fontaine
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

quickjs unconditionally uses FE_{DOWN,UP}WARD and so fails to build on nios2 since its addition in commit 5d50793659acb95050c110d5fc05399df20ce30b

Fixes:
- http://autobuild.buildroot.org/results/69e280a7f478d1b16be989c7bd559f766053134b
- http://autobuild.buildroot.org/results/f2c3ef7e3bbe30ac24710288336adabebd8b83a6

Committed to 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard