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' *
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>
we don't have (a functioning) llvm, yet, mentioned fixes should have flown into Prefix now
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.