Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,394
    • Issues 4,394
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 373
    • Merge Requests 373
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #16990

Closed
Open
Opened Jul 26, 2019 by Jens Petersen@juhpReporter

ghc-8.8.1 RC1 build no longer detects llc-7.0

Summary

Due to 71aca77c, llvm7.0 is no longer detected on Fedora. I think a change was needed since Debian llvm-7 now ships /usr/bin/llc-7 (compared to Fedora still providing /usr/bin/llc-7.0). The problem is after the above fix I think Debian now detects it's llc-7 correctly but now ghc needs to be patched to detect llc-7.0 on Fedora at least.

BTW It might be better to use Data.Version for LlvmVersion? Then it would be easy to read "7" or "7.0" etc (some distro or system could even have bindir/llc-7.1 or bindir/llc-7.0.1, etc).

(I kind of miss the old --with-llc (and --with-opt) configure options here - were they so bad? 🙂)

Steps to reproduce

Try to configure ghc-8.8.1 RC1 on Fedora ARM (32 or 64 bit) with llvm7.0

Expected behavior

llc-7.0 and opt-7.0 to be detected like for the alpha releases.

Actual behavior

llvm not detected.

Environment

  • GHC version used: 8.4.4

Optional:

  • Operating System: Fedora
  • System Architecture: armv7hl/aarch64

ps I worked around this for now with: https://src.fedoraproject.org/rpms/ghc/blob/694ee07680e4618076b71efa4cc5279984c73e43/f/ghc-8.8-configure-llvm-7.0.patch but we should really detect both llc-7 and llc-7.0 out of the box in my opinion.

I filed a Fedora RFE asking if our llvm7.0 package can provide llc-7 and opt-7 symlinks but there may be other distros shipping llc-7.0. Hopefully in the future Fedora llvm8 package would provide llc-8...

Assignee
Assign to
8.8.1
Milestone
8.8.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#16990