Skip to content

haskell: tls package override is broken on aarch64 #260013

@mpickering

Description

@mpickering

The tls package currently has this override in pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix

  tls = appendConfigureFlags
    (lib.optionals pkgs.stdenv.hostPlatform.isAarch64 [ "--ghc-option=-fllvm" ])
    super.tls;

However this doesn't work because ghc is not wrapped with a suitable llvm installation so when you attempt to build the package you get errors along the lines of:

Building library for tls-1.6.0..

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [11 and 16)

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [11 and 16)

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [11 and 16)

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [11 and 16)

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [11 and 16)

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [11 and 16)

cc @sternenseemann

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions