Subject: bug#31170: Package: nix build failed

From: <[email-masked]>
Date: Sun, 15 Apr 2018 20:53:19 +0200 (CEST)

Package: nix build failed

starting phase `build'
  GEN    Makefile.config
  CXX    src/nix-hash/nix-hash.o
  CXX    src/libmain/shared.o
  CXX    src/libmain/stack.o
  CXX    src/libstore/build.o
  CXX    src/libstore/builtins.o
  CXX    src/libstore/derivations.o
  CXX    src/libstore/download.o
  CXX    src/libstore/gc.o
src/libmain/stack.cc: In function ‘void nix::sigsegvHandler(int, siginfo_t*, void*)’:
src/libmain/stack.cc:23:21: error: ‘ucontext’ was not declared in this scope
     sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
                     ^
src/libmain/stack.cc:23:31: error: expected primary-expression before ‘)’ token
     sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
                               ^
src/libmain/stack.cc:23:33: error: expected ‘)’ before ‘ctx’
     sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
                                 ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unneeded-internal-declaration’
make: *** [mk/patterns.mk:3: src/libmain/stack.o] Error 1
make: *** Waiting for unfinished jobs....
phase `build' failed after 11.2 seconds
builder for `/gnu/store/wqzgh59kpkgix8w673h6r07r8n5i2mnk-nix-1.11.9.drv' failed with exit code 1
guix package: error: build failed: build of `/gnu/store/wqzgh59kpkgix8w673h6r07r8n5i2mnk-nix-1.11.9.drv' failed