From: Benjamin Slade <beoram@gmail.com>
To: help-guix <help-guix@gnu.org>
Subject: zig-build DNS issue (ghostty build)
Date: Thu, 02 Jan 2025 20:56:45 -0600 [thread overview]
Message-ID: <87wmfcppua.fsf_-_@gmail.com> (raw)
Hi Guix,
I've got the start of a Guix package build for the new [Ghostty terminal emulator], but it gets stuck when the zig-build tries fetch some dependencies, with what I think is a DNS (!) issue:
,----
| ....
| starting phase `patch-generated-file-shebangs'
| phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
| starting phase `build'
| running: ("zig" "build" "--prefix" "" "--prefix-lib-dir" "lib" "--prefix-exe-dir" "bin" "--prefix-include-dir" "include" "--verbose" "-Dtarget=x86_64-linux-gnu" "-j8")
| /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:8:20: error: unable to connect to server: TemporaryNameServerFailure
| /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:17:20: error: unable to connect to server: TemporaryNameServerFailure
| /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:21:20: error: unable to connect to server: TemporaryNameServerFailure
| /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:25:20: error: unable...
| [a number of similar errors]
| error: in phase 'build': uncaught exception:
| %exception #<&invoke-error program: "zig" arguments: ("build" "--prefix" "" "--prefix-lib-dir" "lib" "--prefix-exe-dir" "bin" "--prefix-include-dir" "include" "--verbose" "-Dtarget=x86_64-linux-gnu" "-j8") exit-status: 1 term-signal: #f stop-signal: #f>
| phase `build' failed after 0.2 seconds
| .....
`----
I can see a similar issue discussed at <https://github.com/ziglang/zig/issues/14636>
With one of the fixes being "works after changing DNS servers from my router to 8.8.8.8 and 8.8.4.4" [<https://github.com/ziglang/zig/issues/14636#issuecomment-1894254834>], and I note that the Guix `/etc/resolv.conf' points at my local network/router.
I'm not sure what the best workaround is for this. (I'm not even sure how to temporarily change my local DNS resolver on Guix to see if I can get it to build locally, assuming that a similar workaround might work as for 'floooh' on Ubuntu.)
best,
—Benjamin
--
'(Dr Benjamin Slade (he/him)
(website . <https://lambda-y.net>)
`(pgp_fp: ,(B20E 444C FA80 B5F8 15FA 4AD8 6FBF CD68 3B05 2B84))
"sent by [mu4e] 1.12.8 in [Emacs] 30.0.92 with [org-msg] on [GNU Guix] ([Linux])")
[Ghostty terminal emulator] <https://ghostty.org>
[mu4e] <https://www.djcbsoftware.nl/code/mu/mu4e.html>
[Emacs] <https://www.gnu.org/software/emacs/>
[org-msg] <https://github.com/jeremy-compostella/org-msg>
[GNU Guix] <https://guix.gnu.org/>
[Linux] <https://opensource.com/resources/linux>
next reply other threads:[~2025-01-03 3:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-03 2:56 Benjamin Slade [this message]
2025-01-03 5:08 ` zig-build DNS issue (ghostty build) Carlo Zancanaro
2025-01-04 1:02 ` Benjamin Slade
2025-01-03 11:33 ` Murilo
2025-01-03 20:23 ` Benjamin Slade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wmfcppua.fsf_-_@gmail.com \
--to=beoram@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).