#69492 closed defect (fixed)
cabal @3.10.2.0_2 won’t build from source on 10.15: Warning: Failed to build documentation for Cabal-syntax-3.10.2.0
Reported by: | Gandoon (Erik Hedlund) | Owned by: | essandess (Steve Smith) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.1 |
Keywords: | Cc: | ||
Port: | cabal |
Description
I tried to upgrade pandoc
which depends on cabal
. I am building from source. As previously, the failing cabal
build prevents successful upgrade of pandoc
. I ran into proplems earlier, see #68957, which could be solved by a tweak to the portfile. However, that tweak is now incorporated in the distributed portfile. I am unsure what is the issue this time as the problem occurs during the destroot stage. I have tried various standard tweaks to macports.conf
, such as turning off ccache
, forcing the current architecture, and changing archive format (despite the previous versions were just fine with xz
). None of the above worked. A little snippet of the final output of the port -v upgrade pandoc
is included below. Note that this happens during the cabal
build, and that I am on MacOS 10.15.7.
Building network-3.1.4.0 (all, legacy fallback) Haddock ed25519-0.0.5.0 (lib) Haddock network-3.1.4.0 (all, legacy fallback) Haddock Cabal-syntax-3.10.2.0 (lib) Warning: Failed to build documentation for Cabal-syntax-3.10.2.0 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for base16-bytestring-1.0.2.0 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for base64-bytestring-1.2.1.0 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for echo-0.1.4 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for cryptohash-sha256-0.11.102.1 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for ed25519-0.0.5.0 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for hashable-1.4.3.0 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for lukko-0.1.1.3 (which is required by exe:cabal from cabal-install-3.10.2.0). Failed to build documentation for network-3.1.4.0 (which is required by exe:cabal from cabal-install-3.10.2.0). Copying 'cabal' to '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_cabal/cabal/work/destroot/opt/local/bin/cabal' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_cabal/cabal/work/.home/.cabal/store/ghc-9.6.4/cbl-nstll-3.10.2.0-821e1dc5/bin/cabal: copyFile:atomicCopyFileContents:withReplacementFile:copyFileToHandle:withBinaryFile: does not exist (No such file or directory) Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_cabal/cabal/work/cabal-3.10.2.0" && /opt/local/bin/cabal-prebuilt --config-file=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_cabal/cabal/work/.home/.cabal/config install cabal-install --project-file=cabal.project.release -j8 --builddir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_cabal/cabal/work/dist --installdir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_cabal/cabal/work/destroot/opt/local/bin --install-method=copy --enable-relocatable --overwrite-policy=always Exit code: 1 Error: Failed to destroot cabal: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_cabal/cabal/main.log for details. Error: Problem while installing cabal Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Any suggestions? Logfile attached.
Attachments (1)
Change History (6)
Changed 8 months ago by Gandoon (Erik Hedlund)
Attachment: | cabal-main-20240313.log added |
---|
comment:1 Changed 8 months ago by jmroot (Joshua Root)
Owner: | set to essandess |
---|---|
Status: | new → assigned |
comment:2 follow-up: 3 Changed 8 months ago by essandess (Steve Smith)
Please see https://github.com/macports/macports-ports/pull/23008. Just throwing in the towel and rolling back to macOS 10.16 == Darwin version 20 to build from source.
@jmroot, the buildbots for cabal
work on 10.15, so it's not clear if this isn't an isolated issue to @Gandoon. Why isn't MacPorts installing the pre-built binary for either pandoc
or cabal
? This doesn't appear to be an issue associated with either port.
See:
comment:3 Changed 8 months ago by jmroot (Joshua Root)
Replying to essandess:
Why isn't MacPorts installing the pre-built binary for either
pandoc
orcabal
?
Ticket reporter is using source-only mode.
comment:4 Changed 8 months ago by essandess (Steve Smith)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 8 months ago by kencu (Ken)
Summary: | Pandoc can't be upgraded due to cabal @3.10.2.0_2 failing to destroot… again → cabal @3.10.2.0_2 won’t build from source on 10.15: Warning: Failed to build documentation for Cabal-syntax-3.10.2.0 |
---|
Log from failed destroot of cabal @3.10.2.0_2 on MacOS 10.15