-
Notifications
You must be signed in to change notification settings - Fork 53
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
Build failure on nios2 architecture #42
Comments
If the build fails then that platform is indeed unsupported. I have no knowledge about nios2, nor have I access to this platform, so I cannot add support for it. PRs are welcome. Can you provide the output of the |
It was building fine until version 1.74, I assume that the issue could be linked to the changes made with 76e25f3. Here is the output of
|
Here is an extract of the build log:
|
According to the compiler output, the target does not support atomic operations (all |
Thanks for your feedback, on most architectures, gcc provides "always lock-free" atomic types, but a few architectures (like nios2 or sparc v8) are limited to "sometimes lock-free" types. On buildroot, we manage this through the
I'll disable atomic if |
Yes, the requirement appeared in 1.74. |
Thanks for your help then this issue can be closed. |
Since version 1.74.0, boost atomics needs a toolchain that always supports lockfree atomic bytes so add dependendy on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS: boostorg/atomic#42 Fixes: - http://autobuild.buildroot.org/results/c03a786791e3aa7801cf1bff9934c4a105f54ce1 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: - add the new dependency as its own 'depends on' line ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Since version 1.74.0, boost atomics needs a toolchain that always supports lockfree atomic bytes so add dependendy on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS: boostorg/atomic#42 Fixes: - http://autobuild.buildroot.org/results/c03a786791e3aa7801cf1bff9934c4a105f54ce1 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: - add the new dependency as its own 'depends on' line ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit a4ad5fa) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
similar to previous problems with nios2 and not-available atomic ints the build for Boost.Atomics also fails for ARC Targets which don't have the ATOMICS_EXT flag set. according to [0] "Boost.Atomic has a hard requirement of the native atomic operations on bytes". The same tests mentioned there fail for ARC without the atomic extension. Disable BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS for BR2_arc without BR2_ARC_ATOMIC_EXT. Fixes: http://autobuild.buildroot.net/results/4ca54a85672d7b9328b1909b457e548c6032a493 [0] boostorg/atomic#42 (comment) Signed-off-by: Michael Nosthoff <buildroot@heine.tech> [Arnout: add to BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS instead of updating all packages] Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
similar to previous problems with nios2 and not-available atomic ints the build for Boost.Atomics also fails for ARC Targets which don't have the ATOMICS_EXT flag set. according to [0] "Boost.Atomic has a hard requirement of the native atomic operations on bytes". The same tests mentioned there fail for ARC without the atomic extension. Disable BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS for BR2_arc without BR2_ARC_ATOMIC_EXT. Fixes: http://autobuild.buildroot.net/results/4ca54a85672d7b9328b1909b457e548c6032a493 [0] boostorg/atomic#42 (comment) Signed-off-by: Michael Nosthoff <buildroot@heine.tech> [Arnout: add to BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS instead of updating all packages] Signed-off-by: Arnout Vandecappelle <arnout@mind.be> (cherry picked from commit ad71b41) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
similar to previous problems with nios2 and not-available atomic ints the build for Boost.Atomics also fails for ARC Targets which don't have the ATOMICS_EXT flag set. according to [0] "Boost.Atomic has a hard requirement of the native atomic operations on bytes". The same tests mentioned there fail for ARC without the atomic extension. Disable BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS for BR2_arc without BR2_ARC_ATOMIC_EXT. Fixes: http://autobuild.buildroot.net/results/4ca54a85672d7b9328b1909b457e548c6032a493 [0] boostorg/atomic#42 (comment) Signed-off-by: Michael Nosthoff <buildroot@heine.tech> [Arnout: add to BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS instead of updating all packages] Signed-off-by: Arnout Vandecappelle <arnout@mind.be> (cherry picked from commit ad71b41) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
similar to previous problems with nios2 and not-available atomic ints the build for Boost.Atomics also fails for ARC Targets which don't have the ATOMICS_EXT flag set. according to [0] "Boost.Atomic has a hard requirement of the native atomic operations on bytes". The same tests mentioned there fail for ARC without the atomic extension. Disable BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS for BR2_arc without BR2_ARC_ATOMIC_EXT. Fixes: http://autobuild.buildroot.net/results/4ca54a85672d7b9328b1909b457e548c6032a493 [0] boostorg/atomic#42 (comment) Signed-off-by: Michael Nosthoff <buildroot@heine.tech> [Arnout: add to BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS instead of updating all packages] Signed-off-by: Arnout Vandecappelle <arnout@mind.be> (cherry picked from commit ad71b41) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Since version 1.74.0, boost fails to build on nios2:
Full build log is available here:
http://autobuild.buildroot.org/results/c03/c03a786791e3aa7801cf1bff9934c4a105f54ce1/build-end.log
The text was updated successfully, but these errors were encountered: