Errors Building 6.10.3 on NetBSD 4.0
Trying to build 6.10.3 using 6.8.2 on an amd64 NetBSD 4.0, I ran into several problems.
-
./configure --with-gmp-includes=/usr/pkg/include --with-gmp-libraries=/usr/pkg/libdid 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/liblet it find the include file, but it still couldn't find the library. I finally had to symlink/usr/lib/libgmp.so.3to/usr/pkg/lib/libgmp.so.3to get it to compile and link. - 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
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |