Summary: | devel/llvm70: (and prev versions) LLVM assertions are enabled unintentionally | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Val Packett <val> |
Component: | Individual Port(s) | Assignee: | Brooks Davis <brooks> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | arrowd, dim, freebsdbugs, jbeich, kde |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(brooks) jbeich: maintainer-feedback? (kde) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233831 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234153 |
Description
Val Packett
2018-11-25 15:43:36 UTC
As far as I remember, the earlier llvm/clang ports just had an end-user configurable option to enable or disable asssertions. This seems to have been removed with the restructuring towards the current state of the ports. I am unsure as to why the option was removed, but I would suggest that it be re-added, with the default set to OFF. -DNDEBUG is lost because USES=cmake overrides -DCMAKE_*_FLAGS_RELEASE. https://github.com/Kitware/CMake/blob/v3.13.2/Modules/Compiler/GNU.cmake#L46 https://github.com/freebsd/freebsd-ports/blob/branches/2019Q1/Mk/Uses/cmake.mk#L84 A commit references this bug: Author: brooks Date: Tue Jan 15 16:19:34 UTC 2019 New revision: 490385 URL: https://svnweb.freebsd.org/changeset/ports/490385 Log: Update to a new snapshot. Add -DNDEBUG to CFLAGS/CXXFLAGS to prevent USES=cmake from accidentally reenabling assertions. [0] This should fix i386 builds. PR: 233506 [0] Changes: head/devel/llvm-devel/Makefile head/devel/llvm-devel/Makefile.snapshot head/devel/llvm-devel/distinfo head/devel/llvm-devel/pkg-plist A commit references this bug: Author: brooks Date: Thu Jan 17 23:29:32 UTC 2019 New revision: 490610 URL: https://svnweb.freebsd.org/changeset/ports/490610 Log: More throughly disable assertions. This works around USES=cmake overriding the CFLAGS used to build. [0] devel/llvm[45]0: Fix build on GCC systems. [1] devel/llvm[456]: Avoid realpath calls where possible in the wrapper script. [2] PR: 233506 [0], 234647 [1], 234937 [1] Submitted by: greg@unrelenting.technology [0], pkubaj@anongoth.pl [1], bdrewery [2] Differential Revision: https://reviews.freebsd.org/D17990 Changes: head/devel/llvm40/Makefile head/devel/llvm40/files/llvm-wrapper.sh.in head/devel/llvm50/Makefile head/devel/llvm50/files/llvm-wrapper.sh.in head/devel/llvm60/Makefile head/devel/llvm60/files/llvm-wrapper.sh.in head/devel/llvm70/Makefile I've applied the proposed fix. Please reopen this or file a new report if it's not sufficient. |