Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2026 14:32:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 287944] [NEW PORT] www/iocaine: The deadliest poison known to AI
Message-ID:  <bug-287944-7788-F47yDHVqcs@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-287944-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287944

--- Comment #22 from Sebastian Oswald <sko@rostwald.de> ---
(In reply to Kurt Jaeger from comment #21)

> The system library `libzstd` required by crate `zstd-sys` was not found.
> The file `libzstd.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
> The PKG_CONFIG_PATH environment variable is not set.

This sadly is a bug with the bundled LLVM which still hasn't been fixed by
rust:
https://github.com/rust-lang/rust/issues/135503

I completely forgot about that, but now that I saw your log entry I remembered
running into this compile error before (not with iocaine but with other
rust-based ports). The solution is to build rust with PORT_LLVM=on so it looks
at the correct paths for system libraries. The LLVM version bundled with rust
omits /usr/local/lib, so this problem exists for any OS adhering to the unix
hierarchy and puts third-party libraries in /usr/local/lib (linux does not, so
it works for them).

I've set lang_rust_SET+=PORT_LLVM in my makefiles a long time ago when first
running into that problem and completely forgot about it. (and disabled DOCS
and SOURCES for that matter)
And yes, building rust is a major PITA, especially its insane memory/tempfs
requirements (which are considered "OK" and "normal" by its devs...). I have to
build it for other ports like firefox, so having another port that requires is
doesn't hurt as much. 
Building the iocaine port itself should take well under 15 minutes (~13 minutes
on my old Xeon E5-2660v4 based buildhost)

I'm not sure if we should bring up that compile error with lang/rust, e.g. to
default to PORT_LLVM=on, or urge upstream to finally fix that bug (which I
guess is pointless...)

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

home | help

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