NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.45k stars 1.44k forks source link

config.h is missing following the hacking guide: #10979

Open kjeremy opened 3 days ago

kjeremy commented 3 days ago

Describe the bug

nix does not build following the instructions at https://hydra.nixos.org/build/263397466/download/1/manual/contributing/hacking.html

Steps To Reproduce clone nix

$ nix develop
$ autoreconfPhase
$ configurePhase
$ make -j $NIX_BUILD_CORES OPTIMIZE=0
  GEN    Makefile.config
  GEN    config.h
  CXX    src/nix/develop.o
  CXX    src/nix/main.o
<command-line>: fatal error: config.h: No such file or directory
compilation terminated.
  CXX    src/libexpr/eval.o
make: *** [mk/patterns.mk:17: src/nix/main.o] Error 1
make: *** Waiting for unfinished jobs....
<command-line>: fatal error: config.h: No such file or directory
compilation terminated.
make: *** [mk/patterns.mk:17: src/nix/develop.o] Error 1
<command-line>: fatal error: config.h: No such file or directory
compilation terminated.
make: *** [mk/patterns.mk:17: src/libexpr/eval.o] Error 1
rm src/nix/generated-doc/files/profiles.md

Expected behavior

It should build

nix-env --version output

Additional context

Add any other context about the problem here.

Priorities

Add :+1: to issues you find important.

kjeremy commented 3 days ago

nix develop .#native-ccacheStdenvPackages works.

Ericson2314 commented 3 days ago

if you run make all install -J<whjatever> do you still have the problem?

I hope to soon be able to close such issues with the Meson rewrite.