Nix: GC Errors

Created on 6 Aug 2020  路  4Comments  路  Source: NixOS/nix

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

bug

All 4 comments

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)

Was this page helpful?
0 / 5 - 0 ratings