Bug#868907: haskell-argon2: FTBFS: FFI.hsc:93:16: error: 'ARGON2_FLAG_CLEAR_MEMORY' undeclared (first use in this function)

Lucas Nussbaum lucas at debian.org
Wed Jul 19 15:46:28 UTC 2017


Source: haskell-argon2
Version: 1.2.0-3
Severity: serious
Tags: buster sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170719 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 "."
> CDBS WARNING:    DEB_DH_STRIP_ARGS is deprecated since 0.4.85
> CDBS WARNING:    DEB_COMPRESS_EXCLUDE is deprecated since 0.4.85
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> make_setup_recipe
> Running ghc --make Setup.hs -o debian/hlibrary.setup
> [1 of 1] Compiling Main             ( Setup.hs, Setup.o )
> Linking debian/hlibrary.setup ...
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> configure_recipe
> Running debian/hlibrary.setup configure --ghc -v2 --package-db=/var/lib/ghc/package.conf.d --prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib --libexecdir=/usr/lib --builddir=dist-ghc --ghc-option=-optl-Wl\,-z\,relro --haddockdir=/usr/lib/ghc-doc/haddock/argon2-1.2.0/ --datasubdir=argon2 --htmldir=/usr/share/doc/libghc-argon2-doc/html/ --enable-library-profiling -fuse-system-library
> Configuring argon2-1.2.0...
> Flags chosen: use-system-library=True
> Dependency base >=4.8 && <4.10: using base-4.9.1.0
> Dependency bytestring -any: using bytestring-0.10.8.1
> Dependency text -any: using text-1.2.2.2
> Dependency transformers -any: using transformers-0.5.2.0
> Using Cabal-1.24.2.0 compiled by ghc-8.0
> Using compiler: ghc-8.0.2
> Using install prefix: /usr
> Binaries installed in: /usr/bin
> Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/argon2-1.2.0-34BCT97DazHC6hmlmEfz20
> Dynamic libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2
> Private binaries installed in: /usr/lib
> Data files installed in: /usr/share/argon2
> Documentation installed in: /usr/share/doc/x86_64-linux-ghc-8.0.2/argon2-1.2.0
> Configuration files installed in: /usr/etc
> No alex found
> Using ar found on system at: /usr/bin/ar
> No c2hs found
> No cpphs found
> Using gcc version 6.4.0 found on system at: /usr/bin/gcc
> Using ghc version 8.0.2 found on system at: /usr/bin/ghc
> Using ghc-pkg version 8.0.2 found on system at: /usr/bin/ghc-pkg
> No ghcjs found
> No ghcjs-pkg found
> No greencard found
> Using haddock version 2.17.3 found on system at: /usr/bin/haddock
> No happy found
> Using haskell-suite found on system at: haskell-suite-dummy-location
> Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
> No hmake found
> Using hpc version 0.67 found on system at: /usr/bin/hpc
> Using hsc2hs version 0.68.1 found on system at: /usr/bin/hsc2hs
> Using hscolour version 1.24 found on system at: /usr/bin/HsColour
> No jhc found
> Using ld found on system at: /usr/bin/ld
> No lhc found
> No lhc-pkg found
> No pkg-config found
> Using strip version 2.28 found on system at: /usr/bin/strip
> Using tar found on system at: /bin/tar
> No uhc found
> touch configure-ghc-stamp
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> build_recipe
> Running debian/hlibrary.setup build --builddir=dist-ghc
> Building argon2-1.2.0...
> Preprocessing library argon2-1.2.0...
> In file included from dist-ghc/build/Crypto/Argon2/FFI_hsc_make.c:1:0:
> FFI.hsc: In function 'main':
> FFI.hsc:93:16: error: 'ARGON2_FLAG_CLEAR_MEMORY' undeclared (first use in this function)
> /usr/lib/ghc/template-hsc.h:35:10: note: in definition of macro 'hsc_const'
>      if ((x) < 0)                                      \
>           ^
> FFI.hsc:93:16: note: each undeclared identifier is reported only once for each function it appears in
> /usr/lib/ghc/template-hsc.h:35:10: note: in definition of macro 'hsc_const'
>      if ((x) < 0)                                      \
>           ^
> compiling dist-ghc/build/Crypto/Argon2/FFI_hsc_make.c failed (exit code 1)
> command was: /usr/bin/gcc -c dist-ghc/build/Crypto/Argon2/FFI_hsc_make.c -o dist-ghc/build/Crypto/Argon2/FFI_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=800 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Idist-ghc/build/autogen -include dist-ghc/build/autogen/cabal_macros.h -I/usr/lib/ghc/bytestring-0.10.8.1/include -I/usr/lib/ghc/base-4.9.1.0/include -I/usr/lib/ghc/integer-gmp-1.0.0.1/include -I/usr/lib/ghc/include -I/usr/lib/ghc/include/
> /usr/share/cdbs/1/class/hlibrary.mk:147: recipe for target 'build-ghc-stamp' failed
> make: *** [build-ghc-stamp] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2017/07/19/haskell-argon2_1.2.0-3_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