Hi Ian, Roman, this may be a problem with my cross-compiler, as the problem persists in my setup:
$ "inplace/bin/ghc-cabal" configure --with-ghc="/home/ggreif/ghc-head/inplace/bin/ghc-stage1" --with-ghc-pkg="/home/ggreif/ghc-head/inplace/bin/ghc-pkg" --enable-library-for-ghci --configure-option=CFLAGS=" " --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --with-gcc="false" --configure-option=--with-cc="false" --with-ar="false" --with-ranlib="true" -- dist-install libraries/primitive Configuring primitive-0.4.0.1... ghc-cabal: Missing dependency on a foreign library: * Missing (or bad) header file: primitive-memops.h This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. If the header file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. $ cat /home/ggreif/ghc-head/inplace/bin/ghc-stage1 #!/bin/sh executablename="/home/ggreif/ghc-head/inplace/lib/ghc-stage1" datadir="/home/ggreif/ghc-head/inplace/lib" bindir="/home/ggreif/ghc-head/inplace/bin" topdir="/home/ggreif/ghc-head/inplace/lib" pgmgcc="/home/ggreif/devkit/ppc/85xx/bin/ppc_85xx-gcc" exec "$executablename" -B"$topdir" ${1+"$@"} Is it possible that ghc-cabal somehow uses a C compiler (host/target gcc) to discover dependencies? Cheers, Gabor On 1/11/12, Roman Leshchinskiy <r...@cse.unsw.edu.au> wrote: > On 10/01/2012, at 20:28, Gabor Greif wrote: > >> My suspicion is that ghc-cabal is not prepared to see "includes:" or >> some other weirdness with "Include-Dirs:" or "Install-Includes:". > > From bytestring.cabal in the GHC tree: > > include-dirs: include > includes: fpstring.h > install-includes: fpstring.h > > Does bytestring have the same problem for you? This sounds very weird, I've > never seen this error before. > > Roman > > > _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc