Opened 13 months ago

Closed 8 months ago

#68469 closed defect (fixed)

ghc: fails to run due to missing symlinks

Reported by: MichaelJFischer Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: ghc

Description

The ghc package builds correctly but fails to run because four needed symbolic are missing. The package refers internally to the versions without the "-prebuilt" suffix.

ghci -> ghci-9.6.3
ghci-9.6.3 -> ghci-9.6.3-prebuilt
ghc -> ghc-9.6.3
ghc-9.6.3 -> ghc-9.6.3-prebuilt

Attachments (1)

build_log_2023-10-16.txt.gz (391.5 KB) - added by MichaelJFischer 13 months ago.
Console output from sudo port -v install ghc

Download all attachments as: .zip

Change History (12)

comment:1 Changed 13 months ago by reneeotten (Renee Otten)

Keywords: haskell prebuilt removed
Owner: set to essandess
Status: newassigned
Summary: ghc usingghc: fails to run due to missing symlinks

comment:2 Changed 13 months ago by kencu (Ken)

but -- it makes no sense to build ghc if it was just going to use the prebuilt ghc anyway....

and -- this port never needed this before, all these years.

So ... something is wrong with this here. Can you give some background to why you feel this is needed?

comment:3 Changed 13 months ago by MichaelJFischer

When I migrated from Ventura to Sonoma a few weeks ago, ghc failed to build, so I removed it from myports.txt and continued the migration without ghc.

I needed ghc a couple of days ago, so I did a port install ghc. It ran for a very long time but eventually completed, and there were the "prebuilt" versions of ghc in /opt/local/bin, without all of the needed links. Once I manually installed the links, it worked fine.

Probably I should have done some sort of a cleanup after the build failure?

comment:4 Changed 13 months ago by kencu (Ken)

the ghc port has been failing to build for a while now due to an issue building a pdf manual…the prebuilt ghc should install in a couple of minutes at most.

I suspect the prebuilt installed but the real ghc did not, due to the build failure.

what does this show you?

port -v installed | grep ghc

comment:5 Changed 13 months ago by essandess (Steve Smith)

This latest commit apparently fails to address the issue: https://github.com/macports/macports-ports/commit/99d3a312a2d08a212782999e0db71afa79e350ad#diff-c7968cfa7dd4491c4f36b05d17922247eee14b20e9a0abd8e2a05879af62c173

I recommend either rolling back to the latest version of ghc that builds and waiting for upstream to address this issue, or commenting out the Portfile commands that build the documentation.

comment:6 Changed 13 months ago by kencu (Ken)

the latest commit fixed the ghc 9.6.3 build on almost every system, according to the buildbot

one or two fails to sort out.

Last edited 13 months ago by kencu (Ken) (previous) (diff)

comment:7 in reply to:  4 Changed 13 months ago by MichaelJFischer

Replying to kencu:

the ghc port has been failing to build for a while now due to an issue building a pdf manual…the prebuilt ghc should install in a couple of minutes at most.

I suspect the prebuilt installed but the real ghc did not, due to the build failure.

what does this show you?

port -v installed | grep ghc
  ghc-prebuilt @9.6.2_0 requested_variants='' platform='darwin 23' archs='x86_64' date='2023-10-01T00:20:16-0400'
  ghc-prebuilt @9.6.3_0 (active) requested_variants='' platform='darwin 23' archs='x86_64' date='2023-10-13T17:19:14-0400'

comment:8 Changed 13 months ago by kencu (Ken)

so what you might do here is to

  1. remove your symlinks
  2. sudo port -f uninstall ghc-prebuilt
  3. sudo port -v install ghc

and see where that gets you... it should work out.

comment:9 Changed 13 months ago by kencu (Ken)

make sure your ports are fully up to date -- ghc was fixed only 2 days ago

sudo port selfupdate

Last edited 13 months ago by kencu (Ken) (previous) (diff)

Changed 13 months ago by MichaelJFischer

Attachment: build_log_2023-10-16.txt.gz added

Console output from sudo port -v install ghc

comment:10 Changed 13 months ago by MichaelJFischer

Followed Ken's suggestions. Build succeeded. Symbolic links were created. ghc and ghci both work now!

Thank you, Ken, for your help at resolving this issue.

comment:11 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.