[Pkg-haskell-maintainers] Bug#678786: haskell-llvm-base: FTBFS: error: 'class llvm::SMDiagnostic' has no member named 'Print'

Lucas Nussbaum lucas at lucas-nussbaum.net
Sun Jun 24 09:28:52 UTC 2012


Source: haskell-llvm-base
Version: 3.0.1.0-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120624 qa-ftbfs
Justification: FTBFS on amd64

Hi,

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

Relevant part:
>  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.hs, 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/llvm-base-3.0.1.0/ \
> 		--htmldir=/usr/share/doc/libghc-llvm-base-doc/html/ --enable-library-profiling  \
> 		   
> Configuring llvm-base-3.0.1.0...
> Flags chosen: developer=False
> Dependency base >=3 && <5: using base-4.5.0.0
> Using Cabal-1.14.0 compiled by ghc-7.4
> Using compiler: ghc-7.4.1
> Using install prefix: /usr
> Binaries installed in: /usr/bin
> Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/llvm-base-3.0.1.0/ghc-7.4.1
> Private binaries installed in: /usr/libexec
> Data files installed in: /usr/share/llvm-base-3.0.1.0
> Documentation installed in: /usr/share/doc/llvm-base-3.0.1.0
> No alex found
> Using ar found on system at: /usr/bin/ar
> No c2hs found
> No cpphs found
> No ffihugs found
> Using gcc version 4.7 found on system at: /usr/bin/gcc
> Using ghc version 7.4.1 found on system at: /usr/bin/ghc
> Using ghc-pkg version 7.4.1 found on system at: /usr/bin/ghc-pkg
> No greencard found
> Using haddock version 2.10.0 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.19 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
> sh configure --with-compiler=ghc --prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib --with-gcc=/usr/bin/gcc
> configure: WARNING: unrecognized options: --with-gcc
> checking for g++... g++
> 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... no
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for llvm-config... /usr/bin/llvm-config
> Target platform inferred as: x86_64-unknown-linux
> checking for library containing LLVMModuleCreateWithName... no
> checking how to run the C++ preprocessor... g++ -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 llvm-c/Core.h usability... yes
> checking llvm-c/Core.h presence... yes
> checking for llvm-c/Core.h... yes
> checking llvm/ADT/StringRef.h usability... yes
> checking llvm/ADT/StringRef.h presence... yes
> checking for llvm/ADT/StringRef.h... yes
> checking for llvm/Support/DynamicLibrary.h... yes
> checking for LLVMModuleCreateWithName in -lLLVMCore... yes
> configure: creating ./config.status
> config.status: creating llvm-base.buildinfo
> config.status: creating include/hs_llvm_config.h
> configure: WARNING: unrecognized options: --with-gcc
> Reading parameters from ./llvm-base.buildinfo
> debian/hlibrary.setup build --builddir=dist-ghc
> Building llvm-base-3.0.1.0...
> Preprocessing library llvm-base-3.0.1.0...
> [ 1 of 24] Compiling LLVM.Target.XCore ( LLVM/Target/XCore.hs, dist-ghc/build/LLVM/Target/XCore.o )
> [ 2 of 24] Compiling LLVM.Target.SystemZ ( LLVM/Target/SystemZ.hs, dist-ghc/build/LLVM/Target/SystemZ.o )
> [ 3 of 24] Compiling LLVM.Target.Sparc ( LLVM/Target/Sparc.hs, dist-ghc/build/LLVM/Target/Sparc.o )
> [ 4 of 24] Compiling LLVM.Target.PowerPC ( LLVM/Target/PowerPC.hs, dist-ghc/build/LLVM/Target/PowerPC.o )
> [ 5 of 24] Compiling LLVM.Target.PIC16 ( LLVM/Target/PIC16.hs, dist-ghc/build/LLVM/Target/PIC16.o )
> [ 6 of 24] Compiling LLVM.Target.Mips ( LLVM/Target/Mips.hs, dist-ghc/build/LLVM/Target/Mips.o )
> [ 7 of 24] Compiling LLVM.Target.MSP430 ( LLVM/Target/MSP430.hs, dist-ghc/build/LLVM/Target/MSP430.o )
> [ 8 of 24] Compiling LLVM.Target.CppBackend ( LLVM/Target/CppBackend.hs, dist-ghc/build/LLVM/Target/CppBackend.o )
> [ 9 of 24] Compiling LLVM.Target.CellSPU ( LLVM/Target/CellSPU.hs, dist-ghc/build/LLVM/Target/CellSPU.o )
> [10 of 24] Compiling LLVM.Target.CBackend ( LLVM/Target/CBackend.hs, dist-ghc/build/LLVM/Target/CBackend.o )
> [11 of 24] Compiling LLVM.Target.Blackfin ( LLVM/Target/Blackfin.hs, dist-ghc/build/LLVM/Target/Blackfin.o )
> [12 of 24] Compiling LLVM.Target.Alpha ( LLVM/Target/Alpha.hs, dist-ghc/build/LLVM/Target/Alpha.o )
> [13 of 24] Compiling LLVM.Target.ARM  ( LLVM/Target/ARM.hs, dist-ghc/build/LLVM/Target/ARM.o )
> [14 of 24] Compiling LLVM.Target.X86  ( LLVM/Target/X86.hs, dist-ghc/build/LLVM/Target/X86.o )
> [15 of 24] Compiling LLVM.Target.Native ( LLVM/Target/Native.hs, dist-ghc/build/LLVM/Target/Native.o )
> 
> LLVM/Target/Native.hs:10:1:
>     Warning: The import of `LLVM.Target.X86' is redundant
>                except perhaps to import instances from `LLVM.Target.X86'
>              To import instances alone, use: import LLVM.Target.X86()
> [16 of 24] Compiling LLVM.FFI.Core    ( dist-ghc/build/LLVM/FFI/Core.hs, dist-ghc/build/LLVM/FFI/Core.o )
> [17 of 24] Compiling LLVM.FFI.BitReader ( dist-ghc/build/LLVM/FFI/BitReader.hs, dist-ghc/build/LLVM/FFI/BitReader.o )
> [18 of 24] Compiling LLVM.FFI.BitWriter ( dist-ghc/build/LLVM/FFI/BitWriter.hs, dist-ghc/build/LLVM/FFI/BitWriter.o )
> [19 of 24] Compiling LLVM.FFI.Target  ( dist-ghc/build/LLVM/FFI/Target.hs, dist-ghc/build/LLVM/FFI/Target.o )
> [20 of 24] Compiling LLVM.FFI.ExecutionEngine ( dist-ghc/build/LLVM/FFI/ExecutionEngine.hs, dist-ghc/build/LLVM/FFI/ExecutionEngine.o )
> [21 of 24] Compiling LLVM.FFI.Support ( dist-ghc/build/LLVM/FFI/Support.hs, dist-ghc/build/LLVM/FFI/Support.o )
> [22 of 24] Compiling LLVM.FFI.Transforms.IPO ( dist-ghc/build/LLVM/FFI/Transforms/IPO.hs, dist-ghc/build/LLVM/FFI/Transforms/IPO.o )
> [23 of 24] Compiling LLVM.FFI.Transforms.Scalar ( dist-ghc/build/LLVM/FFI/Transforms/Scalar.hs, dist-ghc/build/LLVM/FFI/Transforms/Scalar.o )
> [24 of 24] Compiling LLVM.FFI.Analysis ( dist-ghc/build/LLVM/FFI/Analysis.hs, dist-ghc/build/LLVM/FFI/Analysis.o )
> [ 1 of 24] Compiling LLVM.Target.XCore ( LLVM/Target/XCore.hs, dist-ghc/build/LLVM/Target/XCore.p_o )
> [ 2 of 24] Compiling LLVM.Target.SystemZ ( LLVM/Target/SystemZ.hs, dist-ghc/build/LLVM/Target/SystemZ.p_o )
> [ 3 of 24] Compiling LLVM.Target.Sparc ( LLVM/Target/Sparc.hs, dist-ghc/build/LLVM/Target/Sparc.p_o )
> [ 4 of 24] Compiling LLVM.Target.PowerPC ( LLVM/Target/PowerPC.hs, dist-ghc/build/LLVM/Target/PowerPC.p_o )
> [ 5 of 24] Compiling LLVM.Target.PIC16 ( LLVM/Target/PIC16.hs, dist-ghc/build/LLVM/Target/PIC16.p_o )
> [ 6 of 24] Compiling LLVM.Target.Mips ( LLVM/Target/Mips.hs, dist-ghc/build/LLVM/Target/Mips.p_o )
> [ 7 of 24] Compiling LLVM.Target.MSP430 ( LLVM/Target/MSP430.hs, dist-ghc/build/LLVM/Target/MSP430.p_o )
> [ 8 of 24] Compiling LLVM.Target.CppBackend ( LLVM/Target/CppBackend.hs, dist-ghc/build/LLVM/Target/CppBackend.p_o )
> [ 9 of 24] Compiling LLVM.Target.CellSPU ( LLVM/Target/CellSPU.hs, dist-ghc/build/LLVM/Target/CellSPU.p_o )
> [10 of 24] Compiling LLVM.Target.CBackend ( LLVM/Target/CBackend.hs, dist-ghc/build/LLVM/Target/CBackend.p_o )
> [11 of 24] Compiling LLVM.Target.Blackfin ( LLVM/Target/Blackfin.hs, dist-ghc/build/LLVM/Target/Blackfin.p_o )
> [12 of 24] Compiling LLVM.Target.Alpha ( LLVM/Target/Alpha.hs, dist-ghc/build/LLVM/Target/Alpha.p_o )
> [13 of 24] Compiling LLVM.Target.ARM  ( LLVM/Target/ARM.hs, dist-ghc/build/LLVM/Target/ARM.p_o )
> [14 of 24] Compiling LLVM.Target.X86  ( LLVM/Target/X86.hs, dist-ghc/build/LLVM/Target/X86.p_o )
> [15 of 24] Compiling LLVM.Target.Native ( LLVM/Target/Native.hs, dist-ghc/build/LLVM/Target/Native.p_o )
> 
> LLVM/Target/Native.hs:10:1:
>     Warning: The import of `LLVM.Target.X86' is redundant
>                except perhaps to import instances from `LLVM.Target.X86'
>              To import instances alone, use: import LLVM.Target.X86()
> [16 of 24] Compiling LLVM.FFI.Core    ( dist-ghc/build/LLVM/FFI/Core.hs, dist-ghc/build/LLVM/FFI/Core.p_o )
> [17 of 24] Compiling LLVM.FFI.BitReader ( dist-ghc/build/LLVM/FFI/BitReader.hs, dist-ghc/build/LLVM/FFI/BitReader.p_o )
> [18 of 24] Compiling LLVM.FFI.BitWriter ( dist-ghc/build/LLVM/FFI/BitWriter.hs, dist-ghc/build/LLVM/FFI/BitWriter.p_o )
> [19 of 24] Compiling LLVM.FFI.Target  ( dist-ghc/build/LLVM/FFI/Target.hs, dist-ghc/build/LLVM/FFI/Target.p_o )
> [20 of 24] Compiling LLVM.FFI.ExecutionEngine ( dist-ghc/build/LLVM/FFI/ExecutionEngine.hs, dist-ghc/build/LLVM/FFI/ExecutionEngine.p_o )
> [21 of 24] Compiling LLVM.FFI.Support ( dist-ghc/build/LLVM/FFI/Support.hs, dist-ghc/build/LLVM/FFI/Support.p_o )
> [22 of 24] Compiling LLVM.FFI.Transforms.IPO ( dist-ghc/build/LLVM/FFI/Transforms/IPO.hs, dist-ghc/build/LLVM/FFI/Transforms/IPO.p_o )
> [23 of 24] Compiling LLVM.FFI.Transforms.Scalar ( dist-ghc/build/LLVM/FFI/Transforms/Scalar.hs, dist-ghc/build/LLVM/FFI/Transforms/Scalar.p_o )
> [24 of 24] Compiling LLVM.FFI.Analysis ( dist-ghc/build/LLVM/FFI/Analysis.hs, dist-ghc/build/LLVM/FFI/Analysis.p_o )
> cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not for C++ [enabled by default]
> cbits/extra.cpp: In function 'LLVMOpaqueModule* LLVMGetModuleFromAssembly(const char*, unsigned int, char**)':
> 
> cbits/extra.cpp:390:15:
>      error: 'class llvm::SMDiagnostic' has no member named 'Print'
> make: *** [build-ghc-stamp] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/06/24/haskell-llvm-base_3.0.1.0-1_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