Details
-
Task
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
None
-
Dev Platform 2021-05-03
Description
I built mongod from the latest master branch off of the git repo on ARM64. Ubuntu 20.04
$ uname -a
Linux arminst8x-01 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:42:16 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
$ git clone https://github.com/mongodb/mongo.git
$ buildscripts/scons.py CCFLAGS="-march=armv8.1-a" DESTDIR=/home/ubuntu/bin/mongo --disable-warnings-as-errors install-mongod
$ ./mongod --help
Illegal instruction
$ lldb ./mongod
(lldb) target create "./mongod"
Current executable set to '/home/ubuntu/bin/mongo/bin/mongod' (aarch64).
(lldb) run
Process 90916 launched: '/home/ubuntu/bin/mongo/bin/mongod' (aarch64)
Process 90916 stopped
- thread #1, name = 'mongod', stop reason = signal SIGILL: illegal instruction
frame #0: 0x0000aaaaae759260 mongod`tcmalloc::ThreadCache::InitModule() [inlined] SpinLockHolder::SpinLockHolder(l=<unavailable>, this=<unavailable>) at atomicops-internals-gcc.h:84:30
81 Atomic32 old_value,
82 Atomic32 new_value) { 83 Atomic32 prev_value = old_value; -> 84 __atomic_compare_exchange_n(ptr, &prev_value, new_value, 85 0, __ATOMIC_ACQUIRE, __ATOMIC_RELAXED); 86 return prev_value; 87 }(lldb) c
Process 90916 resuming
Process 90916 exited with status = 4 (0x00000004)
(lldb)
Please let me know if you need me to attach any logs and where to find them on the build tree.