Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767805 - sys-libs/llvm-libunwind-12.0.0_rc1: error: libunwind requires being built in a monorepo layout with libcxx available
Summary: sys-libs/llvm-libunwind-12.0.0_rc1: error: libunwind requires being built in ...
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-01-29 06:10 UTC by James Beddek
Modified: 2021-01-29 21:58 UTC (History)
2 users (show)

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


Attachments
build.log (file_767805.txt,6.30 KB, text/plain)
2021-01-29 06:10 UTC, James Beddek
Details
build.log + emerge --info.txt (build.log-emerge-info.txt,8.95 KB, text/plain)
2021-01-29 14:25 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Beddek 2021-01-29 06:10:23 UTC
Created attachment 685008 [details]
build.log

sys-libs/llvm-libunwind-12.0.0_rc1 configure fails with:

CMake Error at CMakeLists.txt:2 (message):
  libunwind requires being built in a monorepo layout with libcxx available

See lines one through three here: https://github.com/llvm/llvm-project/blob/llvmorg-12.0.0-rc1/libunwind/CMakeLists.txt . That check is not present in any other versions in tree.

After separately emerging sys-libs/libcxx-12.0.0_rc1 the error changes to:

CMake Error at /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0_rc1/work/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake:6 (message):
  The provided LLVM_PATH
  (/var/tmp/portage/sys-libs/llvm-libunwind-12.0.0_rc1/work/libcxx/cmake/Modules/../../../llvm)
  is not a valid directory.  Note that building libc++ outside of the
  monorepo is not supported anymore.  Please use a Standalone build against
  the monorepo, a Runtimes build or a classic monorepo build.

Cheers
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-29 09:50:48 UTC
That's with USE=-test, right?
Comment 2 Ionen Wolkens gentoo-dev 2021-01-29 14:25:04 UTC
Created attachment 685107 [details]
build.log + emerge --info.txt

Had given it a try for -test so yes (hadn't noticed this build log didn't mention USE, sorry). Can confirm USE=test works.

Including own -test logs + info in case needed.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-29 21:38:22 UTC
No problem, I can reproduce it.  I will rebuild the whole LLVM suite with USE=-test just in case.
Comment 4 Larry the Git Cow gentoo-dev 2021-01-29 21:58:44 UTC
The bug has been closed via the following commit(s):

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

commit b949712efd6dd8a1725fc53691e9be54e3f0a098
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-01-29 21:40:37 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-01-29 21:58:37 +0000

    sys-libs/llvm-libunwind: Fix missing components w/ USE=-test
    
    Closes: https://bugs.gentoo.org/767805
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-libs/llvm-libunwind/llvm-libunwind-12.0.0.9999.ebuild | 6 +++---
 sys-libs/llvm-libunwind/llvm-libunwind-12.0.0_rc1.ebuild  | 4 ++--
 sys-libs/llvm-libunwind/llvm-libunwind-13.0.0.9999.ebuild | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)