Port details |
- llvm18 LLVM and Clang
- 18.1.8_2 devel =2 18.1.8_2Version of this port present on the latest quarterly branch.
- Maintainer: brooks@FreeBSD.org
- 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.
- ¦ ¦ ¦ ¦
- 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:
-
- Conflicts:
- CONFLICTS_BUILD:
- CONFLICTS_INSTALL:
- 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):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-myst-parser>0 : textproc/py-myst-parser@py311
- py311-sphinx-markdown-tables>=0 : textproc/py-sphinx-markdown-tables@py311
- py311-recommonmark>=0.0.20180530 : textproc/py-recommonmark@py311
- ld.gold : devel/binutils
- swig : devel/swig
- cmake : devel/cmake-core
- ninja : devel/ninja
- python3.11 : lang/python311
- perl5>=5.36<5.37 : lang/perl5.36
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- python3.11 : lang/python311
- perl5>=5.36<5.37 : lang/perl5.36
- Library dependencies:
-
- libzstd.so : archivers/zstd
- liblua-5.3.so : lang/lua53
- libedit.so.0 : devel/libedit
- This port is required by:
- for Build
-
- devel/creduce
- devel/electron31
- devel/electron32
- devel/electron33
- devel/wasi-compiler-rt18
- devel/wasi-libc
- devel/wasi-libcxx18
- for Libraries
-
- devel/creduce
- for Run
-
- devel/creduce
- 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:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
18.1.8_2 13 Jan 2025 23:53:16 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Daniel Engberg (diizzy) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
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 |
Brooks Davis (brooks) |
devel/llvm18: bootstrap from devel/llvm17
This is an unmodified copy of devel/llvm17. The next commit will
update it to LLVM 18. |