[Bug 272294] databases/mongodb44 uses -march=armv8.2-a and does not work on raspberry pi anymore

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 30 Jun 2023 13:58:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272294

            Bug ID: 272294
           Summary: databases/mongodb44 uses -march=armv8.2-a and does not
                    work on raspberry pi anymore
           Product: Ports & Packages
           Version: Latest
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ronald@FreeBSD.org

MongoDB 4.4.18 didn't add -march=armv8.2-a to the build. Recent versions do.
MongoDB 5 and 6 have patches to SConstruct to lower the minimal march to be
compatible with Raspberry PIs.

Tasks:
- Patch SConstruct similar to MongoDB 5 and 6.
- Find out if some patch was lost for MongoDB 4.4 (less important, but nice for
history)


Some example output of 4.4.22 on Rpi4:

[root@rpi4 /var/tmp]# lldb -- mongod --dbpath /var/tmp/bla/                     
(lldb) target create "mongod"
Current executable set to '/usr/local/bin/mongod' (aarch64).
(lldb) settings set -- target.run-args  "--dbpath" "/var/tmp/bla/"
(lldb) run
Process 22126 launched: '/usr/local/bin/mongod' (aarch64)
Process 22126 stopped
* thread #1, name = 'mongod', stop reason = signal SIGILL: illegal trap
    frame #0: 0x0000409dc873a664
mongod`mongo::MutableObserverRegistry<int>::MutableObserverRegistry() + 52
mongod`mongo::MutableObserverRegistry<int>::MutableObserverRegistry:
->  0x409dc873a664 <+52>: ldaddal x10, x8, [x9]
    0x409dc873a668 <+56>: strb   w10, [sp, #0x40]
    0x409dc873a66c <+60>: str    x8, [sp, #0x38]
    0x409dc873a670 <+64>: bl     0x409dca575110            ; symbol stub for:
operator new(unsigned long)
(lldb)

-- 
You are receiving this mail because:
You are the assignee for the bug.