Skip to content

does not build with clang #16

@unhammer

Description

@unhammer

On a fresh Ubuntu 18.04, where I'd only installed make clang libgmp-dev, stack build gave

bloomfilter-2.0.1.0: configure                                
Progress 0/102                  
                                                                    
--  While building package bloomfilter-2.0.1.0 using:
      /home/unhammer/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.18.1.5_ghc-7.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.18.1.5 configure --with-ghc=/home/unhammer/.stack/programs/x86_64-linux/ghc-7.8.4/bin/ghc --with-ghc-pkg=/home/unhammer/.stack/
programs/x86_64-linux/ghc-7.8.4/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/unhammer/.stack/snapshots/x86_64-linux/lts-2.22/7.8.4/pkgdb --package-db=/home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/pkgdb --libdir=/
home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/lib --bindir=/home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/bin --datadir=/home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/share --libexecdir=/
home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/libexec --sysconfdir=/home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/etc --docdir=/home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/doc/bloomfilt
er-2.0.1.0 --htmldir=/home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/doc/bloomfilter-2.0.1.0 --haddockdir=/home/unhammer/src/project/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/doc/bloomfilter-2.0.1.0 --constraint=array==0.5.0.0 --constraint
=base==4.7.0.2 --constraint=bytestring==0.10.4.0 --constraint=deepseq==1.3.0.2                                           
    Process exited with code: ExitFailure 1                                                                        
    Logs have been written to: /home/unhammer/src/project/.stack-work/logs/bloomfilter-2.0.1.0.log
                                                       
    Configuring bloomfilter-2.0.1.0...                                 
    Cabal-simple_mPHDZzAJ_1.18.1.5_ghc-7.8.4: Missing dependency on a foreign
    library:                         
    * Missing (or bad) header file: lookup3.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.      

while it built fine after I installed gcc

I don't mind installing gcc, but maybe the https://hackage.haskell.org/package/bloomfilter should mention that gcc is needed, since the message isn't very helpful and other packages seem to install fine with clang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions