[MacPorts] #71014: nxcomp @3.5.99.22_1: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int') (was: darwin 24, nxcomp 3.5.99.22_1, Error: Failed to build nxcomp: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/work/nx-libs-3.5.99.22/nxcomp/VERSION": no such file or directory)
MacPorts
noreply at macports.org
Wed Oct 2 06:12:22 UTC 2024
#71014: nxcomp @3.5.99.22_1: error: invalid operands to binary expression
('__bind<int &, sockaddr *&, unsigned int &>' and 'int')
-------------------------+----------------------
Reporter: ashterenli | Owner: Ionic
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia
Port: nxcomp |
-------------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* keywords: => sequoia
* owner: (none) => Ionic
* port: => nxcomp
Old description:
> rebuilding ports after the mac os update to Sequoia 15.0:
>
> % sudo port upgrade outdated
> ---> Computing dependencies for nxcomp
> ---> Fetching archive for nxcomp
> ---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from
> https://mse.uk.packages.macports.org/nxcomp
> ---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from
> https://packages.macports.org/nxcomp
> ---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from
> https://vie.at.packages.macports.org/nxcomp
> ---> Building nxcomp
> Error: Failed to build nxcomp: error renaming
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/work
> /nx-libs-3.5.99.22/nxcomp/VERSION": no such file or directory
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/main.log
> for details.
New description:
rebuilding ports after the mac os update to Sequoia 15.0:
{{{
% sudo port upgrade outdated
---> Computing dependencies for nxcomp
---> Fetching archive for nxcomp
---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from
https://mse.uk.packages.macports.org/nxcomp
---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from
https://packages.macports.org/nxcomp
---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from
https://vie.at.packages.macports.org/nxcomp
---> Building nxcomp
Error: Failed to build nxcomp: error renaming
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/work
/nx-libs-3.5.99.22/nxcomp/VERSION": no such file or directory
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/main.log
for details.
}}}
--
Comment:
Looks like there are two problems here.
Your main.log file contains several attempts to install this port. The one
that started from a clean slate has this error:
{{{
Loop.cpp:4224:34: error: invalid operands to binary expression
('__bind<int &, sockaddr *&, unsigned int &>' and 'int')
4224 | if (bind(newFD, addr, addrlen) == -1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
}}}
This a probably due to the new Xcode's pickier version of clang.
After that, you tried again without cleaning first, and it failed with:
{{{
Error: Failed to build nxcomp: error renaming
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/work
/nx-libs-3.5.99.22/nxcomp/VERSION": no such file or directory
}}}
This is a mistake in how we worked around a previous problem in
[84f6dc45a4d78fc612d817332668e396353975c4/macports-ports]. We rename the
VERSION file to avoid a conflict with C++20 compilers, but it should
happen before the build phase, not at the beginning of the build phase.
The patch phase would be a good place to do that.
--
Ticket URL: <https://trac.macports.org/ticket/71014#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list