[Pkg-haskell-maintainers] Bug#741803: haskell-hsql-postgresql: FTBFS: Type.hsc:7:22: fatal error: postgres.h: No such file or directory

David Suárez david.sephirot at gmail.com
Sun Mar 16 12:46:17 UTC 2014


Source: haskell-hsql-postgresql
Version: 1.8.2-2
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20140315 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
>  debian/rules build
> test -x debian/rules
> mkdir -p "."
> /usr/share/cdbs/1/rules/buildcore.mk:109: WARNING:  DEB_COMPRESS_EXCLUDE is a deprecated variable
> if test ! -e Setup.lhs -a ! -e Setup.hs; then echo "No setup script found!"; exit 1; fi
> for setup in Setup.lhs Setup.hs; do if test -e $setup; then ghc --make $setup -o debian/hlibrary.setup; exit 0; fi; done
> [1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
> Linking debian/hlibrary.setup ...
> debian/hlibrary.setup configure --ghc -v2 \
> 		--prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib \
> 		--builddir=dist-ghc \
> 		--haddockdir=/usr/lib/ghc-doc/haddock/hsql-postgresql-1.8.2/ --datasubdir=hsql-postgresql\
> 		--htmldir=/usr/share/doc/libghc-hsql-postgresql-doc/html/ --enable-library-profiling  \
> 		   
> Configuring hsql-postgresql-1.8.2...
> Dependency base ==4.*: using base-4.6.0.1
> Dependency hsql >=1.8.2 && <1.9: using hsql-1.8.2
> Dependency old-time -any: using old-time-1.1.0.1
> Using Cabal-1.16.0 compiled by ghc-7.6
> Using compiler: ghc-7.6.3
> Using install prefix: /usr
> Binaries installed in: /usr/bin
> Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/hsql-postgresql-1.8.2/ghc-7.6.3
> Private binaries installed in: /usr/libexec
> Data files installed in: /usr/share/hsql-postgresql
> Documentation installed in: /usr/share/doc/hsql-postgresql-1.8.2
> No alex found
> Using ar found on system at: /usr/bin/ar
> No c2hs found
> Using cpphs version 1.16 found on system at: /usr/bin/cpphs
> No ffihugs found
> Using gcc version 4.8 found on system at: /usr/bin/gcc
> Using ghc version 7.6.3 found on system at: /usr/bin/ghc
> Using ghc-pkg version 7.6.3 found on system at: /usr/bin/ghc-pkg
> No greencard found
> Using haddock version 2.13.2 found on system at: /usr/bin/haddock
> No happy found
> No hmake found
> Using hpc version 0.6 found on system at: /usr/bin/hpc
> Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
> Using hscolour version 1.20 found on system at: /usr/bin/HsColour
> No hugs found
> No jhc found
> Using ld found on system at: /usr/bin/ld
> No lhc found
> No lhc-pkg found
> No nhc98 found
> No pkg-config found
> Using ranlib found on system at: /usr/bin/ranlib
> Using strip found on system at: /usr/bin/strip
> Using tar found on system at: /bin/tar
> No uhc found
> configure: Using pg_config: /usr/bin/pg_config
> configure: configuring pq library
> /usr/bin/pg_config --libdir
> /usr/bin/pg_config --includedir
> /usr/bin/pg_config --includedir-server
> configure: missing directory: /usr/include/postgresql/9.3/server
> debian/hlibrary.setup build --builddir=dist-ghc
> Building hsql-postgresql-1.8.2...
> Preprocessing library hsql-postgresql-1.8.2...
> Type.hsc:7:22: fatal error: postgres.h: No such file or directory
> compilation terminated.
> compiling dist-ghc/build/DB/HSQL/PG/Type_hsc_make.c failed (exit code 1)
> command was: /usr/bin/gcc -c dist-ghc/build/DB/HSQL/PG/Type_hsc_make.c -o dist-ghc/build/DB/HSQL/PG/Type_hsc_make.o -fno-stack-protector -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -D__GLASGOW_HASKELL__=706 -Dlinux_BUILD_OS -Dlinux_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -I/usr/include/postgresql -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -I/usr/lib/ghc/old-time-1.1.0.1/include -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -I/usr/lib/ghc/base-4.6.0.1/include -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -I/usr/lib/ghc/include -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -I/usr/lib/ghc/include/
> make: *** [build-ghc-stamp] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2014/03/15/haskell-hsql-postgresql_1.8.2-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-haskell-maintainers mailing list