Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917110 - dev-libs/ncnn-20231027 - cmake failed with dev-util/glslang-1.3.268 (Imported target "glslang::SPIRV" includes non-existent path)
Summary: dev-libs/ncnn-20231027 - cmake failed with dev-util/glslang-1.3.268 (Imported...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-10 09:00 UTC by Toralf Förster
Modified: 2023-11-10 18:24 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.81 KB, text/plain)
2023-11-10 09:00 UTC, Toralf Förster
Details
dev-libs:ncnn-20231027:20231110-063553.log (dev-libs:ncnn-20231027:20231110-063553.log,7.04 KB, text/plain)
2023-11-10 09:00 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,68.38 KB, application/x-xz)
2023-11-10 09:00 UTC, Toralf Förster
Details
environment (environment,96.03 KB, text/plain)
2023-11-10 09:00 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-11-10 09:00 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,33.60 KB, application/x-xz)
2023-11-10 09:00 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,72.64 KB, application/x-xz)
2023-11-10 09:00 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.86 KB, application/x-xz)
2023-11-10 09:00 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-11-10 09:00:42 UTC


-- Generating done (0.1s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
 * ERROR: dev-libs/ncnn-20231027::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd-20231105-204015

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.4
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0
  [2]   rust-1.73.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
2)	Eclipse Temurin JRE 17.0.8.1_p1 [openjdk-jre-bin-17]
3)	Eclipse Temurin JRE 21.0.1_p12 [openjdk-jre-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-jre-bin-17 
  [3]   openjdk-jre-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 68161e1f8d521d357a6b2476eaf2a917de040510
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 10 04:16:59 2023 +0000

    2023-11-10 04:16:58 UTC

emerge -qpvO dev-libs/ncnn
[ebuild  N    ] dev-libs/ncnn-20231027  USE="vulkan -tools"
Comment 1 Toralf Förster gentoo-dev 2023-11-10 09:00:43 UTC
Created attachment 874427 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-10 09:00:44 UTC
Created attachment 874428 [details]
dev-libs:ncnn-20231027:20231110-063553.log
Comment 3 Toralf Förster gentoo-dev 2023-11-10 09:00:45 UTC
Created attachment 874429 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-11-10 09:00:47 UTC
Created attachment 874430 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-11-10 09:00:47 UTC
Created attachment 874431 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-10 09:00:48 UTC
Created attachment 874432 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-11-10 09:00:50 UTC
Created attachment 874433 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-11-10 09:00:51 UTC
Created attachment 874434 [details]
temp.tar.xz
Comment 9 Ionen Wolkens gentoo-dev 2023-11-10 13:29:43 UTC
CMake Error in src/CMakeLists.txt:
  Imported target "glslang::SPIRV" includes non-existent path

    "/usr/include/External"

Haven't looked closely but sounds like a problem with the new glslang itself rather than here if it's referencing something that doesn't exist.

Don't know what's supposed to be in there but simply creating an empty directory /usr/include/External lets it build. If it was actually supposed to be empty, it's possible it got removed by portage and needs keepdir.

(on a side-note, seems glslang has a new .13 soname but it did not bump subslot, getting preserved rebuilds for ncnn)
Comment 10 Ionen Wolkens gentoo-dev 2023-11-10 13:35:32 UTC
(In reply to Ionen Wolkens from comment #9)
> Don't know what's supposed to be in there but simply creating an empty
> directory /usr/include/External lets it build. If it was actually supposed
> to be empty, it's possible it got removed by portage and needs keepdir.
...albeit it's an awfully generic name to be in top-level /usr/include rather than /usr/include/glslang/External, not that it'd matter if it's empty anyway.. but maybe there's something off in the cmakelists.
Comment 11 Larry the Git Cow gentoo-dev 2023-11-10 18:24:56 UTC
The bug has been closed via the following commit(s):

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

commit 202e24f69e75a8910144ec7f3ee617b3598653dd
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2023-11-10 18:23:47 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2023-11-10 18:24:44 +0000

    dev-util/glslang: Fix cmake targets
    
    Closes: https://bugs.gentoo.org/917110
    
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 .../files/glslang-1.3.238-Fix-cmake-targets.patch  | 26 ++++++++++++++++++++++
 ...1.3.268-r1.ebuild => glslang-1.3.268-r2.ebuild} |  4 +++-
 dev-util/glslang/glslang-9999.ebuild               |  4 +++-
 3 files changed, 32 insertions(+), 2 deletions(-)