Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 780612 - dev-lang/zig-0.7.1 - CMake Error at /.../install.cmake:36 (message):
Summary: dev-lang/zig-0.7.1 - CMake Error at /.../install.cmake:36 (message):
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eric Joldasov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-04-06 14:34 UTC by Toralf Förster
Modified: 2022-09-11 18:13 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.19 KB, text/plain)
2021-04-06 14:34 UTC, Toralf Förster
Details
dev-lang:zig-0.7.1:20210406-110113.log (dev-lang:zig-0.7.1:20210406-110113.log,162.13 KB, text/plain)
2021-04-06 14:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,313.54 KB, text/plain)
2021-04-06 14:34 UTC, Toralf Förster
Details
environment (environment,94.27 KB, text/plain)
2021-04-06 14:34 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,26.44 KB, application/x-bzip)
2021-04-06 14:34 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.06 KB, application/x-bzip)
2021-04-06 14:34 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.02 KB, application/x-bzip)
2021-04-06 14:34 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 2021-04-06 14:34:09 UTC
:: argv[8]: install
::
CMake Error at /var/tmp/portage/dev-lang/zig-0.7.1/work/zig-0.7.1/cmake/install.cmake:36 (message):
Call Stack (most recent call first):
  cmake_install.cmake:78 (include)


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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-20210327-175744

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0
  [2]   rust-1.51.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.18.0 [icedtea-8]
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Apr  6 10:50:12 UTC 2021

emerge -qpvO dev-lang/zig
[ebuild  N    ] dev-lang/zig-0.7.1  USE="experimental"
Comment 1 Toralf Förster gentoo-dev 2021-04-06 14:34:10 UTC
Created attachment 697977 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-06 14:34:11 UTC
Created attachment 697980 [details]
dev-lang:zig-0.7.1:20210406-110113.log
Comment 3 Toralf Förster gentoo-dev 2021-04-06 14:34:13 UTC
Created attachment 697983 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-04-06 14:34:15 UTC
Created attachment 697986 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-04-06 14:34:16 UTC
Created attachment 697989 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-04-06 14:34:17 UTC
Created attachment 697992 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-04-06 14:34:19 UTC
Created attachment 697995 [details]
temp.tar.bz2
Comment 8 Eric Joldasov 2022-08-22 12:10:53 UTC
Outdated?
Comment 9 Eric Joldasov 2022-08-24 09:29:16 UTC
It was fixed by upstream in 0.9.0 https://github.com/ziglang/zig/pull/10228

> If a partial read occurs past the halfway point, buf.len - i will be
less than i, which is illegal. The end bound is also entirely unecessary
in this case, so just remove it.
> Thanks to sheeldotme for reporting this on IRC and providing this stack trace: https://gist.githubusercontent.com/sheeldotme/825d1c0414cb34ce2c2e35f49f866049/raw/90b7e7c0f371495b6a5f382e45581012ae07829a/log.txt
Errors are identical.
Comment 10 Eric Joldasov 2022-08-25 03:07:33 UTC
There are similar bug https://bugs.gentoo.org/866374, I will backport patches for fixing both problems
Comment 11 Larry the Git Cow gentoo-dev 2022-09-11 18:13:31 UTC
The bug has been closed via the following commit(s):

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

commit 8ca3ca21d4b52133714be53407b18b04305f6358
Author:     Eric Joldasov <bratishkaerik@getgoogleoff.me>
AuthorDate: 2022-08-25 03:39:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-11 18:13:22 +0000

    dev-lang/zig-bin: add patches for 0.9.1
    
    Closes: https://bugs.gentoo.org/780612
    Closes: https://bugs.gentoo.org/829959
    Closes: https://bugs.gentoo.org/866374
    Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/zig-bin/Manifest                          |  1 +
 .../zig-bin-0.9.1-fix-bad-hostname-segfault.patch  | 26 ++++++++++++++++++++++
 .../files/zig-bin-0.9.1-fix-detecting-abi.patch    | 19 ----------------
 ...ig-bin-0.9.1.ebuild => zig-bin-0.9.1-r1.ebuild} |  7 +++++-
 4 files changed, 33 insertions(+), 20 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 4d2d75f3df3edee03055e7e3b50e30d1c0dd0984
Author:     Eric Joldasov <bratishkaerik@getgoogleoff.me>
AuthorDate: 2022-08-24 10:08:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-11 18:13:22 +0000

    dev-lang/zig: add patches for 0.9.1
    
    Bug: https://bugs.gentoo.org/780612
    Bug: https://bugs.gentoo.org/829959
    Bug: https://bugs.gentoo.org/866374
    Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/zig/Manifest                              |  1 +
 .../zig-0.9.1-fix-bad-hostname-segfault.patch      | 26 ++++++++++++++++++++++
 .../zig/{zig-0.9.1.ebuild => zig-0.9.1-r1.ebuild}  |  3 +++
 3 files changed, 30 insertions(+)