notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
llvm18 LLVM and Clang
18.1.8_2 devel on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 18.1.8_2Version of this port present on the latest quarterly branch.
Maintainer: brooks@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-01-30 19:48:06
Last Update: 2025-01-13 23:53:16
Commit Hash: 460b196
People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
Also Listed In: lang
License: BSD3CLAUSE LLVM LLVM2 MIT PD REGEX
WWW:
https://llvm.org/
Description:
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker), LLDB (a debugger), an OpenMP runtime library, and the LLVM infrastructure these are built on.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • llvm18>0:devel/llvm18
Conflicts:
CONFLICTS_BUILD:
  • amd64-binutils
CONFLICTS_INSTALL:
  • llvm18
  • llvm18-lite
To install the port:
cd /usr/ports/devel/llvm18/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/llvm18
  • pkg install llvm18
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: llvm18
Package flavors (<flavor>: <package>)
  • default: llvm18
  • lite: llvm18-lite
distinfo:
TIMESTAMP = 1719009196 SHA256 (llvm-project-18.1.8.src.tar.xz) = 0b58557a6d32ceee97c8d533a59b9212d87e0fc4d2833924eb6c611247db2f2a SIZE (llvm-project-18.1.8.src.tar.xz) = 132067260

Packages (timestamps in pop-ups are UTC):
llvm18
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:13:quarterly18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:14:latest18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:14:quarterly18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:15:latest18.1.8_218.1.8_2n/a18.1.8_2n/a18.1.0.r118.1.0.r118.1.0.r3
 

llvm18-lite
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:13:quarterly18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:14:latest18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:14:quarterly18.1.8_218.1.8_2-18.1.8_218.1.8_2---
FreeBSD:15:latest18.1.8_218.1.8_2n/a18.1.8_2n/a18.1.0.r118.1.0.r118.1.0.r3
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-myst-parser>0 : textproc/py-myst-parser@py311
  2. py311-sphinx-markdown-tables>=0 : textproc/py-sphinx-markdown-tables@py311
  3. py311-recommonmark>=0.0.20180530 : textproc/py-recommonmark@py311
  4. ld.gold : devel/binutils
  5. swig : devel/swig
  6. cmake : devel/cmake-core
  7. ninja : devel/ninja
  8. python3.11 : lang/python311
  9. perl5>=5.36<5.37 : lang/perl5.36
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. python3.11 : lang/python311
  2. perl5>=5.36<5.37 : lang/perl5.36
Library dependencies:
  1. libzstd.so : archivers/zstd
  2. liblua-5.3.so : lang/lua53
  3. libedit.so.0 : devel/libedit
This port is required by:
for Build
  1. devel/creduce
  2. devel/electron31
  3. devel/electron32
  4. devel/electron33
  5. devel/wasi-compiler-rt18
  6. devel/wasi-libc
  7. devel/wasi-libcxx18
Expand this list (11 items / 4 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. lang/zig
  3. math/openturns
  4. www/iridium
  5. www/ungoogled-chromium
  6. Collapse this list.
for Libraries
  1. devel/creduce
for Run
  1. devel/creduce
  2. lang/zig

Configuration Options:
===> The following configuration options are available for llvm18-18.1.8_2: BE_AMDGPU=on: AMD GPU backend (required by mesa) BE_WASM=on: WebAssembly backend (required by firefox via wasi) CLANG=on: Build clang COMPILER_RT=on: Sanitizer libraries DOCS=on: Build and/or install documentation EXTRAS=on: Extra clang tools FLANG=off: Flang FORTRAN compiler GOLD=on: Build the LLVM Gold plugin for LTO LIT=on: Install lit and FileCheck test tools LLD=on: Install lld, the LLVM linker LLDB=on: Install lldb, the LLVM debugger MLIR=on: Multi-Level Intermediate Representation OPENMP=on: Install libomp, the LLVM OpenMP runtime library POLLY=on: Polyhedral loop and data-locality optimizer PYCLANG=on: Install python bindings to libclang STATIC_LIBS=on: Install static libraries (does not effect sanitizers) ====> Options available for the single BACKENDS: you have to select exactly one of them BE_FREEBSD=off: Backends for FreeBSD architectures BE_NATIVE=off: Backend(s) for this architecture (X86) BE_STANDARD=on: All non-experimental backends ===> Use 'make config' to modify these settings
Options name:
devel_llvm18
USES:
cmake compiler:c++17-lang cpe tar:xz shebangfix python perl5 lua:53 libedit gnome
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/
Collapse this list.

Number of commits found: 26

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
18.1.8_2
13 Jan 2025 23:53:16
commit hash: 460b1965554d2e5b9d6adae27f050a99698a46a0commit hash: 460b1965554d2e5b9d6adae27f050a99698a46a0commit hash: 460b1965554d2e5b9d6adae27f050a99698a46a0commit hash: 460b1965554d2e5b9d6adae27f050a99698a46a0 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: Fix !CLANG plist

llvm-debuginfo-analyzer isn't part of Clang, but was matched by the
overly broad pattern `-analyzer`.

Reported by:	jrtc27
Sponsored by:	DARPA, AFRL
18.1.8_2
03 Jan 2025 23:56:57
commit hash: 57f97b36a7cfe19702fbf967e31e0403b72a7ea3commit hash: 57f97b36a7cfe19702fbf967e31e0403b72a7ea3commit hash: 57f97b36a7cfe19702fbf967e31e0403b72a7ea3commit hash: 57f97b36a7cfe19702fbf967e31e0403b72a7ea3 files touched by this commit Sanity Test Failure
Brooks Davis (brooks) search for other commits by this committer
devel/llvm*: flip LICENSE_FILE_BSD3CLAUSE setting [NFC]

The location of this license file moved in LLVM 16.  Since I'm doing
cleanup in this area and the split of ports is about 50/50, switch to
setting the old location in the older ports so the newer ports set fewer
variables.

Sponsored by:	DARPA, AFRL
18.1.8_2
03 Jan 2025 23:56:56
commit hash: 4f177eced75e0e3fb1c5a9f782b6810e253265f9commit hash: 4f177eced75e0e3fb1c5a9f782b6810e253265f9commit hash: 4f177eced75e0e3fb1c5a9f782b6810e253265f9commit hash: 4f177eced75e0e3fb1c5a9f782b6810e253265f9 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm*: LICENSE_DIR simplification

WRKSRC moved to the top of the source tree with llvm12.  As a result,
LICENSE_DIR became ${WRKSRC}/llvm.  Given that llvm11 the only port that
wasn't setting LICENSE_DIR, flip the script and default to
${WRKSRC}/llvm with llvm11 overriding.

Sponsored by:	DARPA, AFRL
18.1.8_2
03 Jan 2025 23:56:56
commit hash: d17143d1b73eee11b9196c2603636eebdcb8c2fecommit hash: d17143d1b73eee11b9196c2603636eebdcb8c2fecommit hash: d17143d1b73eee11b9196c2603636eebdcb8c2fecommit hash: d17143d1b73eee11b9196c2603636eebdcb8c2fe files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm*: don't define the ARM license [NFC]

All LLVM ports excluded it from the list as it was removed many years
ago.

Sponsored by:	DARPA, AFRL
18.1.8_2
03 Jan 2025 23:56:56
commit hash: 18840affe5cd004d73517102a0a11b56ed087babcommit hash: 18840affe5cd004d73517102a0a11b56ed087babcommit hash: 18840affe5cd004d73517102a0a11b56ed087babcommit hash: 18840affe5cd004d73517102a0a11b56ed087bab files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm*: Always define LLVM2 license [NFC]

All LLVM ports in the tree use the Apache License 2.0 with LLVM
Exceptions license so cerntralize the definition.

Sponsored by:	DARPA, AFRL
18.1.8_2
01 Oct 2024 23:16:46
commit hash: 7cea690fddbd4f6bb3ad3360e625754bde7ac4e6commit hash: 7cea690fddbd4f6bb3ad3360e625754bde7ac4e6commit hash: 7cea690fddbd4f6bb3ad3360e625754bde7ac4e6commit hash: 7cea690fddbd4f6bb3ad3360e625754bde7ac4e6 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel.llvm[12345678]: remove cmark conflict [NFC]

The build conflict with cmark is no longer needed.

PR:		239636, 274848
18.1.8_2
12 Sep 2024 07:15:27
commit hash: 7ff7bac6370f6bb880187ec31dcd54fd046ffcd2commit hash: 7ff7bac6370f6bb880187ec31dcd54fd046ffcd2commit hash: 7ff7bac6370f6bb880187ec31dcd54fd046ffcd2commit hash: 7ff7bac6370f6bb880187ec31dcd54fd046ffcd2 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm[789]: restore arm_bf16.h to ARM backend

arm_bf16.h is generated for both armv7 and aarch64 so move it back to
ARM.  We don't support AArch64 without ARM so we can just move it and
not need to worry about duplicate supression (I'd previously fixed the
issue in llvm19 in a more complicated manner so this change removes the
duplicate supression and documents why it's not needed.)

PR:		281179
Reported by:	Mark Millard
18.1.8_1
25 Jul 2024 22:00:32
commit hash: a4e0cb2fd99adef4cbd4f778be729a079a5f2deacommit hash: a4e0cb2fd99adef4cbd4f778be729a079a5f2deacommit hash: a4e0cb2fd99adef4cbd4f778be729a079a5f2deacommit hash: a4e0cb2fd99adef4cbd4f778be729a079a5f2dea files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: fix host dependent compiler output for i386

Merge fixes for a couple cases where the compiler generated different
i386 code depending on the host.  In the base system this showed up as
very small differences in a couple object files in buildworld for i386
depending on the host architecture (i386 or amd64).

PR:		276961
18.1.8
15 Jul 2024 21:51:05
commit hash: 772e9ff110df8a8485f4e417c648b626dd829e9ecommit hash: 772e9ff110df8a8485f4e417c648b626dd829e9ecommit hash: 772e9ff110df8a8485f4e417c648b626dd829e9ecommit hash: 772e9ff110df8a8485f4e417c648b626dd829e9e files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: Backport __stack_chk_guard fix

Backport upstream commit commit 26464f2662d1 which marks __stack_chk_guard
dso_local except for PPC64 to fix loading an x86 kernel build with
--fstack-protector.

Also update to 18.1.8.  From a packaging perspective this only bumps the
version number since it only touchs libc++ which we don't ship.  As such,
I'd waited to bundle this bump with a functional change.

Drop releases.llvm.org, the LLVM project seems to nonlonger update it.

Co-authored by: Ahmad Khalifa <ahmadkhalifa570@gmail.com>
Pull Request: https://github.com/freebsd/freebsd-ports/pull/283
18.1.7
11 Jun 2024 23:26:40
commit hash: a67712e171902d2251820ae20819a22df5024c67commit hash: a67712e171902d2251820ae20819a22df5024c67commit hash: a67712e171902d2251820ae20819a22df5024c67commit hash: a67712e171902d2251820ae20819a22df5024c67 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: 18.1.7

The main change is a fix for a regression in PowerPC:
    https://discourse.llvm.org/t/18-1-7-released/79433
18.1.6_1
28 May 2024 11:56:43
commit hash: c56fde6514ee21ccb186267c304ad444463f661ccommit hash: c56fde6514ee21ccb186267c304ad444463f661ccommit hash: c56fde6514ee21ccb186267c304ad444463f661ccommit hash: c56fde6514ee21ccb186267c304ad444463f661c files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: misc improvements

Fix worse runtime performance on Zen CPU when optimizing for Zen. [0]

Install all standard heaaders with clang.  Historically we've been
unable to build FreeBSD with the full set due to conflicts and/or
missing features between the compiler provided headers and
FreeBSD's headers.  I've verified that I can build world and kernel on
the main, stable/14, and stable/13 branches for amd64 so let's give it
another try in broader testing. [1]

PR:		278908 [0], 274542 [1]
18.1.6
20 May 2024 21:29:35
commit hash: b74e0482275ebf33f39cc5db20a61d8744d490e1commit hash: b74e0482275ebf33f39cc5db20a61d8744d490e1commit hash: b74e0482275ebf33f39cc5db20a61d8744d490e1commit hash: b74e0482275ebf33f39cc5db20a61d8744d490e1 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: 18.1.6 release

Included changes are in the release annoucment:
    https://discourse.llvm.org/t/18-1-6-released/79068

This includes a fix for -march=native which was broken in 18.1.5.  Also
includs a fix for OpenMP child processes.

PR:		278843, 279131
18.1.5
09 May 2024 21:57:51
commit hash: ccca8574faa74485dd8c8e13458275a67ef63f99commit hash: ccca8574faa74485dd8c8e13458275a67ef63f99commit hash: ccca8574faa74485dd8c8e13458275a67ef63f99commit hash: ccca8574faa74485dd8c8e13458275a67ef63f99 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: 18.1.5 release

For a list of changes see the release announcement:
   https://discourse.llvm.org/t/18-1-5-released/78740
18.1.4
18 Apr 2024 23:57:12
commit hash: 1c1cb5e96547b6240f3dd652ab953f91e492c3f2commit hash: 1c1cb5e96547b6240f3dd652ab953f91e492c3f2commit hash: 1c1cb5e96547b6240f3dd652ab953f91e492c3f2commit hash: 1c1cb5e96547b6240f3dd652ab953f91e492c3f2 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: 18.1.4 release

Release notes: https://discourse.llvm.org/t/18-1-4-released/78430

Allow sanitizers to link without -lsys.

Sponsored by:	AFRL, DARPA
18.1.3
14 Apr 2024 19:52:59
commit hash: 1f50c8e24264be1d64a96e84536e2e1d59b63180commit hash: 1f50c8e24264be1d64a96e84536e2e1d59b63180commit hash: 1f50c8e24264be1d64a96e84536e2e1d59b63180commit hash: 1f50c8e24264be1d64a96e84536e2e1d59b63180 files touched by this commit
Daniel Engberg (diizzy) search for other commits by this committer
devel/llvm*: Remove unnecessary C/CFLAGS definitions

As of 3c5189a0fd4c82addfb659024bf28c5006bf88f7
there's no need to define DNDEBUG manually

PR:		277909
Approved by:	portmgr (maintainer timeout, 2+ weeks)
18.1.3
04 Apr 2024 18:18:31
commit hash: 935a2fb3225e597d204b459b92a05466a0e8dfabcommit hash: 935a2fb3225e597d204b459b92a05466a0e8dfabcommit hash: 935a2fb3225e597d204b459b92a05466a0e8dfabcommit hash: 935a2fb3225e597d204b459b92a05466a0e8dfab files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: Update to 18.1.3

Release notes: https://discourse.llvm.org/t/18-1-3-released/78136

Sponsored by:	AFRL, DARPA
18.1.2
22 Mar 2024 17:44:59
commit hash: 49940028250a4fb4beffc5a332fa9c0b612d0a3acommit hash: 49940028250a4fb4beffc5a332fa9c0b612d0a3acommit hash: 49940028250a4fb4beffc5a332fa9c0b612d0a3acommit hash: 49940028250a4fb4beffc5a332fa9c0b612d0a3a files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: PLIST_SUB improvements [NFC]

Chase changes in library suffixes and fix an overly pesimistic
substitution.  No functional change, but will reduce plist churn when 19
comes out assuming there aren't further upstream changes in suffixes.
18.1.2
20 Mar 2024 18:55:32
commit hash: cde3d1c3a486975ae40b02ecbc56b34c72505a61commit hash: cde3d1c3a486975ae40b02ecbc56b34c72505a61commit hash: cde3d1c3a486975ae40b02ecbc56b34c72505a61commit hash: cde3d1c3a486975ae40b02ecbc56b34c72505a61 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: 18.1.2 release

Announcement and list of changes since 18.1.1:
    https://discourse.llvm.org/t/18-1-2-released/77821
18.1.1
20 Mar 2024 18:55:31
commit hash: 3face504c4bc4a19b1711f0cb4345a3bc9321d0fcommit hash: 3face504c4bc4a19b1711f0cb4345a3bc9321d0fcommit hash: 3face504c4bc4a19b1711f0cb4345a3bc9321d0fcommit hash: 3face504c4bc4a19b1711f0cb4345a3bc9321d0f files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: 18.1.1 release

No functional change as all this release does does is set
LLVM_VERSION_SUFFIX="" (which we now do in the Makefile) and bump the
release version.
18.1.0
06 Mar 2024 22:24:33
commit hash: fe3eb3a31305c299a4d5bc2c555c61c22edb1248commit hash: fe3eb3a31305c299a4d5bc2c555c61c22edb1248commit hash: fe3eb3a31305c299a4d5bc2c555c61c22edb1248commit hash: fe3eb3a31305c299a4d5bc2c555c61c22edb1248 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: 18.1.0 release

See the release announcment at:
    https://discourse.llvm.org/t/llvm-18-1-0-released/77448
18.1.0.r4
28 Feb 2024 16:21:35
commit hash: 9548c69f1e29e563026b679d99fb2b1aabcc71f4commit hash: 9548c69f1e29e563026b679d99fb2b1aabcc71f4commit hash: 9548c69f1e29e563026b679d99fb2b1aabcc71f4commit hash: 9548c69f1e29e563026b679d99fb2b1aabcc71f4 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: update to 18.1.0rc4

This is intended to be the last release candidate.
18.1.0.r3
21 Feb 2024 21:28:19
commit hash: f307f6541eaaed094941e65de46dcf44e5ea058ccommit hash: f307f6541eaaed094941e65de46dcf44e5ea058ccommit hash: f307f6541eaaed094941e65de46dcf44e5ea058ccommit hash: f307f6541eaaed094941e65de46dcf44e5ea058c files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: Update to 18.1.0rc3

Add a build conflict with ${ARCH}-binutils for COMPILER_RT to avoid
plist issues.  Technically this is only an issue for 64-bit
architectures that build 32-bit sanitizers (the presence of <triple>-ld
is picked up and it doesn't pass some cmake test), but it's easier to
just block all of them.
18.1.0.r2
08 Feb 2024 19:08:10
commit hash: 49f10e38b2679f68cd6964b97a7c6c73806abd2dcommit hash: 49f10e38b2679f68cd6964b97a7c6c73806abd2dcommit hash: 49f10e38b2679f68cd6964b97a7c6c73806abd2dcommit hash: 49f10e38b2679f68cd6964b97a7c6c73806abd2d files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: update to 18.1.0rc2

Add a libLLVM-18.so symlink to address hardcoding in Uses/llvm.mk and
other locations. [0]

Reported by:	Mark Millard <marklmi@yahoo.com>
18.1.0.r1
06 Feb 2024 21:21:31
commit hash: cf92377ad51eb7e0dbe805e34f5089f7eec89044commit hash: cf92377ad51eb7e0dbe805e34f5089f7eec89044commit hash: cf92377ad51eb7e0dbe805e34f5089f7eec89044commit hash: cf92377ad51eb7e0dbe805e34f5089f7eec89044 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: fix plist issues with BE_NATIVE

Several flang modules depend on the PPC backend.

Add a couple more arm headers that depend on the Arm or AArch64
backends.

Reported by:	Mark Millard <marklmi@yahoo.com>
18.1.0.r1
30 Jan 2024 19:46:08
commit hash: 9e99ad2987fb946cace87af74011743f0e2d0106commit hash: 9e99ad2987fb946cace87af74011743f0e2d0106commit hash: 9e99ad2987fb946cace87af74011743f0e2d0106commit hash: 9e99ad2987fb946cace87af74011743f0e2d0106 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm-devel: update to 18.1.0rc1

Update from 17 to 18 and connect to build.

Upstream has changed versioning so release branches bump the minor
version to 1 to differentiate them from the pre-branch development
version.

I've moved the .cmake files into STATIC_LIBS as they aren't useful
without .a files.  This removes from from the lite flavor (which will
likely be replaced with subpackages.) [0]

PR:		271821 [0]
17.0.6_4
30 Jan 2024 19:46:08
commit hash: 423f059805b98108ace21b578b523f370d22bd03commit hash: 423f059805b98108ace21b578b523f370d22bd03commit hash: 423f059805b98108ace21b578b523f370d22bd03commit hash: 423f059805b98108ace21b578b523f370d22bd03 files touched by this commit
Brooks Davis (brooks) search for other commits by this committer
devel/llvm18: bootstrap from devel/llvm17

This is an unmodified copy of devel/llvm17.  The next commit will
update it to LLVM 18.

Number of commits found: 26