Skip to content

Building sample project fails with -fPIC linker error on Arch Linux #4497

@Janfel

Description

@Janfel

Steps to reproduce

For example:

  1. Install stack with yay -S stack-static.
  2. Run command stack new sample.
  3. Run command cd sample.
  4. Run command stack build.

Expected

The demo builds without errors.

Actual

The build failed with this output filled with -fPIC errors.

Stack version

$ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1

Method of installation

I used the stack-static AUR Package, which does nothing more than copying the official binary into an Arch Linux package, as seen in it's PKGBUILD.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions