[GHC] #7754: Can't find curses.h when building cross-compiler

GHC cvs-ghc at haskell.org
Fri Mar 8 07:50:09 CET 2013


#7754: Can't find curses.h when building cross-compiler
--------------------------------+-------------------------------------------
Reporter:  fumieval             |          Owner:                             
    Type:  bug                  |         Status:  new                        
Priority:  normal               |      Component:  Compiler                   
 Version:  7.7                  |       Keywords:  arm, terminfo, raspberry pi
      Os:  Linux                |   Architecture:  arm                        
 Failure:  Building GHC failed  |      Blockedby:                             
Blocking:                       |        Related:                             
--------------------------------+-------------------------------------------
 {{{

 $ PATH=$PATH:/home/fumiaki/tools/arm-bcm2708/gcc-linaro-arm-linux-
 gnueabihf-raspbian/bin
 $ ./configure --target=arm-linux-gnueabihf --enable-unregisterised

 $ make

 (...)

 "inplace/bin/ghc-cabal" check libraries/terminfo
 "inplace/bin/ghc-cabal" configure --with-
 ghc="/home/fumiaki/ghc/inplace/bin/ghc-stage1" --with-ghc-
 pkg="/home/fumiaki/ghc/inplace/bin/ghc-pkg"  --enable-library-vanilla
 --disable-library-profiling --disable-shared --disable-library-for-ghci
 --enable-library-for-ghci --with-
 hscolour="/home/fumiaki/.cabal/bin/HsColour" --configure-option=CFLAGS="
 -fno-stack-protector   " --configure-option=LDFLAGS=" -Wl,--hash-size=31
 -Wl,--reduce-memory-overheads  " --configure-option=CPPFLAGS="   "
 --configure-option=--host=arm-unknown-linux-gnueabihf --with-
 gcc="/home/fumiaki/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-
 raspbian/bin/arm-linux-gnueabihf-gcc" --with-ld="/home/fumiaki/tools/arm-
 bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
 ld" --configure-option=--with-cc="/home/fumiaki/tools/arm-bcm2708/gcc-
 linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc" --with-
 ar="/usr/bin/ar" --with-ranlib="true" --with-
 alex="/home/fumiaki/.cabal/bin/alex" --with-
 happy="/home/fumiaki/.cabal/bin/happy" -- dist-install libraries/terminfo
 Configuring terminfo-0.3.2.5...
 configure: WARNING: unrecognized options: --with-compiler, --with-gcc
 configure: WARNING: if you wanted to set the --build type, don't use
 --host.
     If a cross compiler is detected then cross compile mode will be used
 checking for arm-unknown-linux-gnueabihf-gcc... /home/fumiaki/tools/arm-
 bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
 gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... yes
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether /home/fumiaki/tools/arm-bcm2708/gcc-linaro-arm-linux-
 gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc accepts -g... yes
 checking for /home/fumiaki/tools/arm-bcm2708/gcc-linaro-arm-linux-
 gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc option to accept ISO C89...
 none needed
 checking how to run the C preprocessor... /home/fumiaki/tools/arm-bcm2708
 /gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc -E
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking ncurses.h usability... no
 checking ncurses.h presence... no
 checking for ncurses.h... no
 checking curses.h usability... no
 checking curses.h presence... no
 checking for curses.h... no
 configure: error: in `/home/fumiaki/ghc/libraries/terminfo':
 configure: error: curses headers could not be found, so this package
 cannot be built
 See `config.log' for more details
 make[1]: *** [libraries/terminfo/dist-install/package-data.mk] Error 1
 make: *** [all] Error 2

 }}}

 Of course there are curses.h and corresponding library which is installed
 by 'apt-get install libncurses5-dev'.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7754>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list