cannot upgrade stack

Hello, I'm attempting to upgrade stack on a FreeBSD 11.1 system but it fails: stack upgrade Current Stack version: 1.5.1, available download version: 1.7.1 Newer version detected, downloading Querying for archive location for platform: freebsd-i386-static Querying for archive location for platform: freebsd-i386 Exception occured when trying to perform binary upgrade: Unable to find binary Stack archive for platforms: freebsd-i386-static freebsd-i386 Falling back to source upgrade Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/ Downloading timestamp No updates to your package list were found Updating package index Hackage (mirrored at https://s3.amazonaws.com/hackage.fpcomplete.com/) ...Could not parse '/tmp/stack-upgrade2294/stack-1.7.1/stack.yaml': Aeson exception: Error in $['extra-deps'][0]: failed to parse field 'extra-deps': (Invalid package identifier: "rio-0.1.1.0@rev:0","rio-0.1.1.0@rev:0") See http://docs.haskellstack.org/en/stable/yaml_configuration/ If it matters, I'm using ghc-8.0.2_3. Thanks for any help, Roger

The problem here is that:
* You're on an OS that doesn't have prebuilt binaries (FreeBSD 32-bit)
* The version you're using (1.5.1) isn't compatible with the newer syntax
used in the stack.yaml file for 1.7.1[1]
I'll need to upgrade in two steps: first upgrade to 1.6.1, then to 1.7.1
using that Stack. Something like this should work:
$ git clone https://github.com/commercialhaskell/stack --branch v1.6.1
$ cd stack
$ stack install
# make sure you're using the new stack 1.6.1 binary
$ stack upgrade
# or
$ git checkout v1.7.1
$ stack install
HTH,
Michael
[1] Even if you removed that new syntax, you'll end up running into the
cassava flag bug, so no shortcuts here
On Wed, Jul 18, 2018 at 3:13 PM Roger Mason
Hello,
I'm attempting to upgrade stack on a FreeBSD 11.1 system but it fails:
stack upgrade Current Stack version: 1.5.1, available download version: 1.7.1 Newer version detected, downloading Querying for archive location for platform: freebsd-i386-static Querying for archive location for platform: freebsd-i386 Exception occured when trying to perform binary upgrade: Unable to find binary Stack archive for platforms: freebsd-i386-static freebsd-i386 Falling back to source upgrade Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
No updates to your package list were found
Updating package index Hackage (mirrored at https://s3.amazonaws.com/hackage.fpcomplete.com/) ...Could not parse '/tmp/stack-upgrade2294/stack-1.7.1/stack.yaml': Aeson exception: Error in $['extra-deps'][0]: failed to parse field 'extra-deps': (Invalid package identifier: "rio-0.1.1.0@rev:0","rio-0.1.1.0@rev:0") See http://docs.haskellstack.org/en/stable/yaml_configuration/
If it matters, I'm using ghc-8.0.2_3.
Thanks for any help, Roger _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

Hello,
Michael Snoyman
The problem here is that:
* You're on an OS that doesn't have prebuilt binaries (FreeBSD 32-bit) * The version you're using (1.5.1) isn't compatible with the newer syntax used in the stack.yaml file for 1.7.1[1]
I'll need to upgrade in two steps: first upgrade to 1.6.1, then to 1.7.1 using that Stack. Something like this should work:
$ git clone https://github.com/commercialhaskell/stack --branch v1.6.1 $ cd stack $ stack install # make sure you're using the new stack 1.6.1 binary
Everything works to here. stack --version Version 1.6.1, Git revision f25811329bbc40b0c21053a8160c56f923e1201b (5435 commits) i386 hpack-0.20.0
$ stack upgrade
stack upgrade zsh: bus error (core dumped) stack upgrade
# or $ git checkout v1.7.1 $ stack install
Hoping for a miracle: stack install Downloading lts-11.6 build plan ...zsh: bus error (core dumped) stack install oops! No miracle. Thanks for helping. Roger

On Wed, Jul 18, 2018 at 5:06 PM, Roger Mason
Hello,
Michael Snoyman
writes: The problem here is that:
* You're on an OS that doesn't have prebuilt binaries (FreeBSD 32-bit) * The version you're using (1.5.1) isn't compatible with the newer syntax used in the stack.yaml file for 1.7.1[1]
I'll need to upgrade in two steps: first upgrade to 1.6.1, then to 1.7.1 using that Stack. Something like this should work:
$ git clone https://github.com/commercialhaskell/stack --branch v1.6.1 $ cd stack $ stack install # make sure you're using the new stack 1.6.1 binary
Everything works to here. stack --version Version 1.6.1, Git revision f25811329bbc40b0c21053a8160c56f923e1201b (5435 commits) i386 hpack-0.20.0
$ stack upgrade
stack upgrade zsh: bus error (core dumped) stack upgrade
# or $ git checkout v1.7.1 $ stack install
Hoping for a miracle:
stack install Downloading lts-11.6 build plan ...zsh: bus error (core dumped) stack install
oops! No miracle.
Thanks for helping.
Why don't you use FreeBSD ports/packages to install stack?
Roger _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

Hello, Gleb Popov <6yearold@gmail.com> writes:
Why don't you use FreeBSD ports/packages to install stack?
Well, I only just saw yesterday that Stack 1.7.1 is now in the ports tree, following an update. The version I built before that (1.5.1) was too old. Thanks for the suggestion! Roger

Sorry, I'm not sure what's going on there. Are you able to build other
executables with Stack 1.5.1 that run successfully?
On Wed, Jul 18, 2018 at 5:06 PM Roger Mason
Hello,
Michael Snoyman
writes: The problem here is that:
* You're on an OS that doesn't have prebuilt binaries (FreeBSD 32-bit) * The version you're using (1.5.1) isn't compatible with the newer syntax used in the stack.yaml file for 1.7.1[1]
I'll need to upgrade in two steps: first upgrade to 1.6.1, then to 1.7.1 using that Stack. Something like this should work:
$ git clone https://github.com/commercialhaskell/stack --branch v1.6.1 $ cd stack $ stack install # make sure you're using the new stack 1.6.1 binary
Everything works to here. stack --version Version 1.6.1, Git revision f25811329bbc40b0c21053a8160c56f923e1201b (5435 commits) i386 hpack-0.20.0
$ stack upgrade
stack upgrade zsh: bus error (core dumped) stack upgrade
# or $ git checkout v1.7.1 $ stack install
Hoping for a miracle:
stack install Downloading lts-11.6 build plan ...zsh: bus error (core dumped) stack install
oops! No miracle.
Thanks for helping.
Roger

Hello,
Michael Snoyman
Sorry, I'm not sure what's going on there. Are you able to build other executables with Stack 1.5.1 that run successfully?
I have not tried. However, it looks like 1.7.1 is now in the freeBSD ports tree, as of an update I made yesterday. I will give that a try. Many thanks again for your help. Roger
participants (3)
-
Gleb Popov
-
Michael Snoyman
-
Roger Mason