-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electron_31: fix build after llvm bump #368966
Conversation
This fixes the following build errors: ~~~ [2607/50420] CXX obj/third_party/perfetto/src/tracing/client_api_without_backends/track_event_legacy.o FAILED: obj/third_party/perfetto/src/tracing/client_api_without_backends/track_event_legacy.o clang++ -MD -MF [...] In file included from ../../third_party/perfetto/src/tracing/track_event_legacy.cc:17: In file included from ../../third_party/perfetto/include/perfetto/tracing/track_event_legacy.h:26: In file included from ../../third_party/perfetto/include/perfetto/tracing/track_event.h:20: ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h:331:20: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 331 | Base::template Trace([](typename Base::TraceContext ctx) { ctx.Flush(); }); | ^ [...] 6 errors generated. ~~~ and ~~~ FAILED: obj/electron/electron_lib/keyboard_util.o clang++ -MD -MF [...] ../../electron/shell/common/keyboard_util.cc:19:30: error: constexpr function never produces a constant expression [-Winvalid-constexpr] 19 | constexpr CodeAndShiftedChar KeyboardCodeFromKeyIdentifier( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../electron/shell/common/keyboard_util.cc:111:33: note: non-constexpr function 'find' cannot be used in a constant expression 111 | if (auto* const iter = Lookup.find(str); iter != Lookup.end()) | ^ ../../base/containers/flat_tree.h:310:18: note: declared here 310 | const_iterator find(const Key& key) const; | ^ 1 error generated. ~~~ This is happening since staging has been merged into master, which included both a rustc and llvm bump. Note that we inherit the llvm that rustc exposes. Co-Authored-By: K900 <me@0upti.me>
91600a6
to
0e3cc16
Compare
@K900 looked into this when I was asleep and noticed another build error at the very end
and fixed that as well :) Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No resources to build electron atm, but leaving a LGTM here. Thanks for taking care of these fixes.
Built locally on this exact commit. |
bit late, but for the sake of completeness:
|
…d to wait till fix ix is pushed via hydra NixOS/nixpkgs#368966 and https://nixpk.gs/pr-tracker.html?pr=368966
Fixes #368172
This fixes the following build errors:
and
This is happening since staging has been merged into master, which included both a rustc and llvm bump.
Note that we inherit the llvm that rustc exposes.
This is not happening on release-24.11.
Will probably go to bed now and check the then hopefully successful build result tomorrow.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)