Skip to content

Build on FreeBSD fails with ncurses

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:

  1. /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.

Trac metadata
Trac field Value
Version 7.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
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