Closed DavidEGrayson closed 7 years ago
What's going on here?
$ ./result/bin/armv6-linux-musleabi-gcc ./test.c -o test /nix/store/k3rx5ykrrwfiq9a40l4xc2zsrqagvqrl-gcc-6.3.0-armv6-linux-musleabi/lib/gcc/armv6-linux-musleabi/6.3.0/libgcc.a(_dvmd_lnx.o): In function `__aeabi_idiv0': /tmp/nix-build-gcc-6.3.0-armv6-linux-musleabi.drv-0/build_gcc/armv6-linux-musleabi/libgcc/../../../gcc/libgcc/config/arm/lib1funcs.S:1354: undefined reference to `raise' collect2: error: ld returned 1 exit status david@davidvm5 ~/nixcrpkgs (master) $ cat test.c #include <stdio.h> #include <stdlib.h> int main() { printf("ptr = %p\n", malloc(0)); printf("ptr = %p\n", malloc(0)); printf("ptr = %p\n", malloc(0)); printf("ptr = %p\n", malloc(0)); }
Fix it in d2920584185372dd1fdb162d1d796e19a4dd5157
What's going on here?