Opened 7 weeks ago

Closed 5 weeks ago

#70965 closed defect (fixed)

Failed to install mlton

Reported by: anta40 (Andre Tampubolon) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc:
Port: mlton

Description

$ sudo port install mlton
Password:
--->  Computing dependencies for mlton
The following dependencies will be installed:  mlton-bootstrap
Continue? [Y/n]: Y
--->  Fetching archive for mlton-bootstrap
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/mlton-bootstrap
--->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/mlton-bootstrap
--->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://mirror.sjtu.edu.cn/macports/packages/mlton-bootstrap
--->  Verifying checksums for mlton-bootstrap
Error: Failed to checksum mlton-bootstrap: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz does not exist in /opt/local/var/macports/distfiles/mlton-bootstrap
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mlton-bootstrap/mlton-bootstrap/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port mlton failed

Examining the log, perhaps this is the cause:

$ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mlton-bootstrap/mlton-bootstrap/main.log
...
...
:info:archivefetch --->  mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://mirror.sjtu.edu.cn/macports/packages/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 403
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (mlton-bootstrap)
...

Change History (4)

comment:1 in reply to:  description Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mlton removed

Lack of a precompiled archive (because we only just set up the build machine and it hasn't yet gotten around to trying to build this port) is why the port is building from source on your machine, but that is not why checksums failed; lack of source archive is the reason. This shouldn't have happened but running sudo port clean mlton and trying again should either succeed or give a different error for us to investigate.

comment:2 Changed 5 weeks ago by anta40 (Andre Tampubolon)

Yep still fails:

$ sudo port clean mlton
--->  Cleaning mlton
$ sudo port install mlton
--->  Computing dependencies for mlton
The following dependencies will be installed:  mlton-bootstrap
Continue? [Y/n]: Y
--->  Fetching archive for mlton-bootstrap
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/mlton-bootstrap
--->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/mlton-bootstrap
--->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://mirror.sjtu.edu.cn/macports/packages/mlton-bootstrap
--->  Verifying checksums for mlton-bootstrap
Error: Failed to checksum mlton-bootstrap: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz does not exist in /opt/local/var/macports/distfiles/mlton-bootstrap
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mlton-bootstrap/mlton-bootstrap/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port mlton failed

Let's see the log:

version:1
:debug:clean Starting logging for mlton-bootstrap @20210117_0
:debug:sysinfo macOS 12.7.6 (darwin/21.6.0) arch i386
:debug:sysinfo MacPorts 2.10.1
:debug:sysinfo Xcode none, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mlton-bootstrap/mlton-bootstrap/work /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/mlton-bootstrap/work
:debug:clean dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (mlton-bootstrap)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Sat Sep 28 12:57:11 WIB 2024
:msg:archivefetch --->  Fetching archive for mlton-bootstrap
:debug:archivefetch Executing org.macports.archivefetch (mlton-bootstrap)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://mirror.sjtu.edu.cn/macports/packages/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 403
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Sat Sep 28 12:57:13 WIB 2024
:notice:fetch --->  Fetching distfiles for mlton-bootstrap
:debug:fetch elevating privileges for fetch: euid changed to 0, egid changed to 0.
:debug:fetch dropping privileges: euid changed to 502, egid changed to 501.
:debug:fetch Executing org.macports.fetch (mlton-bootstrap)
:info:fetch --->  mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz does not exist in /opt/local/var/macports/distfiles/mlton-bootstrap
:notice:fetch --->  Attempting to fetch mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz from http://svwh.dl.sourceforge.net/project/mlton/mlton/20210117
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sat Sep 28 12:57:16 WIB 2024
:notice:checksum --->  Verifying checksums for mlton-bootstrap
:debug:checksum Executing org.macports.checksum (mlton-bootstrap)
:info:checksum --->  Checksumming mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz
:debug:checksum Calculated (rmd160) is c1d75be2d0335a403b0167f4c92e6d930a151fbb
:error:checksum Checksum (rmd160) mismatch for mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz
:info:checksum Portfile checksum: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz rmd160 fbceabd8dac11cff7f839f953391596a3f6222ed
:info:checksum Distfile checksum: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz rmd160 c1d75be2d0335a403b0167f4c92e6d930a151fbb
:debug:checksum Calculated (sha256) is 2615082a3d0c6f21892789810b2d7e8b08431e65d918cea664f15b59f7e3955a
:error:checksum Checksum (sha256) mismatch for mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz
:info:checksum Portfile checksum: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz sha256 4f50973e9ec47ffb3e7ce5ecd14996e3894779eec788ce464e6c9a903719cf28
:info:checksum Distfile checksum: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz sha256 2615082a3d0c6f21892789810b2d7e8b08431e65d918cea664f15b59f7e3955a
:debug:checksum Calculated (size) is 9495
:error:checksum Checksum (size) mismatch for mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz
:info:checksum Portfile checksum: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz size 18056959
:info:checksum Distfile checksum: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz size 9495
:notice:checksum ***
:notice:checksum The non-matching file appears to be HTML. See this page for possible reasons
:notice:checksum for the checksum mismatch:
:notice:checksum <https://trac.macports.org/wiki/MisbehavingServers>
:notice:checksum ***
:notice:checksum The file has been moved to: /opt/local/var/macports/distfiles/mlton-bootstrap/mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz.html
:error:checksum Failed to checksum mlton-bootstrap: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:error:checksum See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mlton-bootstrap/mlton-bootstrap/main.log for details.
version:1
:debug:main Starting logging for mlton-bootstrap @20210117_0
:debug:sysinfo macOS 12.7.6 (darwin/21.6.0) arch i386
:debug:sysinfo MacPorts 2.10.1
:debug:sysinfo Xcode none, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (mlton-bootstrap)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Sat Sep 28 12:57:50 WIB 2024
:msg:archivefetch --->  Fetching archive for mlton-bootstrap
:warn:archivefetch Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
:debug:archivefetch Executing org.macports.archivefetch (mlton-bootstrap)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch mlton-bootstrap-20210117_0.darwin_21.x86_64.tbz2 from https://mirror.sjtu.edu.cn/macports/packages/mlton-bootstrap
:debug:archivefetch Fetching archive failed: The requested URL returned error: 403
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (mlton-bootstrap)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sat Sep 28 12:57:51 WIB 2024
:notice:checksum --->  Verifying checksums for mlton-bootstrap
:debug:checksum Executing org.macports.checksum (mlton-bootstrap)
:info:checksum --->  Checksumming mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz
:error:checksum Failed to checksum mlton-bootstrap: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz does not exist in /opt/local/var/macports/distfiles/mlton-bootstrap
:debug:checksum Error code: NONE
:debug:checksum Backtrace: mlton-20210117-1.amd64-darwin-19.6.gmp-homebrew.tgz does not exist in /opt/local/var/macports/distfiles/mlton-bootstrap
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:error:checksum See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mlton-bootstrap/mlton-bootstrap/main.log for details.
version:1

comment:3 Changed 5 weeks ago by ryandesign (Ryan Carsten Schmidt)

The wiki page MisbehavingServers mentioned in the error message in the log is relevant. Looks like MacPorts tried to fetch this distfile from svwh.dl.sourceforge.net but that server doesn't exist, and because of your standards-violating DNS server, MacPorts received the wrong file. If that server is permanently out of commission we should remove it from the list of SourceForge mirrors.

comment:4 Changed 5 weeks ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 0796b00ab6c0ed5cedcbfbc2b83d40cdb9113ece/macports-ports (master):

mirror_sites.tcl: Update SourceForge mirrors

Closes: #70965

Note: See TracTickets for help on using tickets.