Opened 13 days ago
#74187 assigned defect
codex @0.142.5: error: no member named 'contiguous_range' in namespace 'std::ranges'
| Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | shun@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.12.5 |
| Keywords: | monterey | Cc: | |
| Port: | codex |
Description
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@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@0.3.24: In file included from ./include/livekit/rtc_error.h:20:
warning: webrtc-sys@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@0.3.24: static_assert(std::ranges::contiguous_range<rust::Slice<const uint8_t>>);
warning: webrtc-sys@0.3.24: ~~~~~~~~~~~~~^
warning: webrtc-sys@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@0.3.24: static_assert(std::ranges::contiguous_range<rust::Slice<const uint8_t>>);
warning: webrtc-sys@0.3.24: ~~~~~~~~~~~~~~~~~~~~~~~~~~^
warning: webrtc-sys@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@0.3.24: static_assert(std::ranges::contiguous_range<rust::Slice<const uint8_t>>);
warning: webrtc-sys@0.3.24: ^
warning: webrtc-sys@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@0.3.24: static_assert(std::contiguous_iterator<rust::Slice<const uint8_t>::iterator>);
warning: webrtc-sys@0.3.24: ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: webrtc-sys@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@0.3.24: static_assert(std::contiguous_iterator<rust::Slice<const uint8_t>::iterator>);
warning: webrtc-sys@0.3.24: ^
warning: webrtc-sys@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@0.3.24: (is_pointer_v<_Ip> || requires { sizeof(__pointer_traits_element_type<_Ip>); }) &&
warning: webrtc-sys@0.3.24: ^
warning: webrtc-sys@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@0.3.24: (is_pointer_v<_Ip> || requires { sizeof(__pointer_traits_element_type<_Ip>); }) &&
warning: webrtc-sys@0.3.24: ^
warning: webrtc-sys@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.
Note: See
TracTickets for help on using
tickets.
