s390x support

e-desouza created this issue on 2021-04-11 · The issue is replied 1 times

I'm trying to use stack to build Cardano on s390x and while we have ghc and all its dependencies via EPEL on RHEL, there's no docs on how to build stack itself. I can provide a s390x machine for CI/CD etc if required.

Note : The install script as it will install the dependencies/libraries but pull down the x86 based binary, even on s390x so I patched it but now it says the binary doesn't exist.

# determines the the CPU's instruction set
get_isa() {
  if arch | grep -Eq 'armv[78]l?' ; then
    echo arm
  elif arch | grep -q aarch64 ; then
    echo aarch64
  elif arch | grep -q s390x ; then
    echo s390x
  else
    echo x86
  fi
}```
tolysz wrote this answer on 2021-04-12

I would imagine a couple of steps...
once you have ghc working, you can try to build stack using cabal, then once you run it - it will complain about missing arch.
Then you will need to add the correct architecture like here: https://github.com/commercialhaskell/stack/pull/5415/files

More Details About Repo
Owner Name commercialhaskell
Repo Name stack
Full Name commercialhaskell/stack
Language Haskell
Created Date 2015-04-29
Updated Date 2021-11-26
Star Count 3631
Watcher Count 104
Fork Count 815
Issue Count 871

YOU MAY BE INTERESTED

Issue Title State Comments Created Date Updated Date Closed Date
「Comment」https://icyfenix.cn/architecture/architect-history/serverless.html open 7 2020-05-02 2021-11-23 -
后续会考虑添加备案链接功能吗 closed 1 2021-01-19 2021-11-27 2021-02-06
How to protect web api accessible from multiple daemon apps? open 6 2021-03-14 2021-11-25 -
404 page not found closed 1 2021-07-23 2021-11-27 2021-08-15
Run CI Tests on Java 17 open 2 2021-09-21 2021-11-25 -
PyDP Introduction closed 4 2020-07-30 2021-11-17 2021-03-06
`TextMorphForEditView >> keyStroke:` silently shadows a Trunk method open 0 2021-05-07 2021-10-29 -
What are your requirements for a TextArea widget? open 16 2021-04-27 2021-11-16 -
不确定进度指示器的动画不自然 | Indeterminate Preloader is not Material Design-styled at all open 1 2017-07-30 2021-11-06 -
Double-Checked Locking closed 0 2020-03-05 2021-11-03 2021-02-21