mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
boost: Fix build on soft-float ABI arm systems
We get errors like
./boost/test/execution_monitor.hpp:490:27: error: 'FE_DIVBYZERO' was not
declared in this scope
BOOST_FPE_DIVBYZERO = FE_DIVBYZERO,
on musl, rightly because FPU is not used on soft-float
systems
(From OE-Core rev: 17566da0b86cc282d5e598af54e73555c121beb3)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
19
meta/recipes-support/boost/boost/consider-hardfp.patch
Normal file
19
meta/recipes-support/boost/boost/consider-hardfp.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
When using soft-float, on ARM we should not expect the FE_* symbols
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: boost_1_60_0/boost/test/execution_monitor.hpp
|
||||
===================================================================
|
||||
--- boost_1_60_0.orig/boost/test/execution_monitor.hpp
|
||||
+++ boost_1_60_0/boost/test/execution_monitor.hpp
|
||||
@@ -484,7 +484,8 @@ enum masks {
|
||||
BOOST_FPE_UNDERFLOW = EM_UNDERFLOW|EM_DENORMAL,
|
||||
|
||||
BOOST_FPE_ALL = MCW_EM,
|
||||
-#elif defined(BOOST_NO_FENV_H) || defined(BOOST_CLANG)
|
||||
+#elif defined(BOOST_NO_FENV_H) || defined(BOOST_CLANG) \
|
||||
+ || defined(__ARM_PCS)
|
||||
BOOST_FPE_ALL = 1,
|
||||
#else
|
||||
BOOST_FPE_DIVBYZERO = FE_DIVBYZERO,
|
||||
@@ -4,4 +4,5 @@ include boost.inc
|
||||
SRC_URI += "\
|
||||
file://arm-intrinsics.patch \
|
||||
file://0001-Do-not-qualify-fenv.h-names-that-might-be-macros.patch;striplevel=2 \
|
||||
file://consider-hardfp.patch \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user