Opened 6 months ago

Last modified 2 months ago

#60571 reopened defect

ghc and ports that use ghc: ghc: could not execute: ccache /usr/bin/clang

Reported by: ryandesign (Ryan Schmidt) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: iEFdev
Port: ghc, stack, pandoc

Description

pandoc fails to compile. This might not be a pandoc-specific problem but might be general to any port using stack or the haskell_stack portgroup when configureccache yes is set in macports.conf. (The problem doesn't happen if I remove configureccache yes from macports.conf.)

The GHC located at /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk-new_textproc_pandoc/pandoc/work/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc-8.6.5 failed to compile a sanity check. Please see:

    http://docs.haskellstack.org/en/stable/install_and_upgrade/

for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk-new_textproc_pandoc/pandoc/work/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc-8.6.5 /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk-new_textproc_pandoc/pandoc/work/.tmp/stack-sanity-check-77926e2ed3692749/Main.hs -no-user-package-db
Run from: /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk-new_textproc_pandoc/pandoc/work/.tmp/stack-sanity-check-77926e2ed3692749/
Standard output:

[1 of 1] Compiling Main             ( /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk-new_textproc_pandoc/pandoc/work/.tmp/stack-sanity-check-77926e2ed3692749/Main.hs, /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk-new_textproc_pandoc/pandoc/work/.tmp/stack-sanity-check-77926e2ed3692749/Main.o )
Standard error:


<no location info>: error:
    Warning: Couldn't figure out C compiler information!
             Make sure you're using GNU gcc, or clang
ghc: could not execute: ccache /usr/bin/clang

Change History (8)

comment:1 Changed 3 months ago by iEFdev

There's an update for pandoc:

pandoc seems to have been updated (port version: 2.9.2.1, new version: 2.10.1)

I also mentioned that in #61043

comment:2 Changed 3 months ago by iEFdev

Cc: iEFdev added

comment:3 Changed 2 months ago by ryandesign (Ryan Schmidt)

Cc: essandess removed
Owner: set to essandess
Port: ghc added
Status: newassigned
Summary: pandoc: ghc: could not execute: ccache /usr/bin/clangghc and ports that use ghc: ghc: could not execute: ccache /usr/bin/clang

I see the same problem with ghc itself when configureccache yes is set in macports.conf; the problem disappears when that setting is removed.

comment:4 Changed 2 months ago by essandess (Steve Smith)

I see a working compile of pandoc version 2.10.1 with the latest stack. I'll post a PR.

BTW this is without modifying the default settings for ccache in macports.conf.

comment:5 Changed 2 months ago by ryandesign (Ryan Schmidt)

Yes, I know that it works fine when not using ccache. This bug report is that it does not work when using ccache.

comment:6 Changed 2 months ago by essandess (Steve Smith)

Resolution: fixed
Status: assignedclosed

In e76db5997f0446f778ccb524ca1de64e52707d7c/macports-ports (master):

pandoc: Update to version 2.10.1

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

Resolution: fixed
Status: closedreopened

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

not fixed by that commit

Note: See TracTickets for help on using tickets.