Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 692364

Summary: media-libs/shaderc-9999 - Cmake error: Could NOT find PythonInterp: Found unsuitable version "2.7.16", but required is at least "3"
Product: Gentoo Linux Reporter: bfg
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED WONTFIX    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description bfg 2019-08-17 14:56:04 UTC
Created attachment 587172 [details]
emerge --info

Default python version is 3.7, set via eselect.

`emerge --info` is actually bigger, so i put it in the attachment instead. Here goes build log:

```
[32;01m * [39;49;00mPackage:    media-libs/shaderc-9999
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: itumaykin+gentoo@gmail.com proxy-maint@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
[32;01m * [39;49;00mFEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 [32;01m*[0m Repository id: google_shaderc.git
 [32;01m*[0m To override fetched repository properties, use:
 [32;01m*[0m   EGIT_OVERRIDE_REPO_GOOGLE_SHADERC
 [32;01m*[0m   EGIT_OVERRIDE_BRANCH_GOOGLE_SHADERC
 [32;01m*[0m   EGIT_OVERRIDE_COMMIT_GOOGLE_SHADERC
 [32;01m*[0m   EGIT_OVERRIDE_COMMIT_DATE_GOOGLE_SHADERC
 [32;01m*[0m 
 [32;01m*[0m Fetching [1mhttps://github.com/google/shaderc.git[22m ...
git fetch https://github.com/google/shaderc.git +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/media-libs/shaderc/0/__main__ refs/git-r3/HEAD
 [32;01m*[0m Checking out [1mhttps://github.com/google/shaderc.git[22m to [1m/var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999[22m ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://github.com/google/shaderc.git
   at the commit:            90c00916229f6643428c4268010523f9addc460c
>>> Source unpacked in /var/tmp/portage/media-libs/shaderc-9999/work
>>> Preparing source in /var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999 ...
 [32;01m*[0m Applying shaderc-2017.2-fix-glslang-link-order.patch ...
[A[138C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Hardcoded definition(s) removed in CMakeLists.txt:
 [32;01m*[0m    set(CMAKE_BUILD_TYPE "Debug")
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999 ...
 [32;01m*[0m abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999-abi_x86_64.amd64"
cmake -C /var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999-abi_x86_64.amd64/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DSHADERC_SKIP_TESTS=yes -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999-abi_x86_64.amd64/gentoo_toolchain.cmake  /var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999
loading initial cache file /var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999-abi_x86_64.amd64/gentoo_common_config.cmake
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Shaderc: build type is "Gentoo".
-- Configuring Shaderc to avoid building tests.
-- nosetests was not found - python code will not be tested
-- asciidoctor was not found - no documentation will be generated
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find PythonInterp: Found unsuitable version "2.7.16", but
  required is at least "3" (found
  /var/tmp/portage/media-libs/shaderc-9999/temp/python2.7/bin/python)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPythonInterp.cmake:166 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/setup_build.cmake:46 (find_package)
  CMakeLists.txt:34 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log".
 [31;01m*[0m ERROR: media-libs/shaderc-9999::gentoo failed (configure phase):
 [31;01m*[0m   cmake failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  125:  Called src_configure
 [31;01m*[0m   environment, line 4890:  Called cmake-multilib_src_configure
 [31;01m*[0m   environment, line 1168:  Called multilib-minimal_src_configure
 [31;01m*[0m   environment, line 3307:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line 3534:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line 3237:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line 3235:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line  837:  Called multilib-minimal_abi_src_configure
 [31;01m*[0m   environment, line 3301:  Called multilib_src_configure
 [31;01m*[0m   environment, line 3762:  Called cmake-utils_src_configure
 [31;01m*[0m   environment, line 1345:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=media-libs/shaderc-9999::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=media-libs/shaderc-9999::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/media-libs/shaderc-9999/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/media-libs/shaderc-9999/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999-abi_x86_64.amd64'
 [31;01m*[0m S: '/var/tmp/portage/media-libs/shaderc-9999/work/shaderc-9999'
```
Comment 1 Jonas Stein gentoo-dev 2019-08-17 15:56:26 UTC
Thank you for the report. Please recompile and 
*attach* the logfiles as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Can hardly read the log if it is pasted to the ticket.

We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 2 bfg 2019-08-18 14:54:58 UTC
Created attachment 587360 [details]
build.log
Comment 3 bfg 2019-09-10 13:32:27 UTC
Come on, all you have to do is remove '2_7' for PYTHON_COMPAT definition in ebuild. This bug is 3 weeks old and is really present about twice as much.
Comment 4 Pacho Ramos gentoo-dev 2019-10-06 17:56:15 UTC
[master 90bb24748388] media-libs/shaderc: Drop live ebuild as it's not being maintained
 2 files changed, 131 deletions(-)
 delete mode 100644 media-libs/shaderc/files/shaderc-2017.2-fix-glslang-link-order.patch
 delete mode 100644 media-libs/shaderc/shaderc-9999.ebuild