#3329: Errors Building 6.10.3 on NetBSD 4.0
-----------------------------+----------------------------------------------
Reporter: cjs | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.3 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: x86_64 (amd64)
-----------------------------+----------------------------------------------
Trying to build 6.10.3 using 6.8.2 on an amd64 NetBSD 4.0, I ran into
several problems.
1. `./configure --with-gmp-includes=/usr/pkg/include --with-gmp-
libraries=/usr/pkg/lib` did not work; the build system could not find
gmp.h. Changing libraries/Makefile to give the cabal setup command
`--extra-include-dirs=/usr/pkg/include --extra-lib-dirs=/usr/pkg/lib` let
it find the include file, but it still couldn't find the library. I
finally had to symlink `/usr/lib/libgmp.so.3` to
`/usr/pkg/lib/libgmp.so.3` to get it to compile and link.
2. It seems that the installPackage package triggers some thread issues:
{{{
gmake -C installPackage with-stage-2
gmake[3]: Entering directory
`/usr/local/ghc/src/ghc-6.10.3/utils/installPackage'
/usr/local/ghc/src/ghc-6.10.3/libraries/cabal-bin /usr/pkg/bin/ghc
/usr/local/ghc/src/ghc-6.10.3/libraries/bootstrapping.conf 1.6.0.3
configure --distpref dist-install \
--prefix=/NONEXISTENT --bindir=/NONEXISTENT
--libdir=/NONEXISTENT --libexecdir=/NONEXISTENT --datadir=/NONEXISTENT
--docdir=/NONEXISTENT --haddockdir=/NONEXISTENT --htmldir=/NONEXISTENT \
--with-
compiler=/usr/local/ghc/src/ghc-6.10.3/ghc/stage2-inplace/ghc --with-hc-
pkg=/usr/local/ghc/src/ghc-6.10.3/utils/ghc-pkg/install-inplace/bin/ghc-
pkg --package-db /usr/local/ghc/src/ghc-6.10.3/stage3.package.conf \
--libsubdir='$pkgid' --with-gcc=gcc --with-
ld=/usr/bin/ld --hsc2hs-option=-I/usr/pkg/include --configure-option
='--with-gmp-includes=/usr/pkg/include' --configure-option='--with-gmp-
libraries=/usr/pkg/lib' --configure-option=--with-cc="gcc" --with-
hsc2hs=/usr/local/ghc/src/ghc-6.10.3/utils/hsc2hs/install-
inplace/bin/hsc2hs \
--constraint="Cabal == 1.6.0.3"
Configuring installPackage-1.0...
ghc: Error detected by libpthread: Invalid mutex.
Detected by file
"/u/production/nbsd/instance/nbsd/src-4/lib/libpthread/pthread_mutex.c",
line 334, function "pthread_mutex_unlock".
See pthread(3) for information.
gmake[3]: *** [with-stage-2] Error 134
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3329>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs