[MacPorts] #74335: tmux @3.7c won't install on macOS Sierra (10.12.6) or on macOS Catalina (10.15.8)
MacPorts
noreply at macports.org
Tue Aug 18 13:15:44 UTC 2026
#74335: tmux @3.7c won't install on macOS Sierra (10.12.6) or on macOS Catalina
(10.15.8)
--------------------------------------------+--------------------
Reporter: JULWAL1 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Keywords: tmux 3.7c build error solution | Port: tmux
--------------------------------------------+--------------------
I tried to upgrade tmux from @3.7b to tmux @3.7c last night and got this
error:
{{{
:info:configure checking whether F_CLOSEM is declared... no
:info:configure checking for /proc/$$... no
:info:configure checking platform... darwin
:info:configure configure:
:info:configure configure: macOS calloc(3) appears not to
correctly
:info:configure configure: zero allocations in some circumstances;
:info:configure configure: to avoid this, configuring with
:info:configure configure: --enable-jemalloc is recommended. To
build
:info:configure configure: without anyway, use --disable-jemalloc
:info:configure configure:
:info:configure configure: error: must give --enable-jemalloc or
--disable-jemalloc
:info:configure Command failed: cd "/opt/local/var/macports/build/tmux-
d430bd6e/work/tmux-3.7c" && ./configure --prefix=/opt/local --enable-
utf8proc --sysconfdir=/opt/local/etc --with-TERM=screen-256color --enable-
sixel
:info:configure Exit code: 1
:error:configure Failed to configure tmux: consult
/opt/local/var/macports/build/tmux-d430bd6e/work/tmux-3.7c/config.log
:error:configure Failed to configure tmux: configure failure: command
execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure while executing
:debug:configure "$procedure $targetname"
:error:configure See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_tmux/tmux/main.log
for details.
}}}
By changing a section of the Portfile from:
{{{
platform darwin {
if {${os.major} < 23} {
# Before Sonoma, macOS lacked terminal descriptions for tmux,
# tmux-256color. Fallback on a terminal definition that is
available on
# these older versions
configure.args-append --with-TERM=screen-256color
}
}
}}}
to:
{{{
platform darwin {
depends_lib-append port:jemalloc
configure.args-append --enable-jemalloc
if {${os.major} < 23} {
# Before Sonoma, macOS lacked terminal descriptions for tmux,
# tmux-256color. Fallback on a terminal definition that is
available on
# these older versions
configure.args-append --with-TERM=screen-256color
}
}
}}}
and then running:
{{{
sudo port clean tmux
sudo port upgrade tmux
}}}
It then successfully builds on macOS Sierra:
{{{
$ tmux -V
tmux 3.7c
}}}
I will check macOS Catalina shortly and post a quick update.
Also, FYI by using:
{{{
sudo port -d -v upgrade tmux
}}}
it does show lots of compiler warnings (no errors thankfully).
Hope this hopes.
Cheers.
--
Ticket URL: <https://trac.macports.org/ticket/74335>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list