Opened 5 days ago

Last modified 5 days ago

#71014 assigned defect

nxcomp @3.5.99.22_1: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int')

Reported by: ashterenli Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia Cc:
Port: nxcomp

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Attachments (1)

main.log (245.9 KB) - added by ashterenli 5 days ago.
build log

Download all attachments as: .zip

Change History (2)

Changed 5 days ago by ashterenli

Attachment: main.log added

build log

comment:1 Changed 5 days ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sequoia added
Owner: set to Ionic
Port: nxcomp added
Status: newassigned
Summary: 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 directorynxcomp @3.5.99.22_1: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int')

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.

Note: See TracTickets for help on using tickets.