* [Buildroot] [PATCH] mongodb: disable support for armv4 and armv5
@ 2016-01-04 15:50 Sergio Prado
2016-01-04 16:39 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Sergio Prado @ 2016-01-04 15:50 UTC (permalink / raw)
To: buildroot
When compiling for armv4 or armv5, we get the following error:
src/mongo/util/signal_handlers_synchronous.cpp:188:9: error: 'current_exception' is not a member of 'std'
if (std::current_exception()) {
^
This is because libstdc++ will only enable std::current_exception if ATOMIC_INT_LOCK_FREE > 1, which is not the case for armv4 and armv5 architectures, so disable them.
Fixes:
http://autobuild.buildroot.net/results/589a02f511939531141135def73785b600113152/
http://autobuild.buildroot.net/results/89b9cd2dae8645b50407409c7f2a8567c551822c/
http://autobuild.buildroot.net/results/b8ffce927cb0563f5c43533ec2f02d3487acc198/
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
---
package/mongodb/Config.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/mongodb/Config.in b/package/mongodb/Config.in
index 7665c864833e..2f6876a19919 100644
--- a/package/mongodb/Config.in
+++ b/package/mongodb/Config.in
@@ -1,8 +1,9 @@
# from src/mongo/platform/bits.h
config BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
bool
- default y if BR2_aarch64 || BR2_arm || \
- BR2_i386 || BR2_powerpc64 || BR2_x86_64
+ # ARM needs LDREX/STREX, so ARMv6+
+ default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5
+ default y if BR2_aarch64 || BR2_i386 || BR2_powerpc64 || BR2_x86_64
config BR2_PACKAGE_MONGODB
bool "mongodb"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] mongodb: disable support for armv4 and armv5
2016-01-04 15:50 [Buildroot] [PATCH] mongodb: disable support for armv4 and armv5 Sergio Prado
@ 2016-01-04 16:39 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2016-01-04 16:39 UTC (permalink / raw)
To: buildroot
>>>>> "Sergio" == Sergio Prado <sergio.prado@e-labworks.com> writes:
> When compiling for armv4 or armv5, we get the following error:
> src/mongo/util/signal_handlers_synchronous.cpp:188:9: error: 'current_exception' is not a member of 'std'
> if (std::current_exception()) {
> ^
> This is because libstdc++ will only enable std::current_exception if ATOMIC_INT_LOCK_FREE > 1, which is not the case for armv4 and armv5 architectures, so disable them.
> Fixes:
> http://autobuild.buildroot.net/results/589a02f511939531141135def73785b600113152/
> http://autobuild.buildroot.net/results/89b9cd2dae8645b50407409c7f2a8567c551822c/
> http://autobuild.buildroot.net/results/b8ffce927cb0563f5c43533ec2f02d3487acc198/
> Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-04 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-04 15:50 [Buildroot] [PATCH] mongodb: disable support for armv4 and armv5 Sergio Prado
2016-01-04 16:39 ` Peter Korsgaard
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.