[GHC] #7472: Build on FreeBSD fails with ncurses
GHC
cvs-ghc at haskell.org
Mon Dec 3 13:28:33 CET 2012
#7472: Build on FreeBSD fails with ncurses
--------------------------------+-------------------------------------------
Reporter: nematoder | Owner:
Type: bug | Status: new
Priority: normal | Component: Build System
Version: 7.6.1 | Keywords: ncurses, freebsd
Os: FreeBSD | Architecture: Unknown/Multiple
Failure: Building GHC failed | Blockedby:
Blocking: | Related:
--------------------------------+-------------------------------------------
Building fails on FreeBSD 8.2-stable with current Ports with the error as
documented in the attachment.
To fix this, I went to libraries/terminfo and executed there:
./configure --with-curses-includes=/usr/include --with-curses-
libraries=/usr/lib
Then I deleted manually all .o, .a, .so files in this directory (make
clean there does a global clean, which is a bug as well), ran make there
and went back to the toplevel build directoy, where I entered the
following command manually:
"inplace/bin/ghc-stage1" -o ghc/stage2/build/tmp/ghc-stage2 -H32m -O
-I/usr/include -L/usr/lib -hide-all-packages -i -ighc/.
-ighc/stage2/build -ighc/stage2/build/autogen -Ighc/stage2/build
-Ighc/stage2/build/autogen -optP-DGHCI -optP-include
-optPghc/stage2/build/autogen/cabal_macros.h -package array-0.4.0.0
-package base-4.5.0.0 -package bytestring-0.9.2.1 -package
directory-1.1.0.2 -package filepath-1.3.0.0 -package ghc-7.4.1 -package
haskeline-0.6.4.0 -package mtl-1.1.1.1 -package process-1.1.0.1 -package
unix-2.5.1.0 -fno-warn-name-shadowing -Wall -XHaskell98
-XForeignFunctionInterface -XUnboxedTuples -XFlexibleInstances -XMagicHash
-XNondecreasingIndentation -XCPP -XPatternGuards -O2 -threaded -no-user-
package-conf -rtsopts -odir ghc/stage2/build -hidir ghc/stage2/build
-stubdir ghc/stage2/build -hisuf hi -osuf o -hcsuf hc
ghc/stage2/build/Main.o ghc/stage2/build/InteractiveUI.o
ghc/stage2/build/GhciMonad.o ghc/stage2/build/GhciTags.o
ghc/stage2/build/hschooks.o
(note the changed -L and -I parameters)
Then I ran make again and building continues successfully.
To fix someone should add some ncurses tweaks to the main configure
script.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7472>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list