[Bug 277990] net-mgmt/unifi8: mongodb SIGILL due to missing AVX instructions

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 27 Mar 2024 12:23:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277990

            Bug ID: 277990
           Summary: net-mgmt/unifi8: mongodb SIGILL due to missing AVX
                    instructions
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: otis@FreeBSD.org
          Reporter: bllcha013@myuct.ac.za
          Assignee: otis@FreeBSD.org
             Flags: maintainer-feedback?(otis@FreeBSD.org)

Hello, after mongodb44 was replaced with mongodb50, my UniFi Controller
wouldn't work anymore since MongoDB wasn't able to run due to my CPU lacking
AVX instructions (signal 4 SIGILL on startup). The packages for mongodb50 (and
newer) are built with AVX by default.

I managed to get it working again by building the mongodb50 port with the
NO_AVX option.

Is it at all feasible to get a package flavor (for unifi and/or mongodb, I'm
not sure which one it needs to be) without the AVX requirement?

In addition, not sure if this should go in a separate report or not, but UniFi
Controller 8.1 officially supports MongoDB 7, is it possible for the unifi8
port to be changed to use mongodb70 instead of mongodb50? MongoDB 5.0 will be
end of life soon in October 2024, while MongoDB 7.0 will be end of life much
later in August 2026. Since UniFi officially supports it, wouldn't it would be
a good idea to change to MongoDB 7.0?

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