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 Install failures - CentOS 7 #715

Closed
rbarden opened this Issue Mar 7, 2018 · 17 comments

Comments

Projects
None yet
2 participants
@rbarden

rbarden commented Mar 7, 2018

This happened after multiple attempts with various errors in the same vein at different points.

For the stack version:

[rbarden ~]$ stack --version
Version 1.6.1, Git revision f25811329bbc40b0c21053a8160c56f923e1201b (5435 commits) x86_64 hpack-0.20.0

Output from stack:

[rbarden ~]$ stack install --resolver=nightly hledger-lib-1.5 hledger-1.5
Selected resolver: nightly-2018-03-06
haskeline-0.7.4.2: configure
csv-0.1.2: download
regex-tdfa-1.2.2: download
temporary-1.2.1.1: download
scientific-0.3.5.2: download
blaze-markup-0.8.2.0: download
cpphs-1.20.8: download
haskeline-0.7.4.2: build
csv-0.1.2: configure
csv-0.1.2: build
temporary-1.2.1.1: configure
case-insensitive-1.2.0.10: download
temporary-1.2.1.1: build
blaze-markup-0.8.2.0: configure
csv-0.1.2: copy/register
blaze-markup-0.8.2.0: build
scientific-0.3.5.2: configure
temporary-1.2.1.1: copy/register
scientific-0.3.5.2: build
regex-tdfa-1.2.2: configure
regex-tdfa-1.2.2: build
cpphs-1.20.8: configure
cpphs-1.20.8: build
case-insensitive-1.2.0.10: configure
case-insensitive-1.2.0.10: build
case-insensitive-1.2.0.10: copy/register
scientific-0.3.5.2: copy/register
blaze-markup-0.8.2.0: copy/register
cpphs-1.20.8: copy/register
regex-tdfa-1.2.2: copy/register
Progress: 8/29
--  While building custom Setup.hs for package haskeline-0.7.4.2 using:
      /home/rbarden/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/rbarden/.stack/global-project/.stack-work/logs/haskeline-0.7.4.2.log

    Configuring haskeline-0.7.4.2...
    Preprocessing library for haskeline-0.7.4.2..
    /bin/ld.gold: error: cannot find -ltinfo
    collect2: error: ld returned 1 exit status
    linking .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Directory_hsc_make.o failed (exit code 1)
    command was: /bin/gcc .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Directory_hsc_make.o .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Directory_hsc_utils.o -o .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Directory_hsc_make -fuse-ld=gold -std=gnu99 -fno-stack-protector -fPIC -fuse-ld=gold -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/transformers-0.5.2.0 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/transformers-0.5.2.0 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/terminfo-0.4.1.0 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/terminfo-0.4.1.0 -ltinfo -L/home/rbarden/.stack/snapshots/x86_64-linux/nightly-2018-03-06/8.2.2/lib/x86_64-linux-ghc-8.2.2/stm-2.4.5.0-15FdumhhnVEKazIoQZDzp1 -Wl,-R,/home/rbarden/.stack/snapshots/x86_64-linux/nightly-2018-03-06/8.2.2/lib/x86_64-linux-ghc-8.2.2/stm-2.4.5.0-15FdumhhnVEKazIoQZDzp1 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/process-1.6.1.0 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/process-1.6.1.0 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/directory-1.3.0.2 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/directory-1.3.0.2 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/unix-2.7.2.2 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/unix-2.7.2.2 -lrt -lutil -ldl -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/filepath-1.4.1.2 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/filepath-1.4.1.2 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/time-1.8.0.2 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/time-1.8.0.2 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/containers-0.5.10.2 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/containers-0.5.10.2 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/bytestring-0.10.8.2 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/bytestring-0.10.8.2 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/deepseq-1.4.3.0 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/deepseq-1.4.3.0 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/array-0.5.2.0 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/array-0.5.2.0 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/base-4.10.1.0 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/base-4.10.1.0 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/integer-gmp-1.0.1.0 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/integer-gmp-1.0.1.0 -lgmp -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/ghc-prim-0.5.1.1 -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/ghc-prim-0.5.1.1 -L/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/rts -Wl,-R,/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/rts -lm -lrt -ldl
@rbarden

This comment has been minimized.

rbarden commented Mar 7, 2018

This is the error when installing from the git repo:

[rbarden ~]$ git clone https://github.com/simonmichael/hledger
Cloning into 'hledger'...
remote: Counting objects: 38564, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 38564 (delta 9), reused 14 (delta 5), pack-reused 38542
Receiving objects: 100% (38564/38564), 69.60 MiB | 6.70 MiB/s, done.
Resolving deltas: 100% (26795/26795), done.
[rbarden ~]$ cd hledger
[rbarden hledger]$ stack install
Cloning 5d5b851e77368071b5727cd366af9c6ecd288add from https://github.com/joelburget/easytest.git
Cloning into '/home/rbarden/hledger/.stack-work/downloaded/vlXD-uts4UR6'...
remote: Counting objects: 161, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 161 (delta 9), reused 21 (delta 5), pack-reused 131
Receiving objects: 100% (161/161), 53.94 KiB | 0 bytes/s, done.
Resolving deltas: 100% (71/71), done.
data-default-instances-old-locale-0.0.1: using precompiled package
old-time-1.1.0.3: using precompiled package
parser-combinators-0.4.0: using precompiled package
prelude-extras-0.4.0.3: using precompiled package
basement-0.0.4: configure
random-1.1: using precompiled package
pem-0.2.2: download
control-monad-free-0.6.1: using precompiled package
pretty-show-1.6.15: download
primitive-0.6.2.0: download
basement-0.0.4: build
network-2.6.3.2: configure
reflection-2.1.2: download
network-2.6.3.2: build
data-default-0.7.1.1: configure
data-default-0.7.1.1: build
pem-0.2.2: configure
data-default-0.7.1.1: copy/register
pem-0.2.2: build
regex-base-0.93.2: configure
regex-base-0.93.2: build
primitive-0.6.2.0: configure
pem-0.2.2: copy/register
primitive-0.6.2.0: build
pretty-show-1.6.15: configure
pretty-show-1.6.15: build
reflection-2.1.2: configure
reflection-2.1.2: build
regex-base-0.93.2: copy/register
pretty-show-1.6.15: copy/register
reflection-2.1.2: copy/register
primitive-0.6.2.0: copy/register
Progress: 14/191
--  While building custom Setup.hs for package network-2.6.3.2 using:
      /tmp/stack5021/network-2.6.3.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/rbarden/hledger/.stack-work/logs/network-2.6.3.2.log

    [1 of 2] Compiling Main             ( /tmp/stack5021/network-2.6.3.2/Setup.hs, /tmp/stack5021/network-2.6.3.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/Main.o )
    [2 of 2] Compiling StackSetupShim   ( /home/rbarden/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack5021/network-2.6.3.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/StackSetupShim.o )
    Linking /tmp/stack5021/network-2.6.3.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup ...
    Configuring network-2.6.3.2...
    configure: WARNING: unrecognized options: --with-compiler
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking for gcc... /bin/gcc
    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 /bin/gcc accepts -g... yes
    checking for /bin/gcc option to accept ISO C89... none needed
    checking for an ANSI C-conforming const... yes
    checking how to run the C preprocessor... /bin/gcc -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 fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking for stdlib.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking winsock2.h usability... no
    checking winsock2.h presence... no
    checking for winsock2.h... no
    checking ws2tcpip.h usability... no
    checking ws2tcpip.h presence... no
    checking for ws2tcpip.h... no
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking netinet/tcp.h usability... yes
    checking netinet/tcp.h presence... yes
    checking for netinet/tcp.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking sys/uio.h usability... yes
    checking sys/uio.h presence... yes
    checking for sys/uio.h... yes
    checking sys/un.h usability... yes
    checking sys/un.h presence... yes
    checking for sys/un.h... yes
    checking linux/can.h usability... yes
    checking linux/can.h presence... yes
    checking for linux/can.h... yes
    checking linux/tcp.h usability... yes
    checking linux/tcp.h presence... yes
    checking for linux/tcp.h... yes
    checking net/if.h usability... yes
    checking net/if.h presence... yes
    checking for net/if.h... yes
    checking for readlink... yes
    checking for symlink... yes
    checking for if_nametoindex... yes
    checking for struct msghdr.msg_control... yes
    checking for struct msghdr.msg_accrights... no
    checking for struct sockaddr.sa_len... no
    checking for in_addr_t in netinet/in.h... yes
    checking for SO_PEERCRED and struct ucred in sys/socket.h... no
    checking for getpeereid in unistd.h... checking for getpeereid... no
    checking for _head_libws2_32_a in -lws2_32... no
    checking for getaddrinfo... yes
    checking for gai_strerror... yes
    checking whether AI_ADDRCONFIG is declared... yes
    checking whether AI_ALL is declared... yes
    checking whether AI_NUMERICSERV is declared... yes
    checking whether AI_V4MAPPED is declared... yes
    checking whether IPV6_V6ONLY is declared... yes
    checking whether IPPROTO_IP is declared... yes
    checking whether IPPROTO_TCP is declared... yes
    checking whether IPPROTO_IPV6 is declared... yes
    checking for sendfile in sys/sendfile.h... yes
    checking for sendfile in sys/socket.h... no
    checking for gethostent... yes
    checking for accept4... yes
    configure: creating ./config.status
    config.status: creating network.buildinfo
    config.status: creating include/HsNetworkConfig.h
    configure: WARNING: unrecognized options: --with-compiler
    Preprocessing library for network-2.6.3.2..
    /tmp/stack5021/network-2.6.3.2/In file included from .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Network/Socket_hsc_make.c:1:0:
    Socket.hsc: In function ‘main’:
    /tmp/stack5021/network-2.6.3.2/Socket.hsc:1075:16: error: ‘SOL_SOCKET’ undeclared (first use in this function)
    /home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/template-hsc.h:38:10: note: in definition of macro ‘hsc_const’
         if ((x) < 0)                                      \
              ^
    /tmp/stack5021/network-2.6.3.2/Socket.hsc:1075:16: note: each undeclared identifier is reported only once for each function it appears in
    /home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/template-hsc.h:38:10: note: in definition of macro ‘hsc_const’
         if ((x) < 0)                                      \
              ^
    compiling .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Network/Socket_hsc_make.c failed (exit code 1)
    command was: /bin/gcc -c .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Network/Socket_hsc_make.c -o .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Network/Socket_hsc_make.o -std=gnu99 -fno-stack-protector -std=gnu99 -fno-stack-protector -fPIC -fuse-ld=gold -D__GLASGOW_HASKELL__=802 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iinclude -DCALLCONV=ccall -I.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/autogen -I.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/global-autogen -include .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/autogen/cabal_macros.h -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/unix-2.7.2.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/time-1.8.0.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/bytestring-0.10.8.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/base-4.10.1.0/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/integer-gmp-1.0.1.0/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/include/


--  While building custom Setup.hs for package basement-0.0.4 using:
      /home/rbarden/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/rbarden/hledger/.stack-work/logs/basement-0.0.4.log

    Configuring basement-0.0.4...
    Preprocessing library for basement-0.0.4..
    /tmp/stack5021/basement-0.0.4/In file included from .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Basement/Terminal/Size_hsc_make.c:1:0:
    Size.hsc: In function ‘main’:
    /tmp/stack5021/basement-0.0.4/Size.hsc:134:16: error: ‘TIOCGWINSZ’ undeclared (first use in this function)
    /home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/template-hsc.h:38:10: note: in definition of macro ‘hsc_const’
         if ((x) < 0)                                      \
              ^
    /tmp/stack5021/basement-0.0.4/Size.hsc:134:16: note: each undeclared identifier is reported only once for each function it appears in
    /home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/template-hsc.h:38:10: note: in definition of macro ‘hsc_const’
         if ((x) < 0)                                      \
              ^
    compiling .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Basement/Terminal/Size_hsc_make.c failed (exit code 1)
    command was: /bin/gcc -c .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Basement/Terminal/Size_hsc_make.c -o .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Basement/Terminal/Size_hsc_make.o -std=gnu99 -fno-stack-protector -std=gnu99 -fno-stack-protector -fPIC -fuse-ld=gold -D__GLASGOW_HASKELL__=802 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Icbits -DARCH_IS_LITTLE_ENDIAN -I.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/autogen -I.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/global-autogen -include .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/autogen/cabal_macros.h -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/base-4.10.1.0/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/integer-gmp-1.0.1.0/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/include/
@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

For "cannot find -ltinfo", you probably need to install a terminfo system package. Section 2's "If you get errors due to missing C libraries like curses or terminfo..." message applies here, improvements welcome.

The "SOL_SOCKET undeclared" leads me to this very old issue, which makes me wonder if you have some old version of hsc2hs in PATH. I have:

~/src/hledger$ hsc2hs --version
hsc2hs version 0.68
~/src/hledger$ stack exec -- hsc2hs --version
hsc2hs version 0.68.2

The "TIOCGWINSZ undeclared" smells similar. I would double check for leftovers of old haskell installations in $PATH.

@rbarden

This comment has been minimized.

rbarden commented Mar 7, 2018

My versions:

[rbarden ~]$ hsc2hs --version
hsc2hs version 0.68.2
[rbarden ~]$ stack exec -- hsc2hs --version
hsc2hs version 0.68.2

I'm new to haskell so I'm not sure what to look for.

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

I'm not finding definite solutions for these "undeclared" issues. Perhaps it's best to pursue these with the packages in question, network and basement, filing issues in their bugtrackers if need be. You should be able to reproduce by eg stack install network-2.6.3.2 and stack install basement-0.0.4. Perhaps worth trying these installs with cabal as well.

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

Possibly installing the missing terminfo package will resolve the TIOCGWINSZ issue as well ?

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

To fix the -ltinfo error, it might be:

$ sudo yum install ncurses-libs
$ stack install haskeline-0.7.4.2

If that doesn't help, try

$ sudo yum install ncurses-devel

(and please let me know which one fixed it.)

@rbarden

This comment has been minimized.

rbarden commented Mar 7, 2018

Both are already installed. I tried -devel last night and it didn't work.
Package ncurses-libs-5.9-14.20130511.el7_4.x86_64 already installed and latest version
Package ncurses-devel-5.9-14.20130511.el7_4.x86_64 already installed and latest version

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

I have set up a centos VM and will do some testing.

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

I successfully used hledger-install.sh on a new centos 7 VM to install hledger and hledger-ui (so far). yum install ncurses-devel does fix the haskeline -ltinfo error.

@simonmichael simonmichael added the docs label Mar 7, 2018

simonmichael added a commit that referenced this issue Mar 7, 2018

@rbarden

This comment has been minimized.

rbarden commented Mar 7, 2018

I'm still getting the following error on a stack install, same command as original issue post, and using hledger-install.sh:

--  While building custom Setup.hs for package haskeline-0.7.4.2 using:
      /home/rbarden/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/rbarden/.stack/global-project/.stack-work/logs/haskeline-0.7.4.2.log

    Configuring haskeline-0.7.4.2...
    Preprocessing library for haskeline-0.7.4.2..
    /tmp/stack16608/haskeline-0.7.4.2/In file included from .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Backend/Posix_hsc_make.c:1:0:
    Posix.hsc: In function ‘main’:
    /tmp/stack16608/haskeline-0.7.4.2/Posix.hsc:70:16: error: ‘TIOCGWINSZ’ undeclared (first use in this function)
    /home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/template-hsc.h:38:10: note: in definition of macro ‘hsc_const’
         if ((x) < 0)                                      \
              ^
    /tmp/stack16608/haskeline-0.7.4.2/Posix.hsc:70:16: note: each undeclared identifier is reported only once for each function it appears in
    /home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/template-hsc.h:38:10: note: in definition of macro ‘hsc_const’
         if ((x) < 0)                                      \
              ^
    compiling .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Backend/Posix_hsc_make.c failed (exit code 1)
    command was: /bin/gcc -c .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Backend/Posix_hsc_make.c -o .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/System/Console/Haskeline/Backend/Posix_hsc_make.o -std=gnu99 -fno-stack-protector -std=gnu99 -fno-stack-protector -fPIC -fuse-ld=gold -D__GLASGOW_HASKELL__=802 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iincludes -DTERMINFO -I.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/autogen -I.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/global-autogen -include .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/autogen/cabal_macros.h -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/process-1.6.1.0/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/directory-1.3.0.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/unix-2.7.2.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/time-1.8.0.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/bytestring-0.10.8.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/base-4.10.1.0/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/integer-gmp-1.0.1.0/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/include -I/home/rbarden/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/include/
@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

For the record: I also needed to install zlib-devel for hledger-web.

And libstdc++-devel, presumably, for hledger-api. But I am still having trouble with this one: https://hastebin.com/vekokigeye.swift

I've made this clearer on the download page.

@rbarden: it looks like you're getting a little further with haskeline now. I don't get this TIOCGWINSZ error. My ncurses libs look pretty similar to yours:

# yum list installed ncurses*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com
Installed Packages
ncurses.x86_64                                                          5.9-14.20130511.el7_4                                                     @updates
ncurses-base.noarch                                                     5.9-14.20130511.el7_4                                                     @updates
ncurses-devel.x86_64                                                    5.9-14.20130511.el7_4                                                     @updates
ncurses-libs.x86_64                                                     5.9-14.20130511.el7_4                                                     @updates

It's time to try the haskeline bug tracker, the centos haskell packaging group, #centos or #haskell I think.

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 7, 2018

Ah, good: judah/haskeline#79.

@rbarden

This comment has been minimized.

rbarden commented Mar 7, 2018

I'll wait to see if haskeline has any answers.

@rbarden

This comment has been minimized.

rbarden commented Mar 10, 2018

See #714

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 10, 2018

@rbarden has the hledger-install script successfully installed everything at this point ? I wasn't able to get hledger-iadd installing, though I think I installed the required libstdc++-devel.

@simonmichael simonmichael changed the title from Stack Install failure - CentOS 7 to Stack Install failures - CentOS 7 Mar 10, 2018

@rbarden

This comment has been minimized.

rbarden commented Mar 10, 2018

It gave no errors on install for anything. hledger-iadd seems to work. I don't have any journal yet so I can't really test it. If there were a sample journal somewhere, I'll take a look, but at this point, I won't be able to get into it for a few days at least.

@simonmichael

This comment has been minimized.

Owner

simonmichael commented Mar 10, 2018

I expect it's working. I'm just going assume "Centos is fine" for now. Thanks for the troubleshooting.

simonmichael added a commit that referenced this issue Mar 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment