Code Monkey home page Code Monkey logo

asdf-haskell's Introduction

asdf-haskell

help maintain this lib

Haskell plugin for asdf version manager

Install

asdf plugin-add haskell https://github.com/vic/asdf-haskell.git

Use

This plugin will create a local Stack installation (inside asdf-haskell stack/ directory) to manage GHC versions. So you dont need to have already installed stack.

After installation, stack, ghc, ghci, and runhaskell will be available on your path.

# If you need to install a package that produces binaries
stack install cabal-install

# Be sure to execute reshim afterwards to get them in your path
asdf reshim haskell

Check asdf readme for instructions on how to install & manage versions of Haskell.

asdf-haskell's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

asdf-haskell's Issues

Doesn't install latest on M1

For some reason I can't install haskell:

Stack has not been tested with GHC versions above 9.4, and using 9.6.0.20230128, this may fail
Error: [S-9443]
No setup information found for ghc-9.6.0.20230128 on your platform.
This probably means a GHC bindist has not yet been added for OS key 'macosx'.

Fails to obtain GHC version

% asdf install haskell 8.6.3
ghc version:
Installing Haskell 8.6.3 (ghc-)
STACK_ROOT=/Users/patrickoscity/.asdf/installs/haskell/8.6.3/stack
option --compiler: Failed to parse compiler: ghc-

Usage: stack [--help] [--version] [--numeric-version] [--hpack-numeric-version]
             [--docker*] [--nix*] ([--verbosity VERBOSITY] | [-v|--verbose] |
             [--silent]) [--[no-]time-in-log] [--stack-root STACK-ROOT]
             [--work-dir WORK-DIR] [--[no-]system-ghc] [--[no-]install-ghc]
             [--arch ARCH] [--ghc-variant VARIANT] [--ghc-build BUILD]
             [-j|--jobs JOBS] [--extra-include-dirs DIR] [--extra-lib-dirs DIR]
             [--with-gcc PATH-TO-GCC] [--with-hpack HPACK]
             [--[no-]skip-ghc-check] [--[no-]skip-msys] [--local-bin-path DIR]
             [--[no-]modify-code-page] [--[no-]allow-different-user]
             [--[no-]dump-logs] [--resolver RESOLVER] [--compiler COMPILER]
             [--[no-]terminal] [--color WHEN] [--terminal-width INT]
             [--stack-yaml STACK-YAML] COMMAND|FILE

The HTTP response will be gzipped, I assume that was not the case before. I could get it to work for now by adding the --compressed flag to the curl command.

Error when installing cabal-install

I've tried running

stack install cabal-install

But it failed:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for cabal-install-3.2.0.0:
    Cabal-2.4.0.1 from stack configuration does not match ==3.2.*  (latest matching version is 3.2.0.0)
    hackage-security must match >=0.6.0.0 && <0.7, but the stack configuration has no specified version  (latest matching version is 0.6.0.0)
    lukko must match >=0.1 && <0.2, but the stack configuration has no specified version  (latest matching version is 0.1.1.2)
needed since cabal-install is a build target.

Some different approaches to resolving this:

  * Recommended action: try adding the following to your extra-deps in /home/arch/.asdf/installs/haskell/8.6.5/stack/global-project/stack.yaml:

- Cabal-3.2.0.0@sha256:d0d7a1f405f25d0000f5ddef684838bc264842304fd4e7f80ca92b997b710874,27320
- hackage-security-0.6.0.0@sha256:69987d46e7b55fe5f0fc537021c3873c5f6f44a6665d349ee6995fd593df8147,11976
- lukko-0.1.1.2@sha256:c9d3fa30fb6ab2ba16e037586ca79be6e57ec5f00381b6ee5f293400dbdf5515,4485

Plan construction failed.

Adding extra-deps, as the message described, fixed the error.
But is this expected behavior or there's something wrong with my installation?

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

None detected


  • Check this box to trigger a request for Renovate to run again on this repository

Installed stack overrides 'compiler-version' that is set in `stack.yaml` of project

I have attempted to install Miso, which uses GHCJS. (installation instructions; I followed the 'stack' instructions)

Currently, installing GHCJS through asdf-haskell is not possible. However, it will also simply override the configured compiler version that is set in the project's stack.yaml with the one in the .tool-versions.

Since there is no way to override or turn off this behaviour, I had to uninstall asdf-haskell, and manage Haskell-versions outside of asdf.

It would really help if GHCJS and similar compilers were installable through asdf-haskell, and if the warning message that is used when the compiler version of the stack.yaml is present but discarded could be improved.

Duplicate Copies of GHC

Hi Folks,

I apologize if this is either not the right forum for this question, or if the problem is due to user error.

However, I have installed asdf-vm and asdf-haskell, and I have installed ghc-8.6.5 by running asdf install haskell 8.6.5. I believe the install went fine. I went into my ~/.asdf/installs/haskell, and could see the 8.6.5 folder in there. I used stack install hlint and I could see that which hlint point to an asdf shim; and did which stack also pointed to an asdf shim. All of this is to say that asdf-vm and asdf-haskell seemed to have been installed properly.

However, when I go into a project that uses the lts-14.7 (which, in turn, uses ghc 8.6.5), and I run stack test, then the same ghc version is downloaded again into a ~/.stack folder.

Is my configuration wrong? Shouldn't it be using the ghc already in ~/.asdf?

Couldn't match type error when installing cabal-install

When running stack install cabal-install with GHC 9.2.4, the installation fails with:

cabal-install> /tmp/stack-d8f2a9befd3f2b75/cabal-install-3.4.1.0/Distribution/Client/Init/FileCreators.hs:452:59: error:
cabal-install>     • Couldn't match type: [Char]
cabal-install>                      with: Distribution.Utils.Path.SymbolicPath
cabal-install>                              Distribution.Utils.Path.PackageDir
cabal-install>                              Distribution.Utils.Path.SourceDir
cabal-install>       Expected: Maybe
cabal-install>                   [Distribution.Utils.Path.SymbolicPath
cabal-install>                      Distribution.Utils.Path.PackageDir
cabal-install>                      Distribution.Utils.Path.SourceDir]
cabal-install>         Actual: Maybe [String]
cabal-install>     • In the expression: sourceDirs c
cabal-install>       In a case alternative: LibBuild -> sourceDirs c
cabal-install>       In the first argument of ‘maybeToFlag’, namely
cabal-install>         ‘(case buildType of
cabal-install>             LibBuild -> sourceDirs c
cabal-install>             ExecBuild -> applicationDirs c)’
cabal-install>     |
cabal-install> 452 |                                               LibBuild -> sourceDirs c
cabal-install>     |                                                           ^^^^^^^^^^^^
cabal-install>
cabal-install> /tmp/stack-d8f2a9befd3f2b75/cabal-install-3.4.1.0/Distribution/Client/Init/FileCreators.hs:453:60: error:
cabal-install>     • Couldn't match type: [Char]
cabal-install>                      with: Distribution.Utils.Path.SymbolicPath
cabal-install>                              Distribution.Utils.Path.PackageDir
cabal-install>                              Distribution.Utils.Path.SourceDir
cabal-install>       Expected: Maybe
cabal-install>                   [Distribution.Utils.Path.SymbolicPath
cabal-install>                      Distribution.Utils.Path.PackageDir
cabal-install>                      Distribution.Utils.Path.SourceDir]
cabal-install>         Actual: Maybe [String]
cabal-install>     • In the expression: applicationDirs c
cabal-install>       In a case alternative: ExecBuild -> applicationDirs c
cabal-install>       In the first argument of ‘maybeToFlag’, namely
cabal-install>         ‘(case buildType of
cabal-install>             LibBuild -> sourceDirs c
cabal-install>             ExecBuild -> applicationDirs c)’
cabal-install>     |
cabal-install> 453 |                                               ExecBuild -> applicationDirs c))
cabal-install>     |                                                            ^^^^^^^^^^^^^^^^^
cabal-install>
cabal-install> /tmp/stack-d8f2a9befd3f2b75/cabal-install-3.4.1.0/Distribution/Client/Init/FileCreators.hs:610:22: error:
cabal-install>     • Couldn't match type: [Char]
cabal-install>                      with: Distribution.Utils.Path.SymbolicPath
cabal-install>                              Distribution.Utils.Path.PackageDir
cabal-install>                              Distribution.Utils.Path.SourceDir
cabal-install>       Expected: Maybe
cabal-install>                   [Distribution.Utils.Path.SymbolicPath
cabal-install>                      Distribution.Utils.Path.PackageDir
cabal-install>                      Distribution.Utils.Path.SourceDir]
cabal-install>         Actual: Maybe [String]
cabal-install>     • In the first argument of ‘maybeToFlag’, namely ‘(testDirs c)’
cabal-install>       In the third argument of ‘fieldPAla’, namely
cabal-install>         ‘(maybeToFlag (testDirs c))’
cabal-install>       In the expression:
cabal-install>         fieldPAla
cabal-install>           "hs-source-dirs" formatHsSourceDirs (maybeToFlag (testDirs c))
cabal-install>           ["Directories containing source files."] True
cabal-install>     |
cabal-install> 610 |        (maybeToFlag (testDirs c))
cabal-install>     |                      ^^^^^^^^^^

I can't seem to find any information related to this error

On macOS, plugin script cURL calls fail silently

Using the built-in cURL on recent versions of macOS, cURL retrievals from downloads.haskell.org fail silently, which in turn cause the plugin to silently do nothing. This is caused by a bug in cURL where the utility incorrectly handles IPv4 vs IPv6 modes when a host name has both address versions bound (it naively assumes IPv6 and then balks because it provides itself parameters for IPv4).

Explicitly passing --ipv4 to a cURL call avoids the buggy auto-detection behavior. This plugin should do so, to avoid it silently failing for new users.

stack install cabal-install fails

 ❯ stack install cabal-install
[1 of 2] Compiling Main             ( /home/amos/.asdf/installs/haskell/8.6.3/stack/setup-exe-src/setup-mPHDZzAJ.hs, /home/amos/.asdf/installs/haskell/8.6.3/stack/setup-exe-src/setup-mPHDZzAJ.o )

/home/amos/.asdf/installs/haskell/8.6.3/stack/setup-exe-src/setup-mPHDZzAJ.hs:1:1: error:
    Not in scope: 'main'
    Perhaps you meant 'min' (imported from Prelude)

--  While building simple Setup.hs using:
      /home/amos/.asdf/installs/haskell/8.6.3/stack/programs/x86_64-linux/ghc-tinfo6-8.6.3/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.4.0.1 /home/amos/.asdf/installs/haskell/8.6.3/stack/setup-exe-src/setup-mPHDZzAJ.hs /home/amos/.asdf/installs/haskell/8.6.3/stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/amos/.asdf/installs/haskell/8.6.3/stack/setup-exe-cache/x86_64-linux-tinfo6/tmp-Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.3
    Process exited with code: ExitFailure 1

[ 0.000009d 0.000207h 0.012433m 0.746s746 | Mar 03 11:23PM ]

 ❯

[bug] Haskell installation fails

Provide environment information

OS:
Linux localhost 6.4.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 03 Aug 2023 16:02:01 +0000 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-pc-linux-gnu)

BASH VERSION:
5.1.16(1)-release

ASDF VERSION:
v0.12.0-816195d

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/us-er/.asdf
ASDF_DIR=/home/us-er/.znap/repos/asdf-vm/asdf
ASDF_CONFIG_FILE=/home/us-er/.asdfrc

ASDF INSTALLED PLUGINS:
bin                          https://github.com/joe733/asdf-bin.git main 5b5c60b
direnv                       https://github.com/asdf-community/asdf-direnv.git master 04b8873
golang                       https://github.com/kennyp/asdf-golang.git master d8dec15
haskell                      https://github.com/asdf-community/asdf-haskell.git master 6b66231
java                         https://github.com/halcyon/asdf-java.git master 8155559
kotlin                       https://github.com/asdf-community/asdf-kotlin.git master c948f9e
neovim                       https://github.com/richin13/asdf-neovim.git master 0b7b611
nim                          https://github.com/asdf-community/asdf-nim.git main 397c14a
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master 4f8aa3d
pipx                         https://github.com/joe733/asdf-pipx.git main 81cb547
python                       https://github.com/danhper/asdf-python.git master 8505457
rust                         https://github.com/code-lever/asdf-rust.git master 95acf4f
rye                          https://github.com/Azuki-bar/asdf-rye main 1ad4ea5
shellcheck                   https://github.com/luizm/asdf-shellcheck.git master b160a52
shfmt                        https://github.com/luizm/asdf-shfmt.git master a42c5ff
zig                          https://github.com/cheetah/asdf-zig.git master d88f6db

To Reproduce

  1. asdf plugin add haskell
  2. asdf install haskell latest

Describe the Bug

Haskell instillation fails with the following error:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 14.8M  100 14.8M    0     0  2777k      0  0:00:05  0:00:05 --:--:-- 4301k
Installing Haskell 9.8.0.20230727 (ghc-9.8.0.20230727)
STACK_ROOT=/home/us-er/.asdf/installs/haskell/9.8.0.20230727/stack
Writing the configuration file for the implicit global project to:
/home/us-er/.asdf/installs/haskell/9.8.0.20230727/stack/global-project/stack.yaml. Note: You can change the snapshot via
the resolver field there.
Using the latest snapshot lts-21.6.

Warning: Stack has not been tested with GHC versions above 9.6, and using 9.8.0.20230727, this may fail.

Error: [S-9443]
       No setup information found for ghc-9.8.0.20230727 on your platform. This probably means a GHC binary distribution
       has not yet been added for OS key linux64-tinfo6. Supported versions: ghc-7.8.4, ghc-7.10.2, ghc-7.10.3,
       ghc-8.0.1, ghc-8.0.2, ghc-8.2.1, ghc-8.2.2, ghc-8.4.1, ghc-8.4.2, ghc-8.4.3, ghc-8.4.4, ghc-8.6.1, ghc-8.6.2,
       ghc-8.6.3, ghc-8.6.4, ghc-8.6.5, ghc-8.8.1, ghc-8.8.2, ghc-8.8.3, ghc-8.8.4, ghc-8.10.1, ghc-8.10.2, ghc-8.10.3,
       ghc-8.10.4, ghc-8.10.5, ghc-8.10.6, ghc-8.10.7, ghc-9.0.1, ghc-9.0.2, ghc-9.2.1, ghc-9.2.2, ghc-9.2.3, ghc-9.2.4,
       ghc-9.2.5, ghc-9.2.6, ghc-9.2.7, ghc-9.2.8, ghc-9.4.1, ghc-9.4.2, ghc-9.4.3, ghc-9.4.4, ghc-9.4.5, ghc-9.6.1 and
       ghc-9.6.2.

Expected Behaviour

Haskell installation does not fail.

The intero package is not being used correctly in Emacs

After installing asdf and Haskell, re-shiming and setting it as global (via asdf global haskell 8.0.1), I installed intero via stack install intero (among other packages).
To be on the safe-side I re-shimmed, again, after installing stack.

I then started Emacs, which I have set to use intero as Haskell's backend (through the packages settings) and am getting the following error message:

The process ended. Here is the reason that Emacs gives us:

  exited abnormally with code 1

For troubleshooting purposes, here are the arguments used to launch intero:

  stack ghci ghci --with-ghc intero "--docker-run-args=--interactive=true --tty=false" --no-build --no-load --ghci-options -odir=/home/ohadfk/.asdf/installs/haskell/8.0.1/stack/global-project/.stack-work/intero/intero23512Ud2 --ghci-options -hidir=/home/ohadfk/.asdf/installs/haskell/8.0.1/stack/global-project/.stack-work/intero/intero23512Ud2

Seems any run on Haskell creates a separate folder for intero (maybe for other plugins as well, I don't know if any of them came into use on the boot) with a unique ID (which is appended to the intero name).
I checked those folders... they are empty (as in showing 0 content on ls -a, empty).

(If there's any more info I need to provide let me know).

Ubuntu WSL 16.04 Error Instalation

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
install: cannot stat '/tmp/tmp.TUC2Ol5SoE/*/stack': No such file or directory
Installing Haskell 8.4.2 (ghc-8.4.2)
STACK_ROOT=/home/suganda/.asdf/installs/haskell/8.4.2/stack
/home/suganda/.asdf/installs/haskell/8.4.2/bin/stack: line 2: /home/suganda/.asdf/plugins/haskell/stack/stack: No such file or directory

Install fails

Provide environment information

→ asdf info
OS:
Darwin Big-Mac.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64

SHELL:
zsh 5.9 (x86_64-apple-darwin22.0)

BASH VERSION:
3.2.57(1)-release

ASDF VERSION:
v0.12.0

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/omardiab/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/omardiab/.asdfrc

ASDF INSTALLED PLUGINS:
act                          https://github.com/grimoh/asdf-act.git master 8c5f499
actionlint                   https://github.com/crazy-matt/asdf-actionlint.git main f8df3cf
bun                          https://github.com/cometkim/asdf-bun.git main 51d18b3
cabal                        https://github.com/sestrella/asdf-ghcup.git main 72e85ae
deno                         https://github.com/asdf-community/asdf-deno.git master 87442fe
doppler                      https://github.com/takutakahashi/asdf-doppler.git main b8a3f0c
haskell                      https://github.com/vic/asdf-haskell.git master b614362
hasura-cli                   https://github.com/gurukulkarni/asdf-hasura.git master 7771b92
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master c9e5df4
pnpm                         https://github.com/jonathanmorley/asdf-pnpm.git master ea033db
pulumi                       https://github.com/canha/asdf-pulumi.git master 99d675b
python                       https://github.com/danhper/asdf-python.git master 57a4d72
terraform                    https://github.com/asdf-community/asdf-hashicorp.git master c048526

To Reproduce

run asdf install with .tool-versions containing haskell 9.4.6

Describe the Bug

→ asdf install
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 8039k  100 8039k    0     0  4566k      0  0:00:01  0:00:01 --:--:-- 16.0M
Installing Haskell 9.4.6 (ghc-9.4.6)
STACK_ROOT=/Users/omardiab/.asdf/installs/haskell/9.4.6/stack
Writing the configuration file for the implicit global project to:
/Users/omardiab/.asdf/installs/haskell/9.4.6/stack/global-project/stack.yaml. Note: You can change the snapshot via the
resolver field there.
Using the latest snapshot lts-21.12.
Preparing to install GHC to an isolated location. This will not interfere with any system-level installation.
Downloaded ghc-9.4.6.
configure: error: in `/Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6.temp/ghc-9.4.6-x86_64-apple-darwin':
configure: error: C compiler cannot create executables
See `config.log' for more details
Configuring GHC ...

Error: [S-7441]
       Received ExitFailure 77 when running
       Raw command: /Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6.temp/ghc-9.4.6-x86_64-apple-darwin/configure --prefix=/Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6/
       Run from: /Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6.temp/ghc-9.4.6-x86_64-apple-darwin/

       Error encountered while configuring GHC with
         /Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6.temp/ghc-9.4.6-x86_64-apple-darwin/configure --prefix=/Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6/
         run in
         /Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6.temp/ghc-9.4.6-x86_64-apple-darwin/

       The following directories may now contain files, but won't be used by Stack:
       * /Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6.temp/
       * /Users/omardiab/.asdf/installs/haskell/9.4.6/stack/programs/x86_64-osx/ghc-9.4.6/

       For more information consider rerunning with --verbose flag.

Expected Behaviour

It works

Recompile with -fPIC during asdf install

Hello,

I didn't want to install haskell globally and wanted to try out this plugin. I managed to install the latest version with asdf install haskel 8.1.2. Unfortunately when I wanted to install cabal as specified in the README, I ended up with the following error:

stack install cabal-install

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for array-0.5.1.1:
    base-4.10.0.0 must match >=4.5 && <4.10 (latest applicable is 4.9.1.0)
needed since array-0.5.1.1 is a build target.

In the dependencies for deepseq-1.4.2.0:
    base-4.10.0.0 must match >=4.3 && <4.10 (latest applicable is 4.9.1.0)
needed since deepseq-1.4.2.0 is a build target.

In the dependencies for filepath-1.4.1.1:
    base-4.10.0.0 must match >=4 && <4.10 (latest applicable is 4.9.1.0)
needed since filepath-1.4.1.1 is a build target.

In the dependencies for unix-2.7.2.1:
    base-4.10.0.0 must match >=4.5 && <4.10 (latest applicable is 4.9.1.0)
needed since unix-2.7.2.1 is a build target.

Plan construction failed.

My first thought was to try to install older versions. Unfortunately, none of them work (I've tried around 5 versions 7.0.1, 7.8.1, 7.8.4, 7.10-latest, 8.0.2) and compilation ends up throwing a big pile of errors of the following kind:

...
/usr/bin/ld: /home/maciej/.asdf/installs/haskell/7.8.4/stack/programs/x86_64-linux/ghc-tinfo6-nopie-7.8.4/lib/ghc-7.8.4/rts-1.0/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/maciej/.asdf/installs/haskell/7.8.4/stack/programs/x86_64-linux/ghc-tinfo6-nopie-7.8.4/lib/ghc-7.8.4/rts-1.0/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

Is it an issue connected to my software only? Is there a way I could pass the flag easily? I'm using Antergos OS (x86_64 Linux 4.9.63-1-lts kernel)

If you have any idea how I could make either of these work, that would be great, thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.