Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not build with clang #16

Open
unhammer opened this issue Jan 21, 2019 · 0 comments
Open

does not build with clang #16

unhammer opened this issue Jan 21, 2019 · 0 comments

Comments

@unhammer
Copy link

unhammer commented Jan 21, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant