Bug 253367 - devel/hs-cabal-install: fails to build on aarch64
Summary: devel/hs-cabal-install: fails to build on aarch64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-haskell (Nobody)
URL: http://ampere2.nyi.freebsd.org/data/m...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-09 09:13 UTC by Mikael Urankar
Modified: 2021-02-11 18:15 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (haskell)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2021-02-09 09:13:05 UTC
I'll try to fix it

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM 9

<no location info>: error: ghc: could not execute: opt-9.0
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-02-11 16:38:11 UTC
A commit references this bug:

Author: mikael
Date: Thu Feb 11 16:37:42 UTC 2021
New revision: 564963
URL: https://svnweb.freebsd.org/changeset/ports/564963

Log:
  lang/ghc: use CONFIGURE_ENV instead of BINARY_ALIAS on arm

  GHC saves the llvm command name (llc, opt, clang) found at compile time in its
  settings file.
  Using BINARY_ALIAS allows lang/ghc to build but breaks
  ghc ports (devel/hs-cabal-install for example)
  GHC configure script accepts now to define LLC, OPT, CLANG as
  environment variable, switch to it.

  <no location info>: error:
      Warning: Couldn't figure out LLVM version!
               Make sure you have installed LLVM 9

  <no location info>: error: ghc: could not execute: opt-9.0

  PR:		252166, 253367
  Approved by:	portmgr (tier-2 blanket)

Changes:
  head/lang/ghc/Makefile