Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691996 - dev-python/llvmlite: fails on prefix, has_version: Invalid ROOT: /
Summary: dev-python/llvmlite: fails on prefix, has_version: Invalid ROOT: /
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-12 15:20 UTC by Guilherme Amadio
Modified: 2021-01-20 08:50 UTC (History)
3 users (show)

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 Guilherme Amadio gentoo-dev 2019-08-12 15:20:05 UTC
gentoo-prefix ~ $ emerge --jobs=1 -uavt llvmlite

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N     ] dev-python/llvmlite-0.29.0::gentoo  USE="-examples" PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_5" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/llvmlite-0.29.0::gentoo
 * llvmlite-0.29.0.gh.tar.gz BLAKE2B SHA512 size ;-) ...                                                        [ ok ]
has_version: Invalid ROOT: /
 * ERROR: dev-python/llvmlite-0.29.0::gentoo failed (setup phase):
 *   has_version: unexpected ebuild-ipc exit code: 3
 * 
 * Call stack:
 *          ebuild.sh, line 125:  Called pkg_setup
 *          ebuild.sh, line 370:  Called llvm_pkg_setup
 *        llvm.eclass, line 204:  Called get_llvm_prefix '8'
 *        llvm.eclass, line 164:  Called has_version '-d' 'sys-devel/llvm:8'
 *   phase-helpers.sh, line 966:  Called ___best_version_and_has_version_common '-d' 'sys-devel/llvm:8'
 *   phase-helpers.sh, line 951:  Called die
 * The specific snippet of code:
 *   				die "${FUNCNAME[1]}: unexpected ebuild-ipc exit code: ${retval}"
 * 
 * If you need support, post the output of `emerge --info '=dev-python/llvmlite-0.29.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/llvmlite-0.29.0::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-python/llvmlite-0.29.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-python/llvmlite-0.29.0/temp/die.env'.
 * Working directory: '/tmp/portage/dev-python/llvmlite-0.29.0/homedir'
 * S: '/tmp/portage/dev-python/llvmlite-0.29.0/work/llvmlite-0.29.0'

>>> Failed to emerge dev-python/llvmlite-0.29.0, Log file:

>>>  '/tmp/portage/dev-python/llvmlite-0.29.0/temp/build.log'

 * Messages for package dev-python/llvmlite-0.29.0:

 * ERROR: dev-python/llvmlite-0.29.0::gentoo failed (setup phase):
 *   has_version: unexpected ebuild-ipc exit code: 3
 * 
 * Call stack:
 *          ebuild.sh, line 125:  Called pkg_setup
 *          ebuild.sh, line 370:  Called llvm_pkg_setup
 *        llvm.eclass, line 204:  Called get_llvm_prefix '8'
 *        llvm.eclass, line 164:  Called has_version '-d' 'sys-devel/llvm:8'
 *   phase-helpers.sh, line 966:  Called ___best_version_and_has_version_common '-d' 'sys-devel/llvm:8'
 *   phase-helpers.sh, line 951:  Called die
 * The specific snippet of code:
 *   				die "${FUNCNAME[1]}: unexpected ebuild-ipc exit code: ${retval}"
 * 
 * If you need support, post the output of `emerge --info '=dev-python/llvmlite-0.29.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/llvmlite-0.29.0::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-python/llvmlite-0.29.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-python/llvmlite-0.29.0/temp/die.env'.
 * Working directory: '/tmp/portage/dev-python/llvmlite-0.29.0/homedir'
 * S: '/tmp/portage/dev-python/llvmlite-0.29.0/work/llvmlite-0.29.0'
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (dev-python/llvmlite-0.29.0:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/tmp/portage/dev-python/llvmlite-0.29.0/temp/build.log'
 *
Comment 1 Zac Medico gentoo-dev 2019-08-14 19:14:04 UTC
This but might only affect the prefix branch, looks similar to bug 665038 which has been fixed for some time by this commit:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=102220e1f71341e9bc85236074813f191bb389a4

commit 102220e1f71341e9bc85236074813f191bb389a4
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-09-02 21:55:56 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-09-03 17:38:15 +0000

    phase-helpers.sh: has/best_version -b in any phase (bug 665038)
    
    Since BROOT is only defined in src_* phases, make has/best_version -b
    use the equivalent /${PORTAGE_OVERRIDE_EPREFIX#/} value that is defined
    in all phases. This makes has/best_version -b in EAPI 7 behave exactly
    the same as --host-root behaves in EAPI 6, allowing python ebuilds to
    call python_setup in any ebuild phase.
    
    Bug: https://bugs.gentoo.org/665038
    Reviewed-by: Brian Dolbec <dolsen@gentoo.org>

 bin/phase-helpers.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Meanwhile, we have a related new commit in the master branch:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=f28d32f298d4b089a2e36bebca2a55b6aeabe2a3

commit f28d32f298d4b089a2e36bebca2a55b6aeabe2a3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-08-11 14:51:35 +0100
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-08-13 18:29:38 -0700

    Allow ESYSROOT and BROOT in the pkg_setup phase
    
    This follows a recent change to PMS.
    
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>
Comment 2 Fabian Groffen gentoo-dev 2021-01-18 19:15:24 UTC
we don't have (a functioning) llvm, yet, mentioned fixes should have flown into Prefix now
Comment 3 Guilherme Amadio gentoo-dev 2021-01-20 08:50:18 UTC
We do have llvm/clang working at least on prefix-standalone for Linux. I also just checked that llvmlite-0.35 merges fine now. Marking this as fixed instead.