You are not logged in.

#1 2023-08-24 14:07:08

eom.dev
Member
Registered: 2022-02-11
Posts: 57

MongoDB: Illegal instruction (core dumped)

I installed MongoDB from the AUR and ran makepkg with no special configuration or flags.  The compilation outputted a lot of warnings, but no errors, and I was able to install the resulting zst; however, attempting to start the systemd service, or run the mongo command result in:

Illegal instruction (core dumped)

with no other output.  Has anyone seen this with MongoDB and managed to fix the issue?  Are there compiler flags I need to add?  How might I debug the issue?

Offline

#2 2023-08-24 14:18:16

seth
Member
Registered: 2012-09-03
Posts: 51,532

Offline

#3 2023-08-24 15:33:01

eom.dev
Member
Registered: 2022-02-11
Posts: 57

Re: MongoDB: Illegal instruction (core dumped)

coredumpctl list
No coredumps found.

The process doesn't run, so there is nothing to which gdb would attach.

Last edited by eom.dev (2023-08-24 15:34:57)

Offline

#4 2023-08-24 16:33:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,591

Re: MongoDB: Illegal instruction (core dumped)

MongoDB 5+ requires AVX. If you're on a CPU that doesn't have that, you need to use MongoDB 4.4.

Offline

#5 2023-08-24 17:38:37

loqs
Member
Registered: 2014-03-06
Posts: 17,415

Re: MongoDB: Illegal instruction (core dumped)

What if you disable sandybridge optimization?

diff --git a/PKGBUILD b/PKGBUILD
index 42208d8..4daad95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -64,6 +64,7 @@ _scons_args=(
   --use-system-boost
   --use-system-zstd
   --runtime-hardening=off
+  --experimental-optimization=-sandybridge
 )
 
 all-flag-vars() {

Offline

Board footer

Powered by FluxBB