Describe the bug
Building nix from source errors out.
Steps To Reproduce
./configure
make -j16
LD src/nix/nix
src/nix/repl.o: In function `gc::operator delete(void*)':
/users/home/rog32/.hpc/include/gc/gc_cpp.h:445: undefined reference to `GC_free'
src/nix/repl.o: In function `gc::operator new(unsigned long)':
/users/home/rog32/.hpc/include/gc/gc_cpp.h:410: undefined reference to `GC_malloc'
src/nix/repl.o: In function `gc::operator delete(void*)':
/users/home/rog32/.hpc/include/gc/gc_cpp.h:445: undefined reference to `GC_free'
/users/home/rog32/.hpc/include/gc/gc_cpp.h:445: undefined reference to `GC_free'
collect2: error: ld returned 1 exit status
make: *** [src/nix/nix] Error 1
Expected behavior
Should work
I just hit this too on Fedora (with make -j1)
Backport PR: #3926
Can confirm 59067f0 fixes the build on Fedora, thanks.
BTW I have a Fedora copr repo for nix: https://copr.fedorainfracloud.org/coprs/petersen/nix/
(not easy to package though)