-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile failure in bernoulli_details.hpp when BOOST_MATH_NO_ATOMIC_INT #673
Comments
Does the NIOSII platform offer any of the other threading headers (e.g. |
Dislaimer: I'm not really involved into the nios2 toolchain. I just check the packages against the different buildroot support platforms when updating. The nios2 toolchain currently used by buildroot is this one: https://toolchains.bootlin.com/downloads/releases/toolchains/nios2/tarballs/nios2--glibc--stable-2020.08-1.tar.bz2 I think the issue is similar to one we had with boost-atomic (boostorg/atomic#42) since 1.74. |
* drop 0001-fenv.patch, issue [0] was marked fixed since boost 1.64 (commit [1]) * drop upstreamed patch 0002 * filesystem now depends on boost-atomic * math broke the build without always lockfree atomic ints, disable for now. reported at [2]. [0] https://svn.boost.org/trac/boost/ticket/11756 [1] boostorg/test@cb2a1c2 [2] boostorg/math#673 Signed-off-by: Michael Nosthoff <[email protected]> [Arnout: improve propagation of reverse dependencies: - also update comment of cc-tool; - add boost-filesystem to reason of gnuradio, libcpprestsdk, uhd; - move dependency to arch-deps of mongodb] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
Confirmed as an issue. This will continue to be unsupported, but we should fail much more gracefully so that only the small number of use cases that are unsupported cause issues. I have a few thoughts about that. |
I wonder if I can I get you to verify that #684 fixes this your end? |
With this patchset applied I can compile boost-math for niosII again. So the Bernoulli code is now not available anymore since 1.77.0 on platforms with no atomic ints right? |
It is available for float/double/long double, or without thread safety for user-defined (multiprecision) types. |
Boost 1.77.0 broke the build of the math component on architectures without lockfree atomics. This was reported in [0]. This patch adds the relevant patches from the upstream patchset[1] which fix the build and removes the dependency on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS [0] boostorg/math#673 [1] boostorg/math#684 Signed-off-by: Michael Nosthoff <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 Signed-off-by: Khem Raj <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 (From OE-Core rev: 7fd35b4ddf5224167d5b2b343faa3eea0183cf86) Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 (From OE-Core rev: 57dc797712abcf83b63694b21d2b3a3f09b1c9bc) Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]> (cherry picked from commit 57dc797) Signed-off-by: Anuj Mittal <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 (From OE-Core rev: aaaf763acfca236654e299d3be6a9484355e3be9) Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]> (cherry picked from commit 57dc797712abcf83b63694b21d2b3a3f09b1c9bc) Signed-off-by: Anuj Mittal <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 (From OE-Core rev: 57dc797712abcf83b63694b21d2b3a3f09b1c9bc) Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1.77 is broken on architectures which dont have lockfree atomics e.g. armv5 [1], backport relevant fixes from upstream to unbreak the build [1] boostorg/math#673 (From OE-Core rev: 57dc797712abcf83b63694b21d2b3a3f09b1c9bc) Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
I'm currently integrating boost 1.77 into buildroot.
The boost-math build is now failing for the NIOSII Platform.
The Platform does not support atomic ints. So
BOOST_MATH_NO_ATOMIC_INT
is defined intools/atomic.hpp
.Since 1.77 this yields the following build error:
Since 1.77
special_functions/detail/bernoulli_details.hpp
has no special handling forBOOST_MATH_NO_ATOMIC_INT
anymore. Is this intentional or an oversight?For now I would disable the math build for NIOSII Platform.
The text was updated successfully, but these errors were encountered: