Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828601 - sys-devel/llvm-14.0.0.9999 fails to build
Summary: sys-devel/llvm-14.0.0.9999 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-09 09:39 UTC by Patrick Lauer
Modified: 2021-12-11 16:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2021-12-09 09:39:48 UTC
-- Sphinx enabled.
-- Found Sphinx: /usr/bin/sphinx-build
CMake Error at CMakeLists.txt:1214 (add_subdirectory):
  add_subdirectory given source
  "/var/tmp/portage/sys-devel/llvm-14.0.0.9999/work/llvm/../third-party/benchmark"
  which is not an existing directory.


-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr/lib/llvm/14
Compiler flags:
C               -O2 -pipe -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections
C++             -O2 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed -Wl,-z,nodelete
Shared          -Wl,-O1 -Wl,--as-needed -Wl,-z,defs -Wl,-z,nodelete

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sys-devel/llvm-14.0.0.9999/work/llvm-14.0.0.9999_build-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/sys-devel/llvm-14.0.0.9999/work/llvm-14.0.0.9999_build-abi_x86_64.amd64/CMakeFiles/CMakeError.log".
 * ERROR: sys-devel/llvm-14.0.0.9999::gentoo failed (configure phase):

quick'n'dirty fix:

diff --git a/sys-devel/llvm/llvm-14.0.0.9999.ebuild b/sys-devel/llvm/llvm-14.0.0.9999.ebuild
index a12b04fb213..21ca4ebc53b 100644
--- a/sys-devel/llvm/llvm-14.0.0.9999.ebuild
+++ b/sys-devel/llvm/llvm-14.0.0.9999.ebuild
@@ -363,6 +363,7 @@ multilib_src_configure() {

                # disable OCaml bindings (now in dev-ml/llvm-ocaml)
                -DOCAMLFIND=NO
+               -DLLVM_INCLUDE_BENCHMARKS=NO
        )

        if is_libcxx_linked; then
Comment 1 Larry the Git Cow gentoo-dev 2021-12-11 16:12:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1598880b230cbbb3a964ca6ca69db0a40ce968c6

commit 1598880b230cbbb3a964ca6ca69db0a40ce968c6
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-12-11 11:29:29 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-12-11 16:12:12 +0000

    sys-devel/llvm: Include third-party directory in the checkout
    
    Closes: https://bugs.gentoo.org/828601
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-devel/llvm/llvm-14.0.0.9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)