[GHC] #14502: Build Alpine Linux binary distributions

#14502: Build Alpine Linux binary distributions -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: task | Status: new Priority: normal | Milestone: 8.4.1 Component: Continuous | Version: 8.2.1 Integration | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: 14057 Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- At least three people have come to me asking for Alpine Linux bindists. Given that Alpine is a fair bit different from most other distributions and can be useful in containers, this seems fairly reasonable to me. Terrorjack has some useful-looking automation at https://github.com/TerrorJack/meikyu. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14502 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14502: Build Alpine Linux binary distributions -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Continuous | Version: 8.2.1 Integration | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 14057 | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mitchty): Note, for 8.4.2 or anything using llvm as the backend, you'll need to adjust the llvm-targets like so: https://github.com/alpinelinux/aports/pull/4255/commits/adc976d03f8101300f2f... #diff-8ac9400d01cb6d2dd0f7486ac80d2ec4R103 Basically: sed -i -e 's/unknown-linux-gnueabihf/alpine-linux/g' llvm-targets sed -i -e 's/unknown-linux-gnueabi/alpine-linux/g' llvm-targets sed -i -e 's/unknown-linux-gnu/alpine-linux/g' llvm-targets The llvm triples that are in place for alpine linux are different from the defaults expected. Most other changes for alpine linux have been merged upstream into ghc so the base source is mostly there. I remember asking in the ghc irc channel that depending on the llvm triples should go away entirely. I'd be all for that in this case for 8.6! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14502#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

I remember asking in the ghc irc channel that depending on the llvm
#14502: Build Alpine Linux binary distributions -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Continuous | Version: 8.2.1 Integration | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 14057 | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): triples should go away entirely. I'd be all for that in this case for 8.6! It's not clear to me how to eliminate the dependency entirely. Unfortunately the only way to accomplish this I can see is to use `clang` instead of `llc`, which would get in the way of #11295. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14502#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14502: Build Alpine Linux binary distributions -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Continuous | Version: 8.2.1 Integration | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 14057 | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by terrorjack): Here's a script to build ghc-8.4.3 bindist for x64 Alpine Linux on Circle CI: https://gist.github.com/TerrorJack/c0b847fff0e9f221144c5b61f69f9988. A pre-built bindist is available at https://felis.sapiens.moe/ghc-8.4.3-x86_64-alpine-linux.tar.xz. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14502#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14502: Build Alpine Linux binary distributions -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Continuous | Version: 8.2.1 Integration | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 14057 | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by gidyn): Alpine users tend to be very space-conscience. Could we have a build with just the vanilla libraries, no profiling, shared or docs? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14502#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14502: Build Alpine Linux binary distributions -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Continuous | Version: 8.2.1 Integration | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 14057 | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by gidyn): * cc: gidyn (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14502#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC