[SERVER-14619] Cannot build on armv6l architecture (raspberry pi) Created: 19/Jul/14  Updated: 21/Jul/14  Resolved: 19/Jul/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dmitriy Simushev Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-1811 ARM support Closed
Operating System: ALL
Steps To Reproduce:

Try to build v2.7.3 from the sources

Participants:

 Description   

It seems that v8, that is shipped with mongodb cannot be build on arm architecture. Here is the output of "scons core" command:

scons: Reading SConscript files ...
Mkdir(".scons/Linux/nohost")
scons version: 2.1.0
python version: 2 7 3 'final' 0
Checking whether the C++ compiler worksyes
Checking whether the C compiler worksyes
Checking if C++ compiler "g++" is GCC... yes
Checking if C compiler "gcc" is GCC... yes
Checking if target architecture is 32-bit x86...no
Checking if C compiler supports -Wno-unused-local-typedefs... no
Checking if C compiler supports -Wno-unused-function... yes
Checking if C compiler supports -Wno-unused-private-field... no
Checking if C compiler supports -Wno-deprecated-declarations... yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no
Checking if C compiler supports -Wno-unused-const-variable... no
Checking if we are using libstdc++... yes
Checking for libstdc++ 4.6.0 or better... yes
Checking if C++ compiler supports -std=c++11... no
Checking if C++ compiler supports -std=c++0x... yes
Checking if __cplusplus >= 201103L to auto-enable C++11... no
Checking if we are on a POSIX system... yes
Checking if the POSIX monotonic clock is supported... yes
Checking if C compiler supports -fno-builtin-memcmp... yes
Checking for __thread... yes
Checking for gcc __atomic builtins... no
Checking for useable __sync builtins... yes
Checking for C library rt... yes
Checking for C library dl... yes
Checking for C++ header file execinfo.h... yes
Checking whether backtrace is declared... yes
Checking whether backtrace_symbols is declared... yes
Checking whether backtrace_symbols_fd is declared... yes
Checking for C library pcap... no
Checking for C library wpcap... no
AssertionError: Unsupported architecture: armv6l:
  File "/home/webadmin/mongo/mongo-r2.7.3/SConstruct", line 1989:
    env.SConscript('src/SConscript', variant_dir='$BUILD_DIR', duplicate=False)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/webadmin/mongo/mongo-r2.7.3/src/SConscript", line 10:
    module_sconscripts)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/webadmin/mongo/mongo-r2.7.3/src/third_party/SConscript", line 61:
    env.SConscript('v8' + v8suffix + '/SConscript')
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/webadmin/mongo/mongo-r2.7.3/src/third_party/v8/SConscript", line 344:
    options = get_options()
  File "/home/webadmin/mongo/mongo-r2.7.3/src/third_party/v8/SConscript", line 296:
    assert False, "Unsupported architecture: " + processor



 Comments   
Comment by Dmitriy Simushev [ 21/Jul/14 ]

Thanks, Matt, but I am using 32-bit arm platform, so I still cannot build mongo there.

Comment by Matt Kangas [ 21/Jul/14 ]

justblackbird - we do not officially support ARM hardware, but we have recently implemented some changes that bring it closer to supported: SERVER-13686, SERVER-13828, SERVER-14554.

The V8 version you want must be specified as follows: scons --js-engine=v8-3.25

This is reported to produce a working mongod on at least one 64-bit armv8 platform, but we do not have access to this platform and cannot verify this claim.

Comment by Scott Hernandez (Inactive) [ 19/Jul/14 ]

There is currently no arm support for the server: SERVER-1811

Generated at Thu Feb 08 03:35:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.