PF4Public / gentoo-overlay

Personal Gentoo overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dev-util/electron-31.0.1: Compile error type "CompletionCallback" not found

MarkusTieger opened this issue · comments

Compiling fails with multiple errors. All of them say "CompletionCallback" not found.

../../electron/shell/browser/api/electron_api_web_contents.h:239:29: error: no type named 'CompletionCallback' in namespace 'printing'; did you mean 'enterprise_connectors::ContentAnalysisDelegate::CompletionCallback'?
  239 |                             printing::CompletionCallback print_callback,
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                             enterprise_connectors::ContentAnalysisDelegate::CompletionCallback
../../chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.h:171:9: note: 'enterprise_connectors::ContentAnalysisDelegate::CompletionCallback' declared here
  171 |   using CompletionCallback =
      |         ^
1 error generated.

Package settings from emerge --info dev-util/electron (the current installation: 30.1.0)

=================================================================
                        Package Settings
=================================================================

dev-util/electron-30.1.0::pf4public was built with the following:
USE="X clang cups nvidia proprietary-codecs pulseaudio screencast system-harfbuzz system-icu system-libevent system-libusb system-png system-zstd ungoogled -bluetooth -custom-cflags -debug -dev-dependencies -gtk4 -hangouts -hevc -kerberos -libcxx -optimize-thinlto -optimize-webui -pax-kernel -pgo (-selinux) -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg -system-jsoncpp -system-libvpx -system-openh264 -system-openjpeg -system-re2 -system-snappy -system-woff2 -thinlto -vaapi -wayland" ABI_X86="(64)" L10N="-af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"
CFLAGS="-march=native -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined"
CXXFLAGS="-march=native -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined"
LDFLAGS="-Wl,--as-needed -Wl,-z,pack-relative-relocs"

If you need any more info, let me know.

Compile failed on my system after 4 hous and 40 minutes. -.- (AMD Ryzen 5 5600X)

ungoogled and electron both attempt to patch the same file. It seems this situation needs a better resolution. :(

It works now