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

stack build fails #46

Open
vincent-hui opened this issue Feb 21, 2019 · 2 comments
Open

stack build fails #46

vincent-hui opened this issue Feb 21, 2019 · 2 comments

Comments

@vincent-hui
Copy link

On Ubuntu 18.04, ros melodic, stack build fails. How to make stack build succeed ?

regex-posix-0.95.2: copy/register                                                                           
crypto-api-0.13.2: copy/register                                                    
text-1.2.2.1: copy/register                                     
vector-0.11.0.0: copy/register               
Progress 46/81                 

--  While building package HsOpenSSL-0.11.3.2 using:
      /tmp/stack10478/HsOpenSSL-0.11.3.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/vincent/workspace/roshask/.stack-work/logs/HsOpenSSL-0.11.3.2.log

    [1 of 2] Compiling Main             ( /tmp/stack10478/HsOpenSSL-0.11.3.2/Setup.hs, /tmp/stack10478/HsOpenSSL-0.11.3.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/Main.o )
    [2 of 2] Compiling StackSetupShim   ( /home/vincent/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack10478/HsOpenSSL-0.11.3.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/StackSetupShim.o )
    Linking /tmp/stack10478/HsOpenSSL-0.11.3.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup ...
    Configuring HsOpenSSL-0.11.3.2...
    Building HsOpenSSL-0.11.3.2...
    Preprocessing library HsOpenSSL-0.11.3.2...
    /tmp/stack10478/HsOpenSSL-0.11.3.2/In file included from .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/OpenSSL/EVP/Internal_hsc_make.c:1:0:
    Internal.hsc: In function ‘main’:
    /tmp/stack10478/HsOpenSSL-0.11.3.2/Internal.hsc:115:15: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}’
    /home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’
         hsc_printf("(%ld)", (long) sizeof(t));
                                           ^
    /tmp/stack10478/HsOpenSSL-0.11.3.2/Internal.hsc:126:15: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}’
    /home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’
         hsc_printf("(%ld)", (long) sizeof(t));
                                           ^
    /tmp/stack10478/HsOpenSSL-0.11.3.2/Internal.hsc:236:15: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX {aka struct evp_md_ctx_st}’
    /home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’
         hsc_printf("(%ld)", (long) sizeof(t));
                                           ^
    compiling .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/OpenSSL/EVP/Internal_hsc_make.c failed (exit code 1)
    command was: /usr/bin/gcc -c .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/OpenSSL/EVP/Internal_hsc_make.c -o .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/OpenSSL/EVP/Internal_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 -Icbits -D PTHREAD -DCALLCONV=ccall -I.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/autogen -include .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/autogen/cabal_macros.h -I/home/vincent/.stack/snapshots/x86_64-linux/lts-7.7/8.0.1/lib/x86_64-linux-ghc-8.0.1/network-2.6.3.1-G4Up1CPKbp7DeFsnywOnGG/include -I/home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/unix-2.7.2.0/include -I/home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/time-1.6.0.1/include -I/home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/bytestring-0.10.8.1/include -I/home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/base-4.9.0.0/include -I/home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/integer-gmp-1.0.0.1/include -I/home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/include -I/home/vincent/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/include/
@acowley
Copy link
Owner

acowley commented Feb 21, 2019

I'm afraid I don't know what's happening there. I don't have much time to maintain this project these days, so I may not be able to dig into it very soon.

@vincent-hui
Copy link
Author

I have a workaounrd. Add resolver: lts-8.24 into stack.yaml

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

2 participants