Unable to build c programm

Problem description:
Unable to build C programm.

Expected behavior:
build and run

Actual behavior:
console says

 make -s
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
instantiated 'mpfr-4.1.0' -> '/nix/store/r1yzvlcja8iv1aa0d1zmb8m4kdfmzhn0-mpfr-4.1.0.drv'
instantiated 'mpc-1.2.1.tar.gz' -> '/nix/store/26vxc3xin3zibbqlg6ywgnjsd2gbsvih-mpc-1.2.1.tar.gz.drv'
instantiated 'libmpc-1.2.1' -> '/nix/store/022w1hiwgghnr5h1kqlnkl90a0dxrvqi-libmpc-1.2.1.drv'
instantiated 'isl-0.20.tar.xz' -> '/nix/store/5vk9vqhvbkigk4gpkfzb1r2lyjxaxq19-isl-0.20.tar.xz.drv'
instantiated 'isl-0.20' -> '/nix/store/y95zra0aabm8pdal81y5zxsmwfsl1gj9-isl-0.20.drv'
instantiated 'perl-5.36.0.tar.gz' -> '/nix/store/5iiw0bk2c5r8m1gh4nqpd4v80br77sa1-perl-5.36.0.tar.gz.drv'
instantiated 'perl-5.36.0' -> '/nix/store/dp0lcblncl6w88nprfjmdq066qfzzpmf-perl-5.36.0.drv'
instantiated 'texinfo-6.8.tar.xz' -> '/nix/store/xscasz4xbwrawssbi6f9b39m89q8qm8g-texinfo-6.8.tar.xz.drv'
instantiated 'texinfo-6.8' -> '/nix/store/0wkk0vl8pgrchxk1scmxqijn3qwx3qb1-texinfo-6.8.drv'
instantiated 'which-2.21.tar.gz' -> '/nix/store/bvdypi0058a6azfmnddnnjz9ny3d5xcm-which-2.21.tar.gz.drv'
instantiated 'which-2.21' -> '/nix/store/cl9hl1a9nbhii8mfj77s65jkyxzkw0bc-which-2.21.drv'
instantiated 'gettext-0.21.tar.gz' -> '/nix/store/ykd4jp3nd928fi67ab244vpzpysylwh3-gettext-0.21.tar.gz.drv'
instantiated 'gettext-0.21' -> '/nix/store/dd21232ndpmijxfl9w78y30my3ms3f30-gettext-0.21.drv'
instantiated 'gcc-9.5.0.tar.xz' -> '/nix/store/dbz6prmd1v5vqsninxhh18l1r1gidl5r-gcc-9.5.0.tar.xz.drv'
instantiated 'gcc-9.5.0' -> '/nix/store/m9pcc5xn1gliclcv05xbgqxch68c9cxn-gcc-9.5.0.drv'
instantiated 'expand-response-params' -> '/nix/store/5frfr5v7hpmf111wb2bsapk4kfqjq3aj-expand-response-params.drv'
instantiated 'gcc-wrapper-9.5.0' -> '/nix/store/h52hn5wwzcf3b0f1ndx4vkbwcin5jg2a-gcc-wrapper-9.5.0.drv'
error: getting attributes of path '/home/runner/helloworld/pkgs../main': No such file or directory
(use '--show-trace' to show detailed location information)

Steps to reproduce:
press Run button

Bug appears at this link:
https://replit.com/@EgorIbragimov/helloworld#main.c

Browser/OS/Device:
Chromium/Ubuntu 22

Hey, this happened because of some tampering/corruption of the nix files, it will fix if you just copy the file to another repl :smiley:

In addition, you can press the ... button. Then, press the show hidden files button. Next, go to thereplit.nix file and then enter this:

{ pkgs }: {
	deps = [
		pkgs.clang_12
		pkgs.ccls
		pkgs.gdb
		pkgs.gnumake
	];
}
1 Like