Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 13:58:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 272294] databases/mongodb44 uses -march=armv8.2-a and does not work on raspberry pi anymore
Message-ID:  <bug-272294-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272294

            Bug ID: 272294
           Summary: databases/mongodb44 uses -march=3Darmv8.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=3Darmv8.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/=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
(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 =3D 'mongod', stop reason =3D 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 fo=
r:
operator new(unsigned long)
(lldb)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272294-7788>