Skip to content

5.00.2 build fail on NetBSD/i386

Since there are binary for NetBSD, I tried to build GHC
from intermediate C files. I downloaded
ghc-5.00.2-src.tar.bz2 and ghc-5.00.2-i386-hc.tar.bz2,
then typed following commands.

$ tar zxf ghc-5.00.2-src.tar.bz2
$ tar zxf ghc-5.00.2-i386-hc.tar.bz2
$ cd ghc-5.00.2
$ export CPPFLAGS=-I/usr/pkg/include
$ ./distrib/hc-build
(snip)
PWD = /usr/home/hiramatsu/pkgwork/ghc-5.00.2/hslibs/util
------------------------------------------------------------------------
gcc -x c Readline.hc -o Readline.raw_s -S -O 
-fno-defer-pop -fomit-frame-pointer  
-DDONT_WANT_WIN32_DLL_SUPPORT -D__GLASGOW_HASKELL__=500
 -O
-I/usr/home/hiramatsu/pkgwork/ghc-5.00.2/ghc/includes
-I/usr/home/hiramatsu/pkgwork/ghc-5.00.2/ghc/lib/std/cbits
-I/usr/home/hiramatsu/pkgwork/ghc-5.00.2/hslibs/lang/cbits
-I/usr/home/hiramatsu/pkgwork/ghc-5.00.2/hslibs/posix/cbits
-I/usr/home/hiramatsu/pkgwork/ghc-5.00.2/hslibs/util/cbits
-I/usr/home/hiramatsu/pkgwork/ghc-5.00.2/hslibs/text/cbits
-I/usr/home/hiramatsu/pkgwork/ghc-5.00.2/hslibs/hssource/cbits
-I../../ghc/includes -I../../ghc/lib/std/cbits 
-I../lang/cbits  -I../concurrent/cbits 
-I../posix/cbits    -I.  `echo  | sed
's/^$/-DSTOLEN_X86_REGS=4/'`
Readline.hc:5: Readline_hsc.h: No such file or directory
Readline.hc:6: Readline_stub.h: No such file or directory
gmake[1]: *** [Readline.raw_s] Error 1
gmake: *** [all] Error 1
gmake: Leaving directory
`/usr/home/hiramatsu/pkgwork/ghc-5.00.2/hslibs'
Trac metadata
Trac field Value
Version None
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information