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
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
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
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»'
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’
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
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
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
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]