Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kjeremy opened this issue Jun 27, 2024 · 2 comments
Closed

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

kjeremy opened this issue Jun 27, 2024 · 2 comments
Labels
bug build-problem Nix fails to compile or test; also improvements to build process

Comments

@kjeremy
Copy link
Contributor

kjeremy commented Jun 27, 2024

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 👍 to issues you find important.

@kjeremy kjeremy added the bug label Jun 27, 2024
@kjeremy
Copy link
Contributor Author

kjeremy commented Jun 27, 2024

nix develop .#native-ccacheStdenvPackages works.

@Ericson2314
Copy link
Member

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.

@roberth roberth added the build-problem Nix fails to compile or test; also improvements to build process label Jun 29, 2024
@kjeremy kjeremy closed this as completed Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build-problem Nix fails to compile or test; also improvements to build process
Projects
None yet
Development

No branches or pull requests

3 participants