elm-lang/elm-platform

Does not work on alpine linux

korczis opened this issue · 3 comments

Can you make elm make working on alpine linux, please?

# ldd /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm
	/lib64/ld-linux-x86-64.so.2 (0x55d84ef8a000)
	librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x55d84ef8a000)
	libutil.so.1 => /lib64/ld-linux-x86-64.so.2 (0x55d84ef8a000)
	libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x55d84ef8a000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x55d84ef8a000)
Error loading shared library libgmp.so.10: No such file or directory (needed by /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x55d84ef8a000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x55d84ef8a000)
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_ior_n: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_cmp: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __strncpy_chk: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_divrem_1: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_add: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __fprintf_chk: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_mul_1: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __printf_chk: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_nextprime: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_add_1: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_andn_n: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_mul: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_gcd: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_rshift: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_lshift: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_sizeinbase: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_get_d: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_tdiv_qr: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __vfprintf_chk: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_and_n: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_probab_prime_p: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_sub_1: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_export: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_gcd_1: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_init: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_get_d_2exp: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_powm: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __sprintf_chk: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_xor_n: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_invert: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_clear: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpz_gcdext: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __fdelt_chk: symbol not found
Error relocating /src/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm: __gmpn_sub: symbol not found

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

Have you tried installing libgmp (or package gmp, see https://pkgs.alpinelinux.org/contents?file=&path=&name=gmp&branch=edge&repo=main&arch=armhf) on your system? The error message seems to be indicating that's what you should do.

Instalation of ghc package and gmp helped but I ran into another issue.

elm-lang/elm-make#175