Discussion:
[Agda] problems installing agda master using stack
Martin Stone Davis
2017-12-04 02:02:54 UTC
Permalink
I am trying and failing to build the latest agda (on the master branch).
My platform is parabola, which is an arch clone. A while back, I had
been able to use cabal install, but when that went south for some
reason, I hit upon using stack. Unfortunately, that also is not working
for me anymore. Hopefully, this is the right place to report this, or
you can direct me to the proper authorities.

I'm using stack Version 1.6.0.20171022 x86_64

Here's the command I am using for stack:

stack --stack-yaml stack-8.0.2.yaml install
/tmp/stack31341/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/setup/setup
--builddir=.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0
configure
--with-ghc=/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/bin/ghc
--with-ghc-pkg=/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/bin/ghc-pkg
--user --package-db=clear --package-db=global
--package-db=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/pkgdb
--libdir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/lib
--bindir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/bin
--datadir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/share
--libexecdir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/libexec
--sysconfdir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/etc
--docdir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/doc/old-time-1.1.0.3
--htmldir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/doc/old-time-1.1.0.3
--haddockdir=/home/martin/.stack/snapshots/x86_64-linux-tinfo6-nopie/lts-9.12/8.0.2/doc/old-time-1.1.0.3
--dependency=base=base-4.9.1.0
--dependency=old-locale=old-locale-1.0.0.7-KGBP1BSKxH5GCm0LnZP04j
    Process exited with code: ExitFailure 1
/home/martin/agda/.stack-work/logs/old-time-1.1.0.3.log
    [1 of 2] Compiling Main             (
/tmp/stack31341/old-time-1.1.0.3/Setup.hs,
/tmp/stack31341/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/setup/Main.o
)
    [2 of 2] Compiling StackSetupShim   (
/home/martin/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs,
/tmp/stack31341/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/setup/StackSetupShim.o
)
    Linking
/tmp/stack31341/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/setup/setup
...
    Configuring old-time-1.1.0.3...
    configure: WARNING: unrecognized options: --with-compiler
    checking for gcc... /usr/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... configure: error: in
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
Andrés Sicard-Ramírez
2017-12-04 11:23:44 UTC
Permalink
On 3 December 2017 at 21:02, Martin Stone Davis
Post by Martin Stone Davis
I'm using stack Version 1.6.0.20171022 x86_64
stack --stack-yaml stack-8.0.2.yaml install
I'm not familiar with stack, but Travis and I couldn't reproduce using

$ stack --version
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e
(4861 commits) x86_64 hpack-0.17.1

Could you reproduce the problem using this version of stack?

I'm using my local installed version of GHC with stack, that is, I ran
the following command:

$ stack --stack-yaml stack-8.0.2.yaml --system-ghc install


--
Andrés
La información contenida en este correo electrónico está dirigida únicamente a su destinatario y puede contener información confidencial, material privilegiado o información protegida por derecho de autor. Está prohibida cualquier copia, utilización, indebida retención, modificación, difusión, distribución o reproducción total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elimínelo. La información aquí contenida es responsabilidad exclusiva de su remitente por lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga. The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains.
Andrés Sicard-Ramírez
2017-12-04 12:10:35 UTC
Permalink
Post by Andrés Sicard-Ramírez
On 3 December 2017 at 21:02, Martin Stone Davis
Post by Martin Stone Davis
I'm using stack Version 1.6.0.20171022 x86_64
stack --stack-yaml stack-8.0.2.yaml install
I'm not familiar with stack, but Travis and I couldn't reproduce using
$ stack --version
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e
(4861 commits) x86_64 hpack-0.17.1
Could you reproduce the problem using this version of stack?
I'm using my local installed version of GHC with stack, that is, I ran
$ stack --stack-yaml stack-8.0.2.yaml --system-ghc install
I couldn't reproduce the problem using your version of stack. Googling by

old-time-1.1.0.3: configure: error: cannot run C compiled programs.

I found the same problem on Windows and Arch (Travis and I use Ubuntu).


--
Andrés
La información contenida en este correo electrónico está dirigida únicamente a su destinatario y puede contener información confidencial, material privilegiado o información protegida por derecho de autor. Está prohibida cualquier copia, utilización, indebida retención, modificación, difusión, distribución o reproducción total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elimínelo. La información aquí contenida es responsabilidad exclusiva de su remitente por lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga. The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains.
Martin Stone Davis
2017-12-05 00:15:15 UTC
Permalink
My email program messes me up by defaulting to reply instead of
reply-to-list. Here's the solution I sent to Andrés.



-------- Forwarded Message --------
Subject: Re: [Agda] problems installing agda master using stack
Date: Mon, 4 Dec 2017 07:10:51 -0800
From: Martin Stone Davis <***@gmail.com>
To: Andrés Sicard-Ramírez <***@eafit.edu.co>



Thanks Andrés,

Indeed, it looks like a problem specific to arch and stack. I followed
your search-text suggestion and eventually found the following solution:
I copied `stack-8.0.2.yaml` to `stack-8.0.2-arch.yaml` and added a line
`ghc-build: tinfo6`. Then the following command builds w/o error: `stack
--stack-yaml stack-8.0.2-arch.yaml install`.

For sake of completeness, the full file, `stack-8.0.2-arch.yaml` is here:

```
resolver: lts-9.12
ghc-build: tinfo6

# Local packages, usually specified by relative directory name
packages:
- '.'
```
Post by Andrés Sicard-Ramírez
Post by Andrés Sicard-Ramírez
On 3 December 2017 at 21:02, Martin Stone Davis
Post by Martin Stone Davis
I'm using stack Version 1.6.0.20171022 x86_64
stack --stack-yaml stack-8.0.2.yaml install
I'm not familiar with stack, but Travis and I couldn't reproduce using
$ stack --version
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e
(4861 commits) x86_64 hpack-0.17.1
Could you reproduce the problem using this version of stack?
I'm using my local installed version of GHC with stack, that is, I ran
$ stack --stack-yaml stack-8.0.2.yaml --system-ghc install
I couldn't reproduce the problem using your version of stack. Googling by
old-time-1.1.0.3: configure: error: cannot run C compiled programs.
I found the same problem on Windows and Arch (Travis and I use Ubuntu).
--
Andrés
La información contenida en este correo electrónico estádirigida únicamente a su destinatario y puede contener información confidencial, material privilegiado o información protegida porderecho de autor. Está prohibida cualquier copia, utilización,indebida retención, modificación, difusión, distribución o reproducción total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elimínelo. La información aquí contenida es responsabilidad exclusiva de su remitente porlo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga. The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains.
Loading...