I built from source on Mac OS and found the following issues:
- llvm , compiling with llvm (3.4.2) gives the following warnings:
- $ ghc -fllvm cubeFast.hs
[1 of 1] Compiling Main ( cubeFast.hs, cubeFast.o )
clang: warning: argument unused during compilation: '-fno-stack-protector'
clang: warning: argument unused during compilation: '-D TABLES_NEXT_TO_CODE'
clang: warning: argument unused during compilation: '-I .'
clang: warning: argument unused during compilation: '-fno-common'
clang: warning: argument unused during compilation: '-U __PIC__'
clang: warning: argument unused during compilation: '-D __PIC__'
Linking cubeFast ... - running the resulting executable crashes (compiling without -fllvm gives no warnings and executable works properly)
- cat bigCube.txt | ./cubeFast > /dev/null
Segmentation fault: 11 - Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xfffffffd5bfd8460