Re: [Haskell-cafe] ANNOUNCE: GHC version 7.10.2

2015-07-29 Thread Nikita Karetnikov
Is anyone else having trouble downloading the FreeBSD binaries? I’m getting 403 Forbidden errors: $ curl -sSL http://downloads.haskell.org/~ghc/7.10.2/ghc-7.10.2-i386-portbld-freebsd.tar.xz Same. ___ Glasgow-haskell-users mailing list

Arithmetic overflow in rem and mod

2015-06-01 Thread Nikita Karetnikov
According to the documentation, rem and mod must satisfy the following laws: -- (x `quot` y)*y + (x `rem` y) == x rem -- (x `div` y)*y + (x `mod` y) == x mod https://hackage.haskell.org/package/base-4.8.0.0/docs/src/GHC-Real.html Note, however, that there is a case when quot

-Wall and the fail method

2015-05-22 Thread Nikita Karetnikov
Can -Wall be extended to report pattern match failures in do expressions, like it does for case expressions? Prelude :set -Wall Prelude let f = do Just x - return Nothing; return x Prelude let g = case Nothing of Just x - x interactive:9:9: Warning: Pattern match(es) are non-exhaustive

Re: RC2 build failures on Debian: mips

2014-03-04 Thread Nikita Karetnikov
rts/dist/build/Adjustor.dyn_o: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [rts/dist/build/libHSrts-ghc7.8.0.20140228.so] Error 1 make[2]: *** Waiting for unfinished jobs make[1]: *** [all] Error 2 make[1]: Leaving directory `/«PKGBUILDDIR»'

Re: RC1 build failures on Debian

2014-02-07 Thread Nikita Karetnikov
IMHO this should already be fixed in HEAD with patch by Peter Trommler: 298a25bdfd02bb591fde2dd0590bd7af81a91b94 which fixes #8722: https://ghc.haskell.org/trac/ghc/ticket/8722 Thanks for letting me know. The ticket mentions DYNAMIC-BY_DEFAULT=NO, should I specify anything in the ‘build.mk’

Re: RC1 build failures on Debian

2014-02-06 Thread Nikita Karetnikov
In file included from rts/sm/Evac.c:21:0: rts/sm/GCTDecl.h:139:2: error: #error Cannot find a way to declare the thread-local gc variable! #error Cannot find a way to declare the thread-local gc variable! ^ I built GHC from the source tarball on mips64el and hit the same error. Any

Cross-compiling GHC: ghc-cabal: /tmp/30869.o: does not exist

2013-06-14 Thread Nikita Karetnikov
I'm trying to cross-compile GHC 7.6.3; 'make' fails with the mentioned error. How can I debug this issue? I used Guix [1] to build a cross-compiler and related packages: # ./pre-inst-env guix build -K gcc-cross-mips64el-linux-gnu After that I downloaded GHC 7.6.3: # wget

Re: Libffi errors while cross-compiling GHC 7.6.2 (Stage 1)

2013-03-23 Thread Nikita Karetnikov
Is /usr/bin/gcc a MIPS cross-compiler? If not, how do you expect it to work? Right, I wasn't using a cross-compiler. That's the problem. I haven't succeeded in cross-building yet. I'm using a distro with a non-common directory structure and I still have to figure out how to specify both

Libffi errors while cross-compiling GHC 7.6.2 (Stage 1)

2013-03-01 Thread Nikita Karetnikov
I'd like to cross-build GHC 7.6.2. I got stuck when I was trying to build a Stage 1 compiler [1]. Here's a bug report: [2,3]. I'm not sure that it's a bug; maybe I misunderstood the process. Could anyone advise? I have no experience with C. Though, I'll try to help out. [1]