Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685716 - =sys-devel/llvm-7.1.0 - armv7a-unknown-linux-gnueabihf: src_configure(): error: llvm-tblgen not found in /usr/lib/llvm/7/7/bin/
Summary: =sys-devel/llvm-7.1.0 - armv7a-unknown-linux-gnueabihf: src_configure(): erro...
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: 2019-05-12 11:46 UTC by tt_1
Modified: 2019-05-12 17:01 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 tt_1 2019-05-12 11:46:08 UTC
build.log is very short: 

>>> Emerging (1 of 1) sys-devel/llvm-7.1.0::gentoo for /usr/armv7a-unknown-linux-gnueabihf/
 * llvm-7.1.0.src.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                             [ ok ]
 * llvm-7.1.0-manpages.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking llvm-7.1.0.src.tar.xz to /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/work
>>> Unpacking llvm-7.1.0-manpages.tar.bz2 to /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/work
>>> Source unpacked in /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/work
>>> Preparing source in /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/work/llvm-7.1.0.src ...
 * Applying 0007-llvm-config-Clean-up-exported-values-update-for-shar.patch ...                                                                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/work/llvm-7.1.0.src ...
 * .arm: running multilib-minimal_abi_src_configure
 * ERROR: sys-devel/llvm-7.1.0::gentoo failed (configure phase):
 *   /usr/lib/llvm/7/7/bin/llvm-tblgen not found or usable
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 4477:  Called multilib-minimal_src_configure
 *   environment, line 2790:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 3017:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2720:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2718:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  589:  Called multilib-minimal_abi_src_configure
 *   environment, line 2784:  Called multilib_src_configure
 *   environment, line 3265:  Called die
 * The specific snippet of code:
 *           [[ -x "${tblgen}" ]] || die "${tblgen} not found or usable";
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/llvm-7.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/llvm-7.1.0::gentoo'`.
 * The complete build log is located at '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/temp/build.log'.
 * The ebuild environment file is located at '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/temp/environment'.
 * Working directory: '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/work/llvm-7.1.0.src-.arm'
 * S: '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/sys-devel/llvm-7.1.0/work/llvm-7.1.0.src'
Comment 1 tt_1 2019-05-12 11:50:05 UTC
this is due to the subslot used here: 

local tblgen="${EPREFIX}/usr/lib/llvm/${SLOT%.*}/bin/llvm-tblgen"

hence the ebuild tries to be too clever. 

the subslot is needed to trigger rebuilds due to the changed api, so not sure what to do here?
Comment 2 Larry the Git Cow gentoo-dev 2019-05-12 15:10:33 UTC
The bug has been closed via the following commit(s):

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

commit d8067956ae7040fe576d79949e76f9b3d852f520
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-05-12 15:08:11 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-05-12 15:10:22 +0000

    sys-devel/llvm: Fix typo in tblgen path, in 7.1.0
    
    Closes: https://bugs.gentoo.org/685716
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-devel/llvm/llvm-7.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 tt_1 2019-05-12 17:01:22 UTC
works now, thanks!