[Bug 293490] New port: math/USearch Search Cluster Library

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Feb 2026 10:47:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293490

Gleb Popov <arrowd@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress
           Assignee|ports-bugs@FreeBSD.org      |arrowd@FreeBSD.org

--- Comment #8 from Gleb Popov <arrowd@FreeBSD.org> ---
Created attachment 268414
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=268414&action=edit
Revised patch

I took the patch and made changes that are mostly cosmetic. Markus, please let
me know if you're OK with them.

I found a problem with the test suite on FreeBSD 13.5-RELEASE i386 - it crashes
with a following backtrace:

* thread #1, name = 'test_cpp', stop reason = signal SIGABRT
    frame #0: 0x20927d5f libc.so.7`__sys_thr_kill + 7
    frame #1: 0x208a635b libc.so.7`__raise + 59
    frame #2: 0x2095119b libc.so.7`abort + 75
    frame #3: 0x207a0565 libcxxrt.so.1`std::terminate() + 53
    frame #4: 0x207a15fe libcxxrt.so.1`___lldb_unnamed_symbol477 + 78
    frame #5: 0x207a11f1 libcxxrt.so.1`___lldb_unnamed_symbol475 + 129
    frame #6: 0x0043f653 test_cpp`usearch_raise_runtime_error(message="C++ unit
test failed at
/wrkdirs/usr/ports/math/usearch/work/USearch-2.24.0/cpp/test.cpp:149") at
index.hpp:169:5
    frame #7: 0x0043f5c5 test_cpp`__expect(must_be_true=false,
file="/wrkdirs/usr/ports/math/usearch/work/USearch-2.24.0/cpp/test.cpp",
line=149, message="C++ unit test failed") at test.cpp:39:5
    frame #8: 0x004c9a86 test_cpp`void __expect_eq<bool>(a=true, b=false,
file="/wrkdirs/usr/ports/math/usearch/work/USearch-2.24.0/cpp/test.cpp",
line=149, message=0x00000000) at test.cpp:44:5
  * frame #9: 0x0044696d test_cpp`test_uint40() at test.cpp:149:13
    frame #10: 0x0044bd2e test_cpp`main((null)=1, (null)=0xffffdbec) at
test.cpp:1183:5
    frame #11: 0x0043f35e test_cpp`_start1(cleanup=0x20564cf0, argc=1,
argv=0xffffdbec) at crt1_c.c:66:7
    frame #12: 0x0043f494 test_cpp`_start at crt1_s.S:42

Markus, do you have an idea what's wrong here? If the software is not even
intended to be run on i386, then we can add NOT_FOR_ARCHS=i386 to the Makefile.

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