From e933083cce7f1cba44b92669aab28dd95d3e1129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 17 Jun 2021 23:01:14 +0300 Subject: [PATCH 1/6] debug version --- hangzig | 2 +- toolchain/defs.bzl | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hangzig b/hangzig index 723fbee..3d13b18 100755 --- a/hangzig +++ b/hangzig @@ -20,7 +20,7 @@ outside() { } inside() { - apt-get update && apt-get install -y ca-certificates + apt-get update && apt-get install -y ca-certificates libz3-4 exec ./bazel build -s --platforms @zig_sdk//:aarch64-macos-gnu //test:gognu } diff --git a/toolchain/defs.bzl b/toolchain/defs.bzl index b6c1c1e..b100993 100644 --- a/toolchain/defs.bzl +++ b/toolchain/defs.bzl @@ -83,14 +83,18 @@ def toolchain_repositories(): zig_repository( name = "zig_sdk", + # Debug: + version = "0.8.0-187-gbfe3558ef", + url_format = "https://jakstys.lt/mtpad/zig-{host_platform}-{version}.tar.xz", # Pre-release: - version = "0.9.0-dev.137+86ebd4b97", - url_format = "https://ziglang.org/builds/zig-{host_platform}-{version}.tar.xz", + #version = "0.9.0-dev.137+86ebd4b97", + #url_format = "https://ziglang.org/builds/zig-{host_platform}-{version}.tar.xz", # Release: # version = "0.8.0", # url_format = "https://ziglang.org/download/{version}/zig-{host_platform}-{version}.tar.xz", host_platform_sha256 = { - "linux-x86_64": "3e5b4fa3b346e2eae6829dd7ef90e9a0f6e6297cee62017e3d0f0f7c9edfa21e", + #"linux-x86_64": "3e5b4fa3b346e2eae6829dd7ef90e9a0f6e6297cee62017e3d0f0f7c9edfa21e", # nightly + "linux-x86_64": "fd6ee2d7e0ad56b0e2d78cdf96fa026a29ad4e69a650648364d1bb08a3e0eaf8", # debug "macos-x86_64": "9b5e3fefa6ae0b1ab26821323df0641f818e72bffc343e194dc60829005d3055", }, host_platform_include_root = { From b472150b26b691b653edec916d3e24663c91e239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 18 Jun 2021 08:11:34 +0300 Subject: [PATCH 2/6] dynamic debug build failed; go back to nightlies --- toolchain/defs.bzl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/toolchain/defs.bzl b/toolchain/defs.bzl index b100993..17ef8b4 100644 --- a/toolchain/defs.bzl +++ b/toolchain/defs.bzl @@ -84,17 +84,17 @@ def toolchain_repositories(): name = "zig_sdk", # Debug: - version = "0.8.0-187-gbfe3558ef", - url_format = "https://jakstys.lt/mtpad/zig-{host_platform}-{version}.tar.xz", + #version = "0.8.0-187-gbfe3558ef", + #url_format = "https://jakstys.lt/mtpad/zig-{host_platform}-{version}.tar.xz", # Pre-release: - #version = "0.9.0-dev.137+86ebd4b97", - #url_format = "https://ziglang.org/builds/zig-{host_platform}-{version}.tar.xz", + version = "0.9.0-dev.190+6f0cfdb82", + url_format = "https://ziglang.org/builds/zig-{host_platform}-{version}.tar.xz", # Release: # version = "0.8.0", # url_format = "https://ziglang.org/download/{version}/zig-{host_platform}-{version}.tar.xz", host_platform_sha256 = { - #"linux-x86_64": "3e5b4fa3b346e2eae6829dd7ef90e9a0f6e6297cee62017e3d0f0f7c9edfa21e", # nightly - "linux-x86_64": "fd6ee2d7e0ad56b0e2d78cdf96fa026a29ad4e69a650648364d1bb08a3e0eaf8", # debug + "linux-x86_64": "a086a1749c0590af6b1089c1f9320f1637adf736c7b874017554a4e13ebac78a", # nightly + #"linux-x86_64": "fd6ee2d7e0ad56b0e2d78cdf96fa026a29ad4e69a650648364d1bb08a3e0eaf8", # debug "macos-x86_64": "9b5e3fefa6ae0b1ab26821323df0641f818e72bffc343e194dc60829005d3055", }, host_platform_include_root = { From a18cbf27817e14ee4bf9122b8dd6ba60fdf2a314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 18 Jun 2021 10:18:31 +0300 Subject: [PATCH 3/6] debug version --- toolchain/defs.bzl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/toolchain/defs.bzl b/toolchain/defs.bzl index 17ef8b4..df24c26 100644 --- a/toolchain/defs.bzl +++ b/toolchain/defs.bzl @@ -84,17 +84,17 @@ def toolchain_repositories(): name = "zig_sdk", # Debug: - #version = "0.8.0-187-gbfe3558ef", - #url_format = "https://jakstys.lt/mtpad/zig-{host_platform}-{version}.tar.xz", + version = "0.8.0-194-gb9e78593b", + url_format = "https://jakstys.lt/mtpad/zig-{host_platform}-{version}.tar.xz", # Pre-release: - version = "0.9.0-dev.190+6f0cfdb82", - url_format = "https://ziglang.org/builds/zig-{host_platform}-{version}.tar.xz", + #version = "0.9.0-dev.190+6f0cfdb82", + #url_format = "https://ziglang.org/builds/zig-{host_platform}-{version}.tar.xz", # Release: # version = "0.8.0", # url_format = "https://ziglang.org/download/{version}/zig-{host_platform}-{version}.tar.xz", host_platform_sha256 = { - "linux-x86_64": "a086a1749c0590af6b1089c1f9320f1637adf736c7b874017554a4e13ebac78a", # nightly - #"linux-x86_64": "fd6ee2d7e0ad56b0e2d78cdf96fa026a29ad4e69a650648364d1bb08a3e0eaf8", # debug + #"linux-x86_64": "a086a1749c0590af6b1089c1f9320f1637adf736c7b874017554a4e13ebac78a", # nightly + "linux-x86_64": "869d437e4a2043029867fc23885eb1a58baa394b61907afe0dbac43e8264556a", # debug "macos-x86_64": "9b5e3fefa6ae0b1ab26821323df0641f818e72bffc343e194dc60829005d3055", }, host_platform_include_root = { From 9b97f5c8ad6d04e6d03b263fb62f6fb632f7d0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 18 Jun 2021 10:18:58 +0300 Subject: [PATCH 4/6] remove libz3-4 --- hangzig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hangzig b/hangzig index 3d13b18..723fbee 100755 --- a/hangzig +++ b/hangzig @@ -20,7 +20,7 @@ outside() { } inside() { - apt-get update && apt-get install -y ca-certificates libz3-4 + apt-get update && apt-get install -y ca-certificates exec ./bazel build -s --platforms @zig_sdk//:aarch64-macos-gnu //test:gognu } From c15060ec35cd2e452cd0913de81b45756817cfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 18 Jun 2021 11:16:08 +0300 Subject: [PATCH 5/6] privileged container; allows ptrace --- hangzig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hangzig b/hangzig index 723fbee..59314e8 100755 --- a/hangzig +++ b/hangzig @@ -12,7 +12,7 @@ outside() { curl -L "$bzl" -o bazel chmod +x bazel fi - exec docker run -ti --rm -v $(pwd):/x -w /x --name hangzig \ + exec docker run --privileged -ti --rm -v $(pwd):/x -w /x --name hangzig \ --cpuset-cpus 0-1 \ -m 4096MB \ -e CC=/usr/bin/false \ From 55d97c6731b25f5459232c77518cb1ef49d625e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 19 Jun 2021 12:09:41 +0300 Subject: [PATCH 6/6] add dpkg -l --- .build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.build.yml b/.build.yml index 4e8116e..69a1b0a 100644 --- a/.build.yml +++ b/.build.yml @@ -8,6 +8,7 @@ environment: CC: /usr/bin/false tasks: - setup: | + dpkg -l curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-linux-amd64 \ -o bazel chmod +x bazel