Bugless #33
hscloud: nix-shell in hscloud checkout fails to fetch/build/install psycopg2 because it fails to find gcc
Description
Snip from "nix-shell":
``` building 'psycopg2._psycopg' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/psycopg
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPSYCOPG_VERSION=2.8.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=110010 -DHAVE_LO64=1 -I/nix/store/wkw6fsjasr7jbbrlakxxpbiapa8hws42-python3-3.8.7/include/python3.8 -I. -I/usr/include -I/usr/include/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement
unable to execute 'gcc': No such file or directory
```
Full log attached in error.log
nix-info:
- system: `"x86_64-linux"`
- host os: `Linux 5.11.1, NixOS, 21.05pre273435.0aeba64fb26 (Okapi)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.3.10`
- channels(root): `"nixos-21.05pre273435.0aeba64fb26"`
- channels(arachnist): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
Files
Updated by q3k about 3 years ago
- Status changed from New to Accepted
- Assignee set to q3k
Try adding `gcc` and `binutils` to targetPkgs in shell.nix and see if that helps.
You might have to `bazel shutdown` first, Bazel isn't good at figuring out that enough stuff changed in our Nix FHS env to restart automatically.
Updated by q3k about 3 years ago
- Status changed from Accepted to Assigned
- Assignee changed from q3k to ar
Please file a CR that fixes it :)
Updated by q3k about 3 years ago
- Assignee changed from ar to q3k
Timed out, fix in gerrit.hackerspace.pl/801.
Updated by ar about 3 years ago
- Status changed from Assigned to Resolved
Works, thanks.
[arachnist@khas:~/scm/hscloud]$ nix-shell INFO: Analyzed 8 targets (0 packages loaded, 0 targets configured). INFO: Found 8 targets... INFO: Elapsed time: 0.334s, Critical Path: 0.07s INFO: 0 processes. INFO: Build completed successfully, 1 total action INFO: Analyzed 4 targets (0 packages loaded, 0 targets configured). INFO: Found 4 targets... INFO: Elapsed time: 2.543s, Critical Path: 2.30s INFO: 3 processes: 3 linux-sandbox. INFO: Build completed successfully, 4 total actions hscloud-build-chrootenv:arachnist@khas:~/scm/hscloud$