Port details |
- llvm12 LLVM and Clang
- 12.0.1_10 devel
=2 12.0.1_10Version of this port present on the latest quarterly branch. - Maintainer: brooks@FreeBSD.org
 - Port Added: 2021-03-05 01:48:14
- Last Update: 2023-04-24 17:06:31
- Commit Hash: fb323df
- People watching this port, also watch:: font-bh-lucidatypewriter-100dpi, desktop-file-utils, xclock, font-misc-meltho, libinotify
- Also Listed In: lang
- License: BSD3CLAUSE LLVM MIT PD REGEX LLVM2
- 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.
¦ ¦ ¦ ¦ 
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- Conflicts:
- CONFLICTS_BUILD:
- Conflicts Matches:
-
There are no Conflicts Matches for this port. This is usually an error.
- To install the port:
- cd /usr/ports/devel/llvm12/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/llvm12
- pkg install llvm12
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: llvm12
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1626371873
SHA256 (llvm-project-12.0.1.src.tar.xz) = 129cb25cd13677aad951ce5c2deb0fe4afc1e9d98950f53b51bdcfb5a73afa0e
SIZE (llvm-project-12.0.1.src.tar.xz) = 90910004
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:
-
- libunwind>0 : devel/libunwind
- py39-sphinx>=0,1 : textproc/py-sphinx@py39
- py39-recommonmark>=0.0.20180530 : textproc/py-recommonmark@py39
- ld.gold : devel/binutils
- swig : devel/swig
- cmake : devel/cmake-core
- ninja : devel/ninja
- python3.9 : lang/python39
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- python3.9 : lang/python39
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Library dependencies:
-
- liblua-5.3.so : lang/lua53
- libedit.so.0 : devel/libedit
- libxml2.so : textproc/libxml2
- This port is required by:
- for Build
-
- cad/horizon-eda
- databases/arrow
- devel/oclgrind
- math/openturns
- security/solana
-
Deleted ports which required this port:
- for Libraries
-
- lang/frawk
- for Run
-
- devel/oclgrind
- math/openturns
Configuration Options:
- ===> The following configuration options are available for llvm12-12.0.1_10:
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
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
OPENMP=on: Install libomp, the LLVM OpenMP runtime library
PYCLANG=on: Install python bindings to libclang
====> 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_llvm12
- USES:
- cmake compiler:c++11-lib cpe perl5 tar:xz shebangfix python:3.7+ localbase 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 |
12.0.1_10 24 Apr 2023 17:06:31
    |
Brooks Davis (brooks)  |
devel/llvm*: Consistently use python:3.7+
llvm12 was inappropriately constrained to 3.6-3.9 breaking the ability
to set 3.10 as the default. llvm11 just specified "python", but there's
no need to keep 2.7 support around. The rest had obsolete 3.6+ entries.
No functional change: This is not expected to change the version of
python used.
PR: 270978
MFH: 2023Q2
Reported by: michael.osipov@siemens.com
Sponsored by: DARPA |
12.0.1_10 18 Apr 2023 21:39:17
    |
Po-Chuan Hsieh (sunpoet)  |
devel/llvm12: Fix build with swig 4.1.1
PR: 270720 |
12.0.1_10 06 Jan 2023 00:11:37
    |
Brooks Davis (brooks)  |
devel/llvm*: Fix CONFLICT on cmark
If the user has the textproc/cmark package installed, the py*-CommonMark
package will fail to install. This in turn leads to build failures down
the line when sphinx tries to load commonmark. The result is confusing
and potentially wastes a lot of build time so just conflict upfront.
The previous code attempted to do this, but I'd listed the conflict
incorrectly in 2019. :(
PR: 239636
Reported by: Stephen Roznowski <sjrbulk@verizon.net> |
12.0.1_10 09 Dec 2022 18:49:40
    |
Brooks Davis (brooks)  |
devel/llvm1[2345]: fix build with clang 15
When building llvm12 through llvm15 with clang 15 as host compiler, and
when compiler-rt is enabled, there will be errors due to float16
support, similar to:
In file included from
/wrkdirs/usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/compiler-rt/lib/builtins/extendhfsf2.c:11:
In file included from
/wrkdirs/usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/compiler-rt/lib/builtins/fp_extend_impl.inc:38:
/wrkdirs/usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/compiler-rt/lib/builtins/fp_extend.h:44:9:
error: _Float16 is not supported on this target
typedef _Float16 src_t;
^
This is because compiler-rt's CMake infrastructure detects float16
support at configure time, while targeting 'pure' x86_64, but then
builds parts of its tree also targeting i386. (Only the first 15 lines of the commit message are shown above ) |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
12.0.1_10 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
12.0.1_10 07 Sep 2022 10:26:41
    |
Tobias C. Berner (tcberner)  |
cleanup: remove trailing whitepaces |
12.0.1_10 13 Jun 2022 16:40:26
    |
Brooks Davis (brooks)  |
devel/llvm12: fix hangs with CPUTYPE=skylake-avx512
Merge commit e8305c0b8f49 from llvm git (by Simon Pilgrim)
[X86] combineX86ShuffleChain - don't fold to truncate(concat(V1,V2)) if it
was already a PACK op
Fixes #55050
PR: 264480
MFH: 2022Q2
Sponsored by: DARPA, AFRL |
12.0.1_9 03 May 2022 18:58:33
    |
Brooks Davis (brooks)  |
devel/llvm*: (NFC) extract MAN1SRCS list
Move the lists of manpages into Makefile.MAN1SRCS as with COMMANDS.
Sponsored by: DARPA, AFRL |
12.0.1_9 10 Apr 2022 19:11:41
    |
Charlie Li (vishwin)  |
textproc/libxml2: bump all LIB_DEPENDS consumers
This is a separate commit to facilitate easier cherry-picking for
quarterly.
PR: 262853, 262940, 262877, 263126
Approved by: fluffy (mentor) |
12.0.1_8 26 Mar 2022 08:27:27
    |
Matthias Fechner (mfechner)  |
textproc/libxml2: bump all dependencies
This should make sure that all dependent ports will pick
up the new version commited with a13ec21cd733f67a9fc0dc00ab45268bdc236246 |
12.0.1_7 30 Nov 2021 22:55:08
    |
Brooks Davis (brooks)  |
devel/llvm1[23]: Add BE_WASM option
When set, always build the WebAssembly backend (now required by Firefox
via wasi). This option effects BE_FREEBSD and BE_NATIVE. It has no
effect on BE_STANDARD.
This option is enabled by default. |
12.0.1_6 25 Nov 2021 21:40:11
    |
Stefan Eßer (se)  |
*/*: Remove redundant '-*' from CONFLICTS definitions
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").
Approved by: portmgr (blanket) |
12.0.1_6 28 Oct 2021 18:52:16
    |
Brooks Davis (brooks)  |
devel/llvm1[123]: Fix VIA PadLock xstore
Pull in the code gen portion of upstream LLVM's 2d8c18fbbdd1.
MFH: 2021Q4
Sponsored by: DARPA |
12.0.1_5 22 Oct 2021 11:42:42
    |
Piotr Kubaj (pkubaj)  |
devel/llvm12: fix/workaround liblzma incorrect compress/uncompress
Apply https://reviews.freebsd.org/D31804
Fixes miscompiling liblzma.
Submitted by: adalava |
12.0.1_5 16 Oct 2021 09:51:39
    |
Jimmy Olgeni (olgeni)  |
*: fix tab vs. space issues, and comments according to the guide. |
12.0.1_5 30 Sep 2021 21:23:30
    |
Rene Ladan (rene)  |
cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11
Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*
Reviewed by: doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index |
12.0.1_5 27 Sep 2021 22:23:57
    |
Brooks Davis (brooks)  |
devel/llvm*: avoid crossdir links
Avoid hardlinks between PREFIX/bin and PREFIX/llvm##. This permits
them be on different filesystems.
PR: 244439 |
12.0.1_4 29 Aug 2021 19:20:09
    |
Bernhard Froehlich (decke)  |
devel/llvm12: Add CPE information
Approved by: portmgr (blanket) |
12.0.1_4 27 Aug 2021 23:49:13
    |
Dmitry Marakasov (amdmi3)  |
devel/llvm12: mark incompatible with python 3.10
This limitation is inherited from py-sphinx and should be recondidered when it's
updated
Approved by: portmgr blanket |
12.0.1_4 27 Aug 2021 18:22:26
    |
Piotr Kubaj (pkubaj)  |
devel/llvm12: fix for broken binaries generated by llvm12
Selectively reverts LLVM commit 2518433f861fcb877d0a7bdd9aec1aec1f77505a that
was pointed as the source of regression on LLVM12.
This affects powerpc64*, making binaries crash with segmentation fault due to
bad code generation around "__stack_chk_guard"
Root cause and/or proper fix is under investigation:
https://bugs.llvm.org/show_bug.cgi?id=51590
Submitted by: adalava
Differential review (for base): https://reviews.freebsd.org/D31698 |
12.0.1_3 13 Aug 2021 19:28:08
    |
Piotr Kubaj (pkubaj)  |
devel/llvm12: make elfv2 the default on powerpc64 elfv2 systems
Currently when clang is passed --target=powerpc64-unknown-freebsd argument, it
creates elfv1 objects, which breaks build of firefox onpowerpc64. |
12.0.1_2 10 Aug 2021 20:42:12
    |
Brooks Davis (brooks)  |
devel/llvm12: lld fix compressed input sections
Apply upstream lld fix for compressed input sections on BE targets
[LLD] Support compressed input sections on big-endian targets
This patch enables compressed input sections on big-endian targets by
checking the target endianness and selecting an appropriate `Chdr`
structure.
Fixes PR51369
Differential Revision: https://reviews.llvm.org/D107635
MFH: 2021Q3
Sponsored by: DARPA |
12.0.1_1 30 Jul 2021 18:12:59
    |
Brooks Davis (brooks)  Author: Mark Johnston |
devel/llvm12: Add patches to enable kernel sanitizers on FreeBSD
I use CROSS_TOOLCHAIN quite frequently, but can't do so when building
kernels with KASAN or KMSAN enabled since these patches didn't make it
into LLVM 12. This diff just backports them to the port. I believe this
is low-risk and thus is acceptable for the port, as opposed to waiting
for LLVM 13.
Differential Revision: https://reviews.freebsd.org/D31316 |
12.0.1 16 Jul 2021 18:00:30
    |
Brooks Davis (brooks)  |
devel/llvm12: Update to 12.0.1 release
This release restores Reporter.py required for scan-build. [0]
Correct missing renames of lit modules. [1]
Remove no-op LLD_LINK option.
PR: 256297 [0], 257123 [1]
Reported by: phk [0], Derek Schrock <dereks@lifeofadishwasher.com> [1] |
12.0.0_1 09 Jul 2021 09:14:22
    |
Piotr Kubaj (pkubaj)  |
devel/llvm12: enable OPENMP on riscv64 |
12.0.0 15 Jun 2021 08:42:04
    |
Piotr Kubaj (pkubaj)  |
devel/llvm12: enable GOLD on powerpc
While here, fix some whitespaces. |
12.0.0 20 May 2021 23:33:28
    |
Brooks Davis (brooks)  |
devel/llvm*: Fix BE_NATIVE on aarch64
Fix two bugs in native-only backend support (BE_NATIVE). First, ARCH
is aarch64 not arm64. Second, consistently spell AArch64 not AAarch64
(extra 'a').
Because this only effects aarch64 in a non-default configuration, skip
the PORTREVISION bump that is technically required to reduce excess
heating in common cases.
Reported by: Mark Millard |
12.0.0 03 May 2021 17:35:40
    |
Brooks Davis (brooks)  |
devel/llvm12: address build issues in some configs
In some cases (notably when LLDB is not selected), COMPILER_RT fails to
build owing to not finding unwind.h. Add USES=localbase to COMPILER_RT
to address this.[0]
When building on amd64 without /usr/lib32 compat libraries installed,
COMPILER_RT doesn't build i386 sanitizer libs. Detect this case and
don't add to plist.[1]
Submitted by: Tatsuki Makino [0]
PR: 254048 [0], 255527 [1]
MFH: 2020Q2 |
12.0.0 21 Apr 2021 22:03:46
    |
Brooks Davis (brooks)  |
devel/llvm12: Update to 12.0.0 release |
12.0.0.r4 07 Apr 2021 17:26:40
    |
Brooks Davis (brooks)  |
llvm12: Update to 12.0.0rc4 |
12.0.0.r2 07 Apr 2021 17:26:40
    |
Brooks Davis (brooks)  |
llvm12: Disable LLDB on non-x86 architectures
The 12.0.0 branch point hit point in the rework of FreeBSD debug targets
were non-x86 architectures are broken. For now, simply disable LLDB
builds on those platforms.
PR: 254082 |
12.0.0.r2 07 Apr 2021 17:26:40
    |
Brooks Davis (brooks)  |
llvm12: rework handling undefined options
Define a list of options and for any that aren't defined for the current
architecture add a PLIST_SUB entry as through the option were defined and
disabled. |
12.0.0.r2 07 Apr 2021 08:09:01
    |
Mathieu Arnold (mat)  |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
12.0.0.r2 06 Apr 2021 14:31:13
    |
Mathieu Arnold (mat)  |
all: Remove all other $FreeBSD keywords. |
12.0.0.r2 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
12.0.0.r2 05 Mar 2021 01:47:32
  |
brooks  |
Welcome LLVM 12 (12.0.0rc2) to the tree
Notable *port* changes (vs devel/llvm11):
- Switch to single llvm-project distfile. This simplifies the port
and support for the old style build process is rotting upstream
after the mono-repo conversion.
- Disable libedit dependency in libLLVM (still used by LLDB). This
is one small step toward a dependency-less clang.
- LLDB docs are disabled due to issues finding python includes when
autogenerating API docs.
Sponsored by: DARPA |