Bug 295904 - sysutils/loki3: mark NOT_FOR_ARCHS i386 (modernc.org/libc build failure)
Summary: sysutils/loki3: mark NOT_FOR_ARCHS i386 (modernc.org/libc build failure)
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-07 01:19 UTC by Daniel Morante
Modified: 2026-06-07 01:19 UTC (History)
0 users

See Also:


Attachments
Git diff patch (436 bytes, patch)
2026-06-07 01:19 UTC, Daniel Morante
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Morante 2026-06-07 01:19:07 UTC
Created attachment 271571 [details]
Git diff patch

sysutils/loki3 fails to build on i386 due to type mismatches in the
vendored modernc.org/libc Go dependency. On 32-bit platforms, size_t is
uint32 but the library code assumes uint64, causing errors like:

  vendor/modernc.org/libc/libc_freebsd.go:247:25: cannot use int64(off)
    (value of type int64) as int32 value in assignment
  vendor/modernc.org/libc/libc_freebsd.go:1642:17: invalid operation:
    mismatched types uint64 and size_t

This is an upstream limitation in modernc.org/libc

Build log: https://pkg-status.freebsd.org/beefy18/data/143i386-default/40859a0a15a6/logs/grafana-loki3-3.7.2_1.log