[MacPorts] #74187: codex @0.142.5: error: no member named 'contiguous_range' in namespace 'std::ranges'

MacPorts noreply at macports.org
Sat Jul 4 14:10:09 UTC 2026


#74187: codex @0.142.5: error: no member named 'contiguous_range' in namespace
'std::ranges'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  shun@…
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.12.5
 Keywords:  monterey    |       Port:  codex
------------------------+----------------------
 https://build.macports.org/builders/ports-
 12_x86_64-builder/builds/161665/steps/install-port/logs/stdio

 {{{
      Running `/opt/local/var/macports/build/codex-ca149e4a/work/codex-
 rust-v0.142.5/codex-rs/target/release/build/webrtc-sys-044a9de5dc6956bc
 /build-script-build`
 warning: webrtc-sys at 0.3.24: In file included from
 /opt/local/var/macports/build/codex-ca149e4a/work/codex-rust-v0.142.5
 /codex-rs/target/x86_64-apple-darwin/release/build/webrtc-sys-
 35e3846fdd427732/out/cxxbridge/sources/webrtc-
 sys/src/peer_connection.rs.cc:1:
 warning: webrtc-sys at 0.3.24: In file included from
 ./include/livekit/rtc_error.h:20:
 warning: webrtc-sys at 0.3.24: /opt/local/var/macports/build/codex-
 ca149e4a/work/codex-rust-v0.142.5/codex-rs/target/x86_64-apple-
 darwin/release/build/webrtc-sys-
 35e3846fdd427732/out/cxxbridge/include/rust/cxx.h:282:28: error: no member
 named 'contiguous_range' in namespace 'std::ranges'
 warning: webrtc-sys at 0.3.24:
 static_assert(std::ranges::contiguous_range<rust::Slice<const uint8_t>>);
 warning: webrtc-sys at 0.3.24:               ~~~~~~~~~~~~~^
 warning: webrtc-sys at 0.3.24: /opt/local/var/macports/build/codex-
 ca149e4a/work/codex-rust-v0.142.5/codex-rs/target/x86_64-apple-
 darwin/release/build/webrtc-sys-
 35e3846fdd427732/out/cxxbridge/include/rust/cxx.h:282:71: error: expected
 '(' for function-style cast or type construction
 warning: webrtc-sys at 0.3.24:
 static_assert(std::ranges::contiguous_range<rust::Slice<const uint8_t>>);
 warning: webrtc-sys at 0.3.24:
 ~~~~~~~~~~~~~~~~~~~~~~~~~~^
 warning: webrtc-sys at 0.3.24: /opt/local/var/macports/build/codex-
 ca149e4a/work/codex-rust-v0.142.5/codex-rs/target/x86_64-apple-
 darwin/release/build/webrtc-sys-
 35e3846fdd427732/out/cxxbridge/include/rust/cxx.h:282:72: error: expected
 expression
 warning: webrtc-sys at 0.3.24:
 static_assert(std::ranges::contiguous_range<rust::Slice<const uint8_t>>);
 warning: webrtc-sys at 0.3.24:
 ^
 warning: webrtc-sys at 0.3.24: /opt/local/var/macports/build/codex-
 ca149e4a/work/codex-rust-v0.142.5/codex-rs/target/x86_64-apple-
 darwin/release/build/webrtc-sys-
 35e3846fdd427732/out/cxxbridge/include/rust/cxx.h:283:1: error:
 static_assert failed
 warning: webrtc-sys at 0.3.24:
 static_assert(std::contiguous_iterator<rust::Slice<const
 uint8_t>::iterator>);
 warning: webrtc-sys at 0.3.24: ^
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 warning: webrtc-sys at 0.3.24: /opt/local/var/macports/build/codex-
 ca149e4a/work/codex-rust-v0.142.5/codex-rs/target/x86_64-apple-
 darwin/release/build/webrtc-sys-
 35e3846fdd427732/out/cxxbridge/include/rust/cxx.h:283:20: note: because
 'rust::Slice<const uint8_t>::iterator' does not satisfy
 'contiguous_iterator'
 warning: webrtc-sys at 0.3.24:
 static_assert(std::contiguous_iterator<rust::Slice<const
 uint8_t>::iterator>);
 warning: webrtc-sys at 0.3.24:                    ^
 warning: webrtc-sys at 0.3.24:
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/concepts.h:175:4:
 note: because 'is_pointer_v<rust::Slice<const unsigned char>::iterator>'
 evaluated to false
 warning: webrtc-sys at 0.3.24:   (is_pointer_v<_Ip> || requires {
 sizeof(__pointer_traits_element_type<_Ip>); }) &&
 warning: webrtc-sys at 0.3.24:    ^
 warning: webrtc-sys at 0.3.24:
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/concepts.h:175:36:
 note: and 'sizeof(__pointer_traits_element_type<_Ip>)' would be invalid:
 implicit instantiation of undefined template
 'std::__pointer_traits_element_type<rust::Slice<const unsigned
 char>::iterator, false>'
 warning: webrtc-sys at 0.3.24:   (is_pointer_v<_Ip> || requires {
 sizeof(__pointer_traits_element_type<_Ip>); }) &&
 warning: webrtc-sys at 0.3.24:                                    ^
 warning: webrtc-sys at 0.3.24: 4 errors generated.
 }}}

 The port chose to use Xcode clang, which is:

 {{{
 Xcode v13.4.1 (13F100)
 Apple clang version 13.1.6 (clang-1316.0.21.2.5)
 }}}

 so apparently that's not enough. See also #73910 for another situation
 where the codex port picked a not-enough compiler.

 This failure occurred after expending 4 hours of build time, so it's
 important for the health of our build system to fix this so that the port
 can either build or fail immediately with an error.

-- 
Ticket URL: <https://trac.macports.org/ticket/74187>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list