svenkeidel / category-studygroup

8 stars 2 forks source link

nix-build fails on darwin #2

Open dredozubov opened 6 years ago

dredozubov commented 6 years ago

nix-build currently fails on my machine, I'm using nixpkgs master:

  clang -c -DHAVE_CONFIG_H -g   -I. -I../../gcc-5.4.0/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fno-common  ../../gcc-5.4.0/libiberty/fdmatch.c -o noasan/fdmatch.o; \
else true; fi
clang -c -DHAVE_CONFIG_H -g   -I. -I../../gcc-5.4.0/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../gcc-5.4.0/libiberty/fdmatch.c -o fdmatch.o
if [ x"-fno-common" != x ]; then \
  clang -c -DHAVE_CONFIG_H -g   -I. -I../../gcc-5.4.0/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fno-common ../../gcc-5.4.0/libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
../../gcc-5.4.0/libiberty/fibheap.c:151:7: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
      free (heapa);
      ^
../../gcc-5.4.0/libiberty/fibheap.c:151:7: warning: this function declaration is not a prototype [-Wstrict-prototypes]
../../gcc-5.4.0/libiberty/fibheap.c:220:30: error: use of undeclared identifier 'LONG_MIN'
  if (okey == key && okey != FIBHEAPKEY_MIN)
                             ^
../../gcc-5.4.0/libiberty/fibheap.c:38:24: note: expanded from macro 'FIBHEAPKEY_MIN'
#define FIBHEAPKEY_MIN  LONG_MIN
                        ^
../../gcc-5.4.0/libiberty/fibheap.c:261:36: error: use of undeclared identifier 'LONG_MIN'
  fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
                                   ^
../../gcc-5.4.0/libiberty/fibheap.c:38:24: note: expanded from macro 'FIBHEAPKEY_MIN'
#define FIBHEAPKEY_MIN  LONG_MIN
                        ^
../../gcc-5.4.0/libiberty/fibheap.c:265:7: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Wimplicit-function-dec
1  all: generate
laration]
      abort ();
      ^
../../gcc-5.4.0/libiberty/fibheap.c:265:7: note: include the header <stdlib.h> or explicitly provide a declaration for 'abort'
../../gcc-5.4.0/libiberty/fibheap.c:368:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
  memset (a, 0, sizeof (fibnode_t) * D);
  ^
../../gcc-5.4.0/libiberty/fibheap.c:368:3: note: include the header <string.h> or explicitly provide a declaration for 'memset'
4 warnings and 2 errors generated.
make[3]: *** [Makefile:752: fibheap.o] Error 1
make[3]: Leaving directory '/private/var/folders/f8/2_rc4tgd1gj9vbgv7q9gbk4c0000gn/T/nix-build-gfortran-5.4.0.drv-0/build/libiberty'
make[2]: *** [Makefile:9595: all-stage1-libiberty] Error 2
make[2]: Leaving directory '/private/var/folders/f8/2_rc4tgd1gj9vbgv7q9gbk4c0000gn/T/nix-build-gfortran-5.4.0.drv-0/build'
make[1]: *** [Makefile:19387: stage1-bubble] Error 2
make[1]: Leaving directory '/private/var/folders/f8/2_rc4tgd1gj9vbgv7q9gbk4c0000gn/T/n
 7 all: generate
ix-build-gfortran-5.4.0.drv-0/build'
make: *** [Makefile:19692: bootstrap] Error 2
builder for ‘/nix/store/qyi7s7apnfxkk50iljhdvknk1carlvbr-gfortran-5.4.0.drv’ failed with exit code 2
cannot build derivation ‘/nix/store/b18fh2npifnrcmzkln7pdlj8rzf8s7cw-csdp-6.1.1.drv’: 1 dependencies couldn't be built
building path(s) ‘/nix/store/5c9fygrz6cz3cmbykyw5pcan7i8009k6-hyphens.sed’
killing process 38485
cannot build derivation ‘/nix/store/6bc70681j3cf0f9j4jgafvq7rhf3cj4f-coq-8.6.drv’: 1 dependencies couldn't be built
building path(s) ‘/nix/store/xfzbrkii39pl7p0d46dr93y8d2vx002a-tikz-cd-0.9e’
killing process 38487
cannot build derivation ‘/nix/store/z969y6abihfp8rh2fzbmxsja1yfxa50a-categories.drv’:
1 dependencies couldn't be built
error: build of ‘/nix/store/z969y6abihfp8rh2fzbmxsja1yfxa50a-categories.drv’ failed
make: *** [nix] Error 100
svenkeidel commented 6 years ago

b051a3beea7753e0c1a539210c3592690d38aa59 should fix it.

dredozubov commented 6 years ago

Definitely nixpkgs issue, it work with older nixpkgs