Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Multi-arch support with setup? #303

Open
samip5 opened this issue Sep 29, 2023 · 0 comments
Open

Multi-arch support with setup? #303

samip5 opened this issue Sep 29, 2023 · 0 comments

Comments

@samip5
Copy link

samip5 commented Sep 29, 2023

Should the setup-action work with multi-arch?

Run haskell/actions/setup@v2
  with:
    ghc-version: 8.10.7
    cabal-version: latest
    stack-version: latest
    cabal-update: true
Preparing to setup a Haskell environment
Resolved cabal latest to 3.10.1.0
Preparing ghc environment
Installing ghc version 8.10.7
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup whereis ghc 8.10.7
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup: 1: Syntax error: "(" unexpected
  
  
  Attempting to access tool ghc at location /opt/ghc/8.10.7/bin
  Failed to access tool ghc at location /opt/ghc/8.10.7/bin
  Attempting to access tool ghc at location /home/runner/.ghcup/bin
  Failed to access tool ghc at location /home/runner/.ghcup/bin
  Installing libcurses5 and libtinfo5 using apt-get (for ghc < 8.3)
  /usr/bin/sudo -- sh -c apt-get update && apt-get -y install libncurses5 libtinfo5
  Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
  Get:[2](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:2) http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [119 kB]
  Get:[3](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:3) https://packages.microsoft.com/ubuntu/22.0[4](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:4)/prod jammy InRelease [3611 B]
  Hit:4 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
  Get:[5](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:5) https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd[6](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:6)4 Packages [103 kB]
  Get:6 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [109 kB]
  Get:[7](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:8) http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [110 kB]
  Get:[8](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:9) https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [26.[9](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:10) kB]
  Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages [899 kB]
  Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main Translation-en [227 kB]
  Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 c-n-f Metadata [15.3 kB]
  Get:[12](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:14) http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 Packages [584 kB]
  Get:[13](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:15) http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted Translation-en [146 kB]
  Get:14 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 c-n-f Metadata [380 B]
  Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [897 kB]
  Get:16 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe Translation-en [215 kB]
  Get:17 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 c-n-f Metadata [19.2 kB]
  Get:18 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 Packages [23.5 kB]
  Get:19 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 c-n-f Metadata [260 B]
  Get:20 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [41.4 kB]
  Get:21 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 c-n-f Metadata [388 B]
  Get:22 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [22.7 kB]
  Get:23 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 c-n-f Metadata [576 B]
  Get:24 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 Packages [694 kB]
  Get:25 http://ports.ubuntu.com/ubuntu-ports jammy-security/main Translation-en [169 kB]
  Get:26 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 c-n-f Metadata [11.0 kB]
  Get:27 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 Packages [580 kB]
  Get:28 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted Translation-en [143 kB]
  Get:29 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 c-n-f Metadata [384 B]
  Get:30 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 Packages [699 kB]
  Get:31 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe Translation-en [144 kB]
  Get:32 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 c-n-f Metadata [14.1 kB]
  Get:33 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 Packages [19.7 kB]
  Get:34 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 c-n-f Metadata [232 B]
  Fetched 6038 kB in 3s (2272 kB/s)
  Reading package lists...
  Reading package lists...
  Building dependency tree...
  Reading state information...
  The following NEW packages will be installed:
    libncurses5 libtinfo5
  0 upgraded, 2 newly installed, 0 to remove and 20 not upgraded.
  Need to get 202 kB of archives.
  After this operation, 845 kB of additional disk space will be used.
  Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 libtinfo5 arm64 6.3-2ubuntu0.1 [99.2 kB]
  Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 libncurses5 arm64 6.3-2ubuntu0.1 [103 kB]
  Fetched 202 kB in 0s (730 kB/s)
  Selecting previously unselected package libtinfo5:arm64.
  (Reading database ... 
  (Reading database ... 5%
  (Reading database ... 10%
  (Reading database ... 15%
  (Reading database ... 20%
  (Reading database ... 25%
  (Reading database ... 30%
  (Reading database ... 35%
  (Reading database ... 40%
  (Reading database ... 45%
  (Reading database ... 50%
  (Reading database ... 55%
  (Reading database ... 60%
  (Reading database ... 65%
  (Reading database ... 70%
  (Reading database ... 75%
  (Reading database ... 80%
  (Reading database ... 85%
  (Reading database ... 90%
  (Reading database ... 95%
  (Reading database ... 100%
  (Reading database ... 206445 files and directories currently installed.)
  Preparing to unpack .../libtinfo5_6.3-2ubuntu0.1_arm64.deb ...
  Unpacking libtinfo5:arm64 (6.3-2ubuntu0.1) ...
  Selecting previously unselected package libncurses5:arm64.
  Preparing to unpack .../libncurses5_6.3-2ubuntu0.1_arm64.deb ...
  Unpacking libncurses5:arm64 (6.3-2ubuntu0.1) ...
  Setting up libtinfo5:arm64 (6.3-2ubuntu0.1) ...
  Setting up libncurses5:arm64 (6.3-2ubuntu0.1) ...
  Processing triggers for libc-bin (2.35-0ubuntu3.3) ...
  NEEDRESTART-VER: 3.5
  NEEDRESTART-KCUR: 5.15.0-84-generic
  NEEDRESTART-KEXP: 5.15.0-84-generic
  NEEDRESTART-KSTA: 1
  Attempting to install ghc 8.10.7 using ghcup
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup install ghc 8.10.7
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup: 1: Syntax error: "(" unexpected
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup whereis ghc 8.10.7
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup: 1: Syntax error: "(" unexpected
  
  
  Attempting to access tool ghc at location /opt/ghc/8.10.7/bin
  Failed to access tool ghc at location /opt/ghc/8.10.7/bin
  Attempting to access tool ghc at location /home/runner/.ghcup/bin
  Failed to access tool ghc at location /home/runner/.ghcup/bin
  Attempting to install ghc 8.10.7 using apt-get
  /usr/bin/sudo -- sh -c add-apt-repository -y ppa:hvr/ghc && apt-get update && apt-get -y install ghc-8.10.7
  Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
  Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
  Hit:3 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
  Ign:4 https://ppa.launchpadcontent.net/hvr/ghc/ubuntu jammy InRelease
  Hit:5 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
  Hit:6 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
  Hit:7 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
  Err:8 https://ppa.launchpadcontent.net/hvr/ghc/ubuntu jammy Release
    404  Not Found [IP: [18](https://github.com/samipsolutions/simplex-chat/actions/runs/6355392988/job/17263414952#step:4:20)5.125.190.52 443]
  Reading package lists...
  E: The repository 'https://ppa.launchpadcontent.net/hvr/ghc/ubuntu jammy Release' does not have a Release file.
  Repository: 'deb https://ppa.launchpadcontent.net/hvr/ghc/ubuntu/ jammy main'
  Description:
  Convenient packages for GHC releases from http://www.haskell.org/ghc/ (plus cabal-install packages) which can be installed side by side for working/testing with multiple/older GHCs and/or with http://travis-ci.org
  
  This PPA usually provides packages for all non-EOL'ed Ubuntu releases
  (packages for EOL-ed Ubuntu LTS releases will be moved into  https://launchpad.net/~hvr/+archive/ubuntu/ghc-eol and eventually removed); see https://wiki.ubuntu.com/Releases for a list of current Ubuntu releases and their EOL status.
  
  GHC is split into 4 packages,
  
   ghc-$VER           (core package, contains ghc and executables such as haddock)
   ghc-$VER-dyn       (contains dynamic libraries for version prior to GHC 7.8)
   ghc-$VER-prof      (contains profiling libs)
   ghc-$VER-htmldocs  (contains generated HTML Haddock output)
  
  The GHC packages install into `/opt/ghc/$VER/` so in order to use them, one way is to bring a particular GHC version into scope by placing the respective `/opt/ghc/$VER/bin` folder early in the PATH environment variable.
  
  There's also a `/opt/ghc/bin` (& `/opt/cabal/bin`) folder which contains version-suffixed symlinks to installed GHC versions for convenient use with cabal (e.g. "cabal new-build -w ghc-7.8.4"), as well as symlinks managed by update-alternatives(1) which can be configured via
  
    sudo update-alternatives --config opt-ghc
    sudo update-alternatives --config opt-cabal
  
  Note that `/opt/ghc/bin` also contains a default symlink for `cabal`, so it's enough to include `/opt/ghc/bin` in your PATH to get access to both `cabal` and `ghc`.
  
  *NEW* You can find packages built specifically for Debian 9 (Stretch) at
  http://downloads.haskell.org/debian/
  
  *NEW* If you're using macOS, you can find a GHC distribution in the same spirit as this PPA over at https://haskell.futurice.com/
  
  *NEW* Packages optimised for Windows Subsystem for Linux (WSL) can be found at https://launchpad.net/~hvr/+archive/ubuntu/ghc-wsl
  
  *NEW* A GHCJS PPA is available at https://launchpad.net/~hvr/+archive/ubuntu/ghcjs
  
  See also https://github.com/hvr/multi-ghc-travis for reporting bugs/issues as well as for more information about this PPA
  More info: https://launchpad.net/~hvr/+archive/ubuntu/ghc
  Adding repository.
  Adding deb entry to /etc/apt/sources.list.d/hvr-ubuntu-ghc-jammy.list
  Adding disabled deb-src entry to /etc/apt/sources.list.d/hvr-ubuntu-ghc-jammy.list
  Adding key to /etc/apt/trusted.gpg.d/hvr-ubuntu-ghc.gpg with fingerprint 063DAB2BDC0B3F9FCEBC378BFF3AEACEF6F88286
  Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
  Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
  Hit:3 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
  Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
  Ign:5 https://ppa.launchpadcontent.net/hvr/ghc/ubuntu jammy InRelease
  Hit:6 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
  Hit:7 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
  Err:8 https://ppa.launchpadcontent.net/hvr/ghc/ubuntu jammy Release
    404  Not Found [IP: 185.125.190.52 443]
  Reading package lists...
  E: The repository 'https://ppa.launchpadcontent.net/hvr/ghc/ubuntu jammy Release' does not have a Release file.
  Reading package lists...
  Building dependency tree...
  Reading state information...
  E: Unable to locate package ghc-8.10.7
  E: Couldn't find any package by glob 'ghc-8.10.7'
  E: Couldn't find any package by regex 'ghc-8.10.7'
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup whereis ghc 8.10.7
  /opt/hostedtoolcache/ghcup/0.1.19.5/arm64/ghcup: 1: Syntax error: "(" unexpected
  
  
  Attempting to access tool ghc at location /opt/ghc/8.10.7/bin
  Failed to access tool ghc at location /opt/ghc/8.10.7/bin
  Attempting to access tool ghc at location /home/runner/.ghcup/bin
  Failed to access tool ghc at location /home/runner/.ghcup/bin
Error: All install methods for ghc 8.10.7 failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant