[Pkg-haskell-maintainers] Bug#753381: ghc: please support ccache
Gabriele Giacone
1o5g4r8o at gmail.com
Tue Jul 1 09:16:55 UTC 2014
Package: ghc
Version: 7.6.3-13
Severity: normal
Dear Maintainer,
To reproduce:
- install ccache
- $ export PATH=/usr/lib/ccache:$PATH
- get a haskell package sources and install its build-deps
- build it with dpkg-buildpackage
Attached log is haskell-skein build (after s/-v2/-v3/ in
/usr/share/cdbs/1/class/hlibrary.mk to make it more verbose).
I see HOME is set by ghc d/rules to /homedoesnotexistatbuildtime.
http://sources.debian.net/src/ghc/7.8.20140411-5/debian/rules#L17
How about setting it only if not already set? (not tested)
Thanks.
-- System Information:
Debian Release: jessie/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable'), (1, 'experimental')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.4-486-dbg/Hurd-0.5
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages ghc depends on:
ii gcc 4:4.9.0-4
ii libbsd-dev 0.6.0-2
ii libc0.3 2.19-4
ii libc0.3-dev [libc6-dev] 2.19-4
ii libffi-dev 3.1-2
ii libffi6 3.1-2
ii libgmp-dev 2:6.0.0+dfsg-4
ii libgmp10 2:6.0.0+dfsg-4
ii libtinfo5 5.9+20140118-1
ghc recommends no packages.
Versions of packages ghc suggests:
ii ghc-doc 7.6.3-13
ii ghc-prof 7.6.3-13
pn haskell-doc <none>
pn llvm <none>
ii perl 5.18.2-4
-- no debconf information
-------------- next part --------------
dpkg-buildpackage: source package haskell-skein
dpkg-buildpackage: source version 1.0.9-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Clint Adams <clint at debian.org>
dpkg-source --before-build haskell-skein-1.0.9
dpkg-buildpackage: host architecture hurd-i386
fakeroot debian/rules clean
test -x debian/rules
dh_clean
[ ! -x "debian/hlibrary.setup" ] || debian/hlibrary.setup clean
cleaning...
rm -rf dist dist-ghc dist-hugs debian/hlibrary.setup Setup.hi Setup.ho Setup.o .*config*
rm -f configure-ghc-stamp build-ghc-stamp build-hugs-stamp build-haddock-stamp
rm -rf debian/tmp-inst-ghc
rm -f debian/extra-depends
rm -f debian/libghc-skein-doc.links
rm -f debian/hlibrary.Makefile
rm -rf debian/dh_haskell_shlibdeps
dpkg-source -b haskell-skein-1.0.9
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building haskell-skein using existing ./haskell-skein_1.0.9.orig.tar.gz
dpkg-source: info: building haskell-skein in haskell-skein_1.0.9-1.debian.tar.xz
dpkg-source: info: building haskell-skein in haskell-skein_1.0.9-1.dsc
debian/rules build
test -x debian/rules
mkdir -p "."
/usr/share/cdbs/1/rules/buildcore.mk:110: CDBS WARNING: DEB_COMPRESS_EXCLUDE is deprecated since 0.4.85
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.hs, Setup.o )
Linking debian/hlibrary.setup ...
debian/hlibrary.setup configure --ghc -v3 \
--prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib \
--builddir=dist-ghc \
--haddockdir=/usr/lib/ghc-doc/haddock/skein-1.0.9/ --datasubdir=skein\
--htmldir=/usr/share/doc/libghc-skein-doc/html/ --enable-library-profiling \
-fforce-endianness -f-big-endian --enable-tests
Configuring skein-1.0.9...
creating dist-ghc
searching for ghc in path.
found ghc at /usr/bin/ghc
("/usr/bin/ghc",["--numeric-version"])
/usr/bin/ghc is version 7.6.3
looking for tool "ghc-pkg" near compiler in /usr/bin
found ghc-pkg in /usr/bin/ghc-pkg
("/usr/bin/ghc-pkg",["--version"])
/usr/bin/ghc-pkg is version 7.6.3
("/usr/bin/ghc",["--supported-languages"])
("/usr/bin/ghc",["--info"])
Reading installed packages...
("/usr/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/bin/ghc",["--print-libdir"])
Flags chosen: big-endian=False, force-endianness=True, reference=False
Dependency base >=3 && <5: using base-4.6.0.1
Dependency bytestring >=0.9: using bytestring-0.10.0.2
Dependency cereal >=0.3 && <0.5: using cereal-0.4.0.1
Dependency crypto-api >=0.6 && <0.14: using crypto-api-0.13
Dependency filepath ==1.*: using filepath-1.3.0.1
Dependency hspec >=1.3: using hspec-1.8.1.1
Dependency skein -any: using skein-1.0.9
Dependency tagged >=0.2 && <0.8: using tagged-0.7.2
searching for alex in path.
Cannot find alex on the path
searching for ar in path.
found ar at /usr/bin/ar
searching for c2hs in path.
Cannot find c2hs on the path
searching for cpphs in path.
Cannot find cpphs on the path
searching for ffihugs in path.
Cannot find ffihugs on the path
searching for gcc in path.
found gcc at /usr/lib/ccache/gcc
("/usr/lib/ccache/gcc",["-dumpversion"])
/usr/lib/ccache/gcc returned ExitFailure 1 with error message:
ccache: failed to create /homedoesnotexistatbuildtime/.ccache (No such file or
directory)
Warning: cannot determine version of /usr/lib/ccache/gcc :
""
searching for greencard in path.
Cannot find greencard on the path
searching for haddock in path.
found haddock at /usr/bin/haddock
("/usr/bin/haddock",["--version"])
/usr/bin/haddock is version 2.13.2
searching for happy in path.
Cannot find happy on the path
searching for hmake in path.
Cannot find hmake on the path
searching for hpc in path.
found hpc at /usr/bin/hpc
("/usr/bin/hpc",["version"])
/usr/bin/hpc is version 0.6
looking for tool "hsc2hs" near compiler in /usr/bin
found hsc2hs in /usr/bin/hsc2hs
("/usr/bin/hsc2hs",["--version"])
/usr/bin/hsc2hs is version 0.67
searching for HsColour in path.
found HsColour at /usr/bin/HsColour
("/usr/bin/HsColour",["-version"])
/usr/bin/HsColour is version 1.20
searching for hugs in path.
Cannot find hugs on the path
searching for jhc in path.
Cannot find jhc on the path
searching for ld in path.
found ld at /usr/bin/ld
("/usr/bin/ghc",["-c","/tmp/2883.c","-o","/tmp/2883.o"])
("/usr/bin/ld",["-x","-r","/tmp/2883.o","-o","/tmp/2884.o"])
searching for lhc in path.
Cannot find lhc on the path
searching for lhc-pkg in path.
Cannot find lhc-pkg on the path
searching for nhc98 in path.
Cannot find nhc98 on the path
searching for pkg-config in path.
found pkg-config at /usr/bin/pkg-config
("/usr/bin/pkg-config",["--version"])
/usr/bin/pkg-config is version 0.28
searching for ranlib in path.
found ranlib at /usr/bin/ranlib
searching for strip in path.
found strip at /usr/bin/strip
searching for tar in path.
found tar at /bin/tar
searching for uhc in path.
Cannot find uhc on the path
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/skein-1.0.9/ghc-7.6.3
Private binaries installed in: /usr/libexec
Data files installed in: /usr/share/skein
Documentation installed in: /usr/share/doc/skein-1.0.9
No alex found
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc found on system at: /usr/lib/ccache/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
Using pkg-config version 0.28 found on system at: /usr/bin/pkg-config
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
("/usr/lib/ccache/gcc",["-Wl,--hash-size=31","-Wl,--reduce-memory-overheads","/tmp/2883.c","-o","/tmp/2883","-D__GLASGOW_HASKELL__=706","-Di386_HOST_ARCH=1","-Idist-ghc/build/autogen","-Ic_impl/optimized","-I.","-DSKEIN_NEED_SWAP=0","-I/usr/lib/ghc/unix-2.6.0.1/include","-I/usr/lib/ghc/bytestring-0.10.0.2/include","-I/usr/lib/ghc/time-1.4.0.1/include","-I/usr/lib/ghc/base-4.6.0.1/include","-I/usr/lib/ghc/include","-DSKEIN_NEED_SWAP=0","-L/usr/lib/haskell-packages/ghc/lib/hspec-1.8.1.1/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/setenv-0.1.0/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/quickcheck-io-0.1.0/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/hspec-expectations-0.5.0.1/ghc-7.6.3","-L/usr/lib/ghc/filepath-1.3.0.1","-L/usr/lib/haskell-packages/ghc/lib/crypto-api-0.13/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/transformers-0.3.0.0/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/tagged-0.7.2/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/entropy-0.2.1/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/cereal-0.4.0.1/ghc-7.6.3","-L/usr/lib/ghc/containers-0.5.0.0","-L/usr/lib/haskell-packages/ghc/lib/ansi-terminal-0.6.1.1/ghc-7.6.3","-L/usr/lib/ghc/unix-2.6.0.1","-L/usr/lib/ghc/bytestring-0.10.0.2","-L/usr/lib/haskell-packages/ghc/lib/QuickCheck-2.6/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/random-1.0.1.1/ghc-7.6.3","-L/usr/lib/ghc/time-1.4.0.1","-L/usr/lib/ghc/old-locale-1.0.0.5","-L/usr/lib/haskell-packages/ghc/lib/HUnit-1.2.5.2/ghc-7.6.3","-L/usr/lib/ghc/deepseq-1.3.0.1","-L/usr/lib/ghc/array-0.4.0.1","-L/usr/lib/ghc/base-4.6.0.1","-L/usr/lib/ghc/integer-gmp-0.5.0.0","-L/usr/lib/ghc/ghc-prim-0.3.0.0","-L/usr/lib/ghc"])
/usr/lib/ccache/gcc returned ExitFailure 1 with error message:
ccache: failed to create /homedoesnotexistatbuildtime/.ccache (No such file or
directory)
("/usr/lib/ccache/gcc",["-Wl,--hash-size=31","-Wl,--reduce-memory-overheads","/tmp/2883.c","-o","/tmp/2883","-L/usr/lib/haskell-packages/ghc/lib/hspec-1.8.1.1/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/setenv-0.1.0/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/quickcheck-io-0.1.0/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/hspec-expectations-0.5.0.1/ghc-7.6.3","-L/usr/lib/ghc/filepath-1.3.0.1","-L/usr/lib/haskell-packages/ghc/lib/crypto-api-0.13/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/transformers-0.3.0.0/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/tagged-0.7.2/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/entropy-0.2.1/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/cereal-0.4.0.1/ghc-7.6.3","-L/usr/lib/ghc/containers-0.5.0.0","-L/usr/lib/haskell-packages/ghc/lib/ansi-terminal-0.6.1.1/ghc-7.6.3","-L/usr/lib/ghc/unix-2.6.0.1","-L/usr/lib/ghc/bytestring-0.10.0.2","-L/usr/lib/haskell-packages/ghc/lib/QuickCheck-2.6/ghc-7.6.3","-L/usr/lib/haskell-packages/ghc/lib/random-1.0.1.1/ghc-7.6.3","-L/usr/lib/ghc/time-1.4.0.1","-L/usr/lib/ghc/old-locale-1.0.0.5","-L/usr/lib/haskell-packages/ghc/lib/HUnit-1.2.5.2/ghc-7.6.3","-L/usr/lib/ghc/deepseq-1.3.0.1","-L/usr/lib/ghc/array-0.4.0.1","-L/usr/lib/ghc/base-4.6.0.1","-L/usr/lib/ghc/integer-gmp-0.5.0.0","-L/usr/lib/ghc/ghc-prim-0.3.0.0","-L/usr/lib/ghc"])
/usr/lib/ccache/gcc returned ExitFailure 1 with error message:
ccache: failed to create /homedoesnotexistatbuildtime/.ccache (No such file or
directory)
("/usr/lib/ccache/gcc",["-Wl,--hash-size=31","-Wl,--reduce-memory-overheads","/tmp/2883.c","-o","/tmp/2883","-c","-D__GLASGOW_HASKELL__=706","-Di386_HOST_ARCH=1","-Idist-ghc/build/autogen","-Ic_impl/optimized","-I.","-DSKEIN_NEED_SWAP=0","-I/usr/lib/ghc/unix-2.6.0.1/include","-I/usr/lib/ghc/bytestring-0.10.0.2/include","-I/usr/lib/ghc/time-1.4.0.1/include","-I/usr/lib/ghc/base-4.6.0.1/include","-I/usr/lib/ghc/include","-DSKEIN_NEED_SWAP=0"])
/usr/lib/ccache/gcc returned ExitFailure 1 with error message:
ccache: failed to create /homedoesnotexistatbuildtime/.ccache (No such file or
directory)
("/usr/lib/ccache/gcc",["-Wl,--hash-size=31","-Wl,--reduce-memory-overheads","/tmp/2883.c","-o","/tmp/2883","-E","-D__GLASGOW_HASKELL__=706","-Di386_HOST_ARCH=1","-Idist-ghc/build/autogen","-Ic_impl/optimized","-I.","-DSKEIN_NEED_SWAP=0","-I/usr/lib/ghc/unix-2.6.0.1/include","-I/usr/lib/ghc/bytestring-0.10.0.2/include","-I/usr/lib/ghc/time-1.4.0.1/include","-I/usr/lib/ghc/base-4.6.0.1/include","-I/usr/lib/ghc/include"])
/usr/lib/ccache/gcc returned ExitFailure 1 with error message:
ccache: failed to create /homedoesnotexistatbuildtime/.ccache (No such file or
directory)
hlibrary.setup: Missing dependency on a foreign library:
* Missing (or bad) header file: skein.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.
/usr/share/cdbs/1/class/hlibrary.mk:111: recipe for target 'configure-ghc-stamp' failed
make: *** [configure-ghc-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
More information about the Pkg-haskell-maintainers
mailing list