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

Bug 877231

Summary: dev-lang/zig-0.9.1-r2 - CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Eric Joldasov <bratishkaerik>
Status: RESOLVED FIXED    
Severity: normal CC: lucasrizzini, proteuss, proxy-maint, scott, zzam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/27718
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-lang:zig-0.9.1-r2:20221015-185452.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-15 19:01:18 UTC
Module          -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0
Shared          -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0

-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LLD_INCLUDE_DIRS (ADVANCED)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20221014-030004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.2
Python 3.10.8
Available Ruby profiles:
  [1]   ruby30 *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3

  HEAD of ::gentoo
commit 651a8e82345b3b59e6822142caed5cc2806eb441
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Oct 15 16:49:39 2022 +0000

    2022-10-15 16:49:39 UTC

emerge -qpvO dev-lang/zig
[ebuild  N    ] dev-lang/zig-0.9.1-r2  USE="threads -test"
Comment 1 Toralf Förster gentoo-dev 2022-10-15 19:01:19 UTC
Created attachment 824311 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-15 19:01:21 UTC
Created attachment 824313 [details]
dev-lang:zig-0.9.1-r2:20221015-185452.log
Comment 3 Toralf Förster gentoo-dev 2022-10-15 19:01:22 UTC
Created attachment 824315 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-15 19:01:24 UTC
Created attachment 824317 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-15 19:01:25 UTC
Created attachment 824319 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-15 19:01:26 UTC
Created attachment 824321 [details]
logs.tar.bz2
Comment 7 Eric Joldasov 2022-10-16 04:08:25 UTC
Wow, LLD is slotted now?
Comment 8 Lucas Rizzini 2022-10-18 10:48:24 UTC
I'm getting exactly the same issue here when emerging dev-lang/zig-0.9.1-r2.
Comment 9 Larry the Git Cow gentoo-dev 2022-10-18 15:00:49 UTC
The bug has been closed via the following commit(s):

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

commit b15d873b0f867c6b2fe6c763bf859ea79ea41074
Author:     Eric Joldasov <bratishkaerik@getgoogleoff.me>
AuthorDate: 2022-10-10 03:16:41 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-10-18 15:00:45 +0000

    dev-lang/zig: fix building with Clang 16, fix searching LLD
    
    Upstream PR https://github.com/ziglang/zig/pull/13121
    
    Closes: https://bugs.gentoo.org/877231
    Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
    Closes: https://github.com/gentoo/gentoo/pull/27718
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-lang/zig/files/zig-0.9.1-fix-clang16.patch     | 23 ++++++++++++++++++++++
 .../{zig-0.9.1-r2.ebuild => zig-0.9.1-r3.ebuild}   |  2 ++
 2 files changed, 25 insertions(+)