Skip to content

Commit 6dfce01

Browse files
Narfingerdelan
andauthored
Add nix pkg workaround for old ubuntu version. (#94)
* Added nix pkg workaround for old ubuntu version. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com> * Fix markup and line breaks --------- Signed-off-by: Narfinger <Narfinger@users.noreply.github.com> Co-authored-by: Delan Azabani <delan@azabani.com>
1 parent d969de1 commit 6dfce01

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/hacking/troubleshooting-your-build.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
See the [style guide](../style-guide.md#error-messages) for how to format error messages.
66
</div>
77

8+
<pre><span class="_blockquote_title">(on <strong>Linux</strong>)</span><blockquote><samp>build: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.39' not found</samp></blockquote></pre>
9+
10+
This workaround is applicable when building Servo using `nix` in Linux distributions other than NixOS.
11+
The error indicates that the version of glibc included in the distribution is older than the one in nixpkgs.
12+
13+
At the end of the `shell.nix`, change the line `if ! [ -e /etc/NIXOS ]; then` to `if false; then` to disable the support in shell.nix for producing binary artifacts that don't depend on the nix store.
14+
815
<pre><span class="_blockquote_title">(on <strong>Linux</strong>)</span><blockquote><samp>error: <a href="https://github.com/NixOS/nix/blob/e3fa7c38d7af8f34de0c24766b2e8cf1cd1330f0/src/libutil/file-system.cc#L164-L184">getting status of</a> /nix/var/nix/daemon-socket/socket: Permission denied</samp></blockquote></pre>
916

1017
If you get this error and you’ve installed Nix with your system package manager:

0 commit comments

Comments
 (0)