Repository navigation
Description
Summary
The macOS app lane is still red on master in Qt 6.11's own headers, exactly the diagnostics #2950 / #2979 were merged to remove. #2979 excluded Darwin from the app target's -Wsign-conversion opt-in; the same class came back in the release-gate run after it merged, so either the guard does not reach the Xcode generator path or another opt-in supplies the flag.
Evidence
Release OBS-Studio-Rust verify-only dispatch run 41114625518 (master a8d2cb9a9, so it includes #2979 / b0f2e8e3a), job Release gate 🚦 / macOS 🍏 (arm64) (124265829819), and the same failure in Build macos arm64 🧱 (124265645931), Build macos x86_64 🧱 (124265646072), Release gate 🚦 / macOS 🍏 (x86_64) (124265829900):
qversiontagging.h:80: implicit conversion changes signedness: 'int' to 'quintptr' [-Werror,-Wsign-conversion]
: symbol(sym), version(currentVersion)
qnamespace.h:1926: implicit conversion changes signedness: 'Int' to 'int' [-Werror,-Wsign-conversion]
: combination(modifiers.toInt() | int(key))
qnamespace.h:1930: same, both directions
qnamespace.h:1935: implicit conversion changes signedness: 'const int' to 'unsigned int'
return Qt::KeyboardModifiers(combination & Qt::KeyboardModifierMask);
The failing TUs are ours (frontend.sparkle+.hpp.cpp, frontend.settings-obshotkeycapture+.hpp.cpp); every diagnostic sits inside QtCore.framework/Versions/A/Headers/qversiontagging.h / qnamespace.h (Qt 6.11 from obs-deps-qt6-2026-10-25), the exact headers #2979's message named. The diagnostic group is -Wsign-conversion, so the flag is enabled for these TUs despite frontend/CMakeLists.txt's $<$<NOT:$<PLATFORM_ID:Darwin>>:…> guard and the global -Wno-sign-conversion in cmake/common/compiler_common.cmake.
Open question (what the investigation must answer)
Which mechanism enables the group on the Xcode path? Candidates:
- The Xcode generator does not expand the nested
$<NOT:$<PLATFORM_ID:Darwin>>genex intarget_compile_optionsthe way the Ninja generator does, so the flag survives on macOS. build(frontend): keep the sign-conversion ratchet off the Darwin TUs (#2950) #2979 verified the expansion in a scratch project, not in the Xcode generator. - A second opt-in supplies it (
plugins/*/CMakeLists.txtconversion blocks, orCMAKE_XCODE_ATTRIBUTE_*incmake/macos/xcode.cmake). - The Qt include prefixes are not treated as system headers on macOS, so
-Wconversion(which AppleClang reports under the-Wsign-conversionsub-group) fires inside them.
Shape of the fix
Exclude the Qt framework header prefixes from the ratchet so the app target can keep the group on Apple TUs (the follow-up #2979's comment already names), or express the Darwin exclusion in a form the Xcode generator honours (if(OS_MACOS) around the block, not a genex). ci/test_frontend_conversion_optins.py pins whichever shape is chosen.
Not filing a guessed patch: the first step is to read the actual OTHER_CFLAGS/-W list of frontend.sparkle+.hpp.cpp from a macOS app build and compare it with what frontend/CMakeLists.txt asks for.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 30, 2026
Claiming: #3096
frontend/CMakeLists.txt's conversion block,cmake/common/compiler_common.cmake's global-Wno-sign-conversion, andcmake/macos/xcode.cmake'sCMAKE_XCODE_ATTRIBUTE_*, and trace which of the three candidates in the issue can supply-Wsign-conversiontofrontend.sparkle+.hpp.cppunder the Xcode generator.ci/test_frontend_conversion_optins.py(or a sibling test) that asserts the app target's conversion opt-in is expressed in a form both generators honour, failing on the current shape.masterwith the RED/GREEN pair; noFixesuntil a macOS app run on master shows the lane green.Expect the first PR today. If step 1 shows the cause is outside this repo (an obs-deps Qt packaging change), I will say so on the issue and release rather than guessing a patch.
zackees commentedon Oct 30, 2026
PR #3099 is open with the RED/GREEN pair:
frontend/CMakeLists.txtnow states the Apple pin as anif(OS_MACOS)branch instead of the nested$<NOT:$<PLATFORM_ID:Darwin>>genex that never reached the Xcode-generated TUs, andVolumeMeterSnapshot.hpp:32states theuint64_t->doubleconversion the same lane stopped on (frontend.widgets+.hpp.cpp).ci/test_frontend_conversion_optins.pyholds both shapes and fails on the pre-fix tree.Evidence in flight: a dispatched
scheduled.yamlrun on the branch, 41119526629, which is the only lane that compiles the macOS app target. I am not claimingFixesuntil that job is green; if it is still red I will report which TU and which diagnostic survived rather than widening the guard again.zackees commentedon Oct 30, 2026
Two findings from a macOS run on this issue, one of them a fix.
The app target's opt-in is not the source. I replaced the nested
$<NOT:$<PLATFORM_ID:Darwin>>genex with the branch shape this issue named —if(OS_MACOS)giving-Wno-sign-conversionas a real target compile option,else()keeping-Wsign-conversionfor the other lanes — and dispatchedscheduled.yamlon that branch (41119526629).Build 🧱 / macOS 🍏 (x86_64)at 20:11:10 still reports the identical six-Werror,-Wsign-conversiondiagnostics, infrontend.sparkle+.hpp.cppforqversiontagging.h:80andqnamespace.h:1926/1930/1935, and again forfrontend.settings-obshotkeycapture+.hpp.cppin the run before it. So the group reaches those TUs despite both the genex and an explicit target-level-Wno-sign-conversion: the enabling flag is in the compile line from somewhere neither candidate 1 nor candidate 2 describes, and "exclude the Qt prefixes from the ratchet" cannot be the fix while the group is on for reasons of its own. That branch is closed as PR #3099; its CMake experiment is not proposed for merge.The other diagnostic on that lane is fixed and verified. The same job stops at
frontend.widgets+.hpp.cpponfrontend/components/VolumeMeterSnapshot.hpp:32—implicit conversion from 'uint64_t' to 'double' may lose precision [-Werror,-Wimplicit-int-float-conversion], which AppleClang reports without an opt-in. With the conversion stated at the call site (#3100), that TU compiles at 20:10:04 on the arm64 runner and at 20:10:xx on x86_64 with no diagnostic; the lane now gets as far as the Qt headers and no further.Next step for the Qt half. Dump one TU's compile line instead of guessing:
.github/scripts/build-macosalready has the derived data directory, so axcodebuild -showBuildSettingsforobs-studioplus theCompileCinvocation forfrontend.sparkle+.hpp.cpp(or a one-off-###/-von that file) will show every-Win order, including anything Xcode appends afterOTHER_CPLUSPLUSFLAGS. That is the evidence the fix needs; I am keeping the claim for it and will post the flags here when a run provides them.fix(properties-view): keep the Apple pin on the interface group (#3096)
test(ci): hold the app target's Apple pin to a branch the Xcode gener…
fix(frontend): state the app target's Apple conversion pin as a branch (
fix(properties-view): keep the Apple pin on the interface group (#3096)
zackees commentedon Oct 30, 2026
Root cause found and fixed in #3102: the app target's
-Wno-sign-conversionwas being overridden byOBS::properties-view's INTERFACE conversion groups, which land after the target's own options. The macOS lane therefore still saw-Wsign-conversioninside Qt 6.11'sqversiontagging.h/qnamespace.h.#3102 states the app pin in an
if(OS_MACOS)branch (the Xcode generator drops the nested Darwin genex) and moves properties-view's group opt-in to the non-Apple branch. Evidence: dispatched run 41123124035 —Build 🧱 / macOS 🍏 (x86_64),(arm64),Build 🧱 / Flatpak 📦and clang-analyze all pass on head494781525; the only failure in that run is the known CEF-pin check (#1864).zackees commentedon Oct 30, 2026
Root cause identified and proven: the group arrives through a linked library's INTERFACE options, not through the app target.
#3067(in the failing heada8d2cb9a9) ratchetedshared/properties-viewwithobs-studiolinksOBS::properties-view(frontend/cmake/ui-dialogs.cmake:11), and CMake appends a linked library's INTERFACE options after the consumer's own options and after the directory pins. Observed compile line from a scratch project with that exact shape:so no consumer-side negative can win, and
-Wconversionre-enables the sign group by itself — a preceding-Wno-sign-conversiondoes not stop it:That reproduces the exact diagnostic text and group name in
qversiontagging.h:80/qnamespace.h:1926/1930/1935. Candidate 1 in this issue is therefore disproven: a nested$<$<NOT:$<PLATFORM_ID:Darwin>>:…>genex does expand (flags present when the inner condition is true, nothing when it is false), so#2979's guard was fine and theif(OS_MACOS)rewrite in PR#3102is robustness, not the fix. Candidate 3 (Qt prefixes not system headers) is a real amplifier but not the mechanism.Status: PR
#3102carries the fix (properties-view's interface block contributes none of the three groups on Apple) with macOS acceptance — dispatched run41123124035, both app builds and clang-analyze green. ItsVolumeMeterSnapshot.hpphalf is the same hunk as#3100, which I closed as superseded so the queue does not get two copies. The class-level pin (any future INTERFACE ratchet must exclude Darwin) is the remaining gap; it is invisible to PR CI because no PR lane builds the app.fix(frontend): keep the app target's Apple conversion pin through the…
zackees commentedon Oct 30, 2026
Fixed by #3102 (merged as
91a9934ed), with the review corrections and the class-wide pin in #3106.What fixed it: it was not the generator.
OBS::properties-viewstates its three conversion groups as INTERFACE options, so CMake appends them to every consumer's compile line after the consumer's own-Wno-sign-conversion, and-Wconversionre-enables-Wsign-conversiondiagnostics — the group was on forfrontend.sparkle+.hpp.cppandfrontend.settings-obshotkeycapture+.hpp.cppinsideqversiontagging.h/qnamespace.hno matter whatfrontend/CMakeLists.txtsaid. The INTERFACE block now gives Apple none of the three groups and pins-Wno-sign-conversioninstead; the app target's own opt-in and pin are stated asif(OS_MACOS)branches.Evidence: dispatched
scheduled.yamlrun 41123124035 on494781525—Build 🧱 / macOS 🍏 (x86_64),(arm64)andAnalyze / macOS (clang-analyze)all success, where the previous head stopped atqversiontagging.h:80/qnamespace.h:1926.Remaining: the class is now pinned offline by
ci/test_conversion_ratchet.py(reportsshared/properties-view/CMakeLists.txt: properties-viewon the pre-fix tree). The Qt include prefixes are still inside the ratchet, so a future INTERFACE group re-breaks the app lane the same way — that exclusion is still worth doing, but it is no longer invisible to CI.zackees commentedon Oct 30, 2026
Closed by evidence: the macOS app lane is green on master after #3102.
Release OBS-Studio-Rustverify-only dispatch on master91a9934ed(the commit that merged #3102), run 41133870419 — status: success, no failing jobs:The six
-Werror,-Wsign-conversiondiagnostics inqversiontagging.h:80andqnamespace.h:1926/1930/1935forfrontend.sparkle+.hpp.cppandfrontend.settings-obshotkeycapture+.hpp.cppno longer appear, and the app targets compile on both macOS runners. That matches the root cause recorded above:OBS::properties-view's INTERFACE conversion group landed after the app target's own pins, so no consumer-side-Wno-sign-conversioncould win; #3102 moved the group to the non-Apple branch and stated the app pin in anif(OS_MACOS)branch, which the Xcode generator honours.No new issue is needed. The general ratchet remains open on #2625.
test(ci): pin Darwin out of every INTERFACE conversion group (obs-rus…
test(ci): fail a linked INTERFACE target that states a conversion gro…
build(properties-view): state the conversion groups PRIVATE on the co…
test(ci): fail a linked INTERFACE target that states a conversion gro…
build(properties-view): state the conversion groups PRIVATE on the co…
build(properties-view): state the conversion groups PRIVATE on the co…