Opened 3 years ago

Closed 3 years ago

#62579 closed defect (duplicate)

stack @2.5.1 fails to build: "can't load framework: Cocoa"

Reported by: ednl (Ewoud Dronkert) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur Cc:
Port: stack

Description (last modified by ednl (Ewoud Dronkert))

Latest Big Sur 11.2.3, Xcode 12.4. Package stack is a dependency of pandoc. I did "sudo port clean stack" and tried again, but the same error: "can't load framework: Cocoa (not found) [...] While building package stack-2.5.1". Log file attached from /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/main.log

Attachments (1)

main.log (546.2 KB) - added by ednl (Ewoud Dronkert) 3 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/main.log

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by ednl (Ewoud Dronkert)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/main.log

comment:1 Changed 3 years ago by ednl (Ewoud Dronkert)

Description: modified (diff)

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Keywords: stack cocoa removed
Owner: set to essandess
Status: newassigned
Summary: Package stack fails to build: "can't load framework: Cocoa"stack @2.5.1 fails to build: "can't load framework: Cocoa"

comment:3 Changed 3 years ago by kencu (Ken)

all ghc / stack / cabal software is broken on BigSur at present.

I put a functional workaround in pandoc to install the Catalina version on BigSur until this gets fixed, but it was removed on the last pandoc update.

comment:4 Changed 3 years ago by pmetzger (Perry E. Metzger)

This is happening to me as well, and it is a big pain in the neck because pandoc is critically important.

comment:5 Changed 3 years ago by essandess (Steve Smith)

Known upstream issue: https://github.com/commercialhaskell/stack/issues/5491

To fix it, install the commits from https://github.com/macports/macports-ports/pull/10086, and/or comment on that PR and make the case to @neverpanic and @herbygillot that it should be merged into master until upstream fixes these issues.

comment:6 Changed 3 years ago by essandess (Steve Smith)

Also please make sure that upstream is aware of the demand.

comment:7 Changed 3 years ago by kencu (Ken)

I don't think that neverpanic wants that PR committed.

perhaps you might just put my workaround back into pandoc until such time as upstream releases a properly fixed ghc that works on BigSur?

Version 0, edited 3 years ago by kencu (Ken) (next)

comment:8 in reply to:  7 Changed 3 years ago by essandess (Steve Smith)

Please see https://github.com/macports/macports-ports/pull/10514

I moved pandoc to PG haskell_cabal.

The recent update of cabal works very well, and I suspect that it will work with many cabal/stack projects within MacPorts.

Replying to kencu:

We may be waiting for a new ghc release instead.

Please note that ghc has been updated and working on macOS 11 for a while now, but this was never the issue. For robust, repeatable builds, stack uses the ghc version specified within the stack project. Sorting this out is likely what's taking so long updating stack.

comment:9 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed

Duplicate of #61422.

Note: See TracTickets for help on using tickets.