Package Details: elm-platform 0.19.0-1

Git Clone URL: https://aur.archlinux.org/elm-platform.git (read-only, click to copy)
Package Base: elm-platform
Description: Bundle of all core development tools for the Elm language.
Upstream URL: http://elm-lang.org
Keywords: elm language programming
Licenses: BSD3
Conflicts: elm-platform-bin, nodejs-elm
Submitter: Luchs
Maintainer: Luchs
Last Packager: Luchs
Votes: 18
Popularity: 0.000000
First Submitted: 2015-11-20 13:48
Last Updated: 2018-08-21 18:55

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

wolfjb commented on 2018-06-08 19:13

The elm-compiler zip file expands as compiler-0.18.0, so line 30 in the PKGBUILD needs be:

ln -sf compiler-${pkgver} elm-compiler

But now I get a link error: /usr/bin/ld: final link failed: Nonrepresentable section on output

Luchs commented on 2018-06-07 22:19

I fixed the elm-compiler hash, which makes it build again with my old stack version (stack-static 1.5.1-1). I currently don't have time to try/fix building with newer stack versions, sorry. Patches welcome, of course.

If you have trouble building this, consider using a binary package: either the official one from NPM, or binary versions of this package by me linked in the comments below.

shevket commented on 2018-05-30 01:56

I had a checksum error for elm-compiler just like daenney, indeed resolved by changing its checksum with 911109bbedf13c5a5c154ff8b60087b43cfd8be5e165df09b4e8f532a9f22fcd but now after this I get the following error in build():

/home/AUR/elm-platform/src/elm-compiler/: getDirectoryContents:openDirStream: does not exist (No such file or directory)

[edit/side note]: building works after finally installing nvm and npm i -g elm

daenney commented on 2018-05-26 00:23

The sha256 checksum for elm-compiler appears incorrect. Downloading the archive from GitHub and running the checksums I get 911109bbedf13c5a5c154ff8b60087b43cfd8be5e165df09b4e8f532a9f22fcd

sanduhrs commented on 2018-03-12 10:46

Same error as pfrenssen, ecognito, seizo and necklace. Attempted the build again as suggested by seizo and it worked.

akovacs commented on 2018-01-01 00:33

Like ikgo, I also encountered linker errors due to a combination of recent Arch changes (ncurses to tinfo migration and enabling position-independent executable for gcc hardening). Furthermore, stack doesn't seem to have a prebuilt Arch Linux bindist for GHC 7.10.3 (required by elm), so I'm using the following workaround at the moment, ymmv:

  1. Add ghc-build: ncurses6 as a top-level entry within ~/.stack/config.yaml (eg: not nested within templates)

  2. stack setup --ghc-build=ncurses6

  3. Edit ~/.stack/programs/x86_64-linux/ghc-ncurses6-7.10.3/lib/ghc-7.10.3/settings to have the following options:

    ("C compiler flags", " -no-pie -fno-stack-protector"),
    ("C compiler link flags", "-no-pie"),
    ("ld flags", "-no-pie"),
    ("target has subsections via symbols", "False"),
    
  4. Confirm you can run ghc 7.10.3:

    stack ghci
    stack setup --resolver lts-6.35
    
  5. Reinstall elm-platform.

  6. Verify elm works: elm-repl

More information:

ikgo commented on 2017-12-27 07:27

I am on 4.14.7-1-ARCH and building is failing with following error:

` ... /usr/bin/ld: /home/foo/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-7.10.3/lib/ghc-7.10.3/rts/libCffi.a(closures.o): relocation R_X86_64_32 against '.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/foo/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-7.10.3/lib/ghc-7.10.3/rts/libCffi.a(ffi64.o): relocation R_X86_64_32S against '.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status

-- While building simple Setup.hs using: /home/foo/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-7.10.3/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-1.22.5.0 /home/foo/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/foo/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/foo/.stack/setup-exe-cache/x86_64-linux-tinfo6-nopie/tmp-Cabal-simple_mPHDZzAJ_1.22.5.0_ghc-7.10.3 Process exited with code: ExitFailure 1 ==> ERROR: A failure occurred in build(). Aborting... :: failed to build elm-platform package(s) `

It does not help attempting to build again.

necklace commented on 2017-11-20 09:05

Same error as pfrenssen, ecognito, and seizo. Attempted the build again as suggested by seizo and it worked.

seizo commented on 2017-10-28 18:54

I had the same error as pfrenssen, but after attempting the build again, it worked.

ecognito commented on 2017-10-28 04:26

I'm getting the same error as pfrenssen.