Skip to content
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

www-client/ungoogled-chromium-130.0.6723.116_p1 compile fail : error: virtual function 'start' has a different return type ('void *') than the function it overrides (which has return type 'const void *') #394

Open
Arniiiii opened this issue Nov 21, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Arniiiii
Copy link

Arniiiii commented Nov 21, 2024

www-client_ungoogled-chromium-130.0.6723.116_p1_compile_fail.tar.gz
In the tarball:
emerge_--info.txt /var/tmp/portage/www-client/ungoogled-chromium-130.0.6723.116_p1/{build-info/,files/,temp/,work/**.log} /var/lib/portage/ /etc/portage/ /var/log/portage/elog/www-client/ungoogled-chromium-130.0.6723.116_p1:20241121-103731.log

How it was called:

  │  ~  emerge -avtUDub -j1 -l24 --with-bdeps=y -r                                                                                                                                                    ✔ │ root@localhost │ 08:47:38

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
Dependency resolution took 11.07 s.

[ebuild     U  ] www-client/ungoogled-chromium-130.0.6723.116_p1::pf4public [127.0.6533.88_p1::pf4public] USE="X bluetooth clang cups libcxx nvidia official optimize-thinlto optimize-webui pgo proprietary-codecs pulseaudio qt5 qt6* screencast system-harfbuzz system-icu system-libevent system-libusb system-openh264 system-png system-zstd thinlto vaapi wayland -cfi -convert-dict -cromite -custom-cflags -debug -enable-driver -gtk4 -hangouts -headless -hevc -kerberos -override-data-dir -pax-kernel (-selinux) -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg -system-jsoncpp -system-libvpx -system-openjpeg -system-re2 -system-snappy -system-woff2 -widevine" L10N="af am ar as%* az%* be%* bg bn bs%* ca cs cy%* da de el en-GB es es-419* et eu%* fa fi fil* fr fr-CA%* gl%* gu he hi hr hu hy%* id is%* it ja ka%* kk%* km%* kn ko ky%* lo%* lt lv mk%* ml mn%* mr ms my%* nb ne%* nl or%* pa%* pl pt-BR pt-PT ro ru si%* sk sl sq%* sr sr-Latn%* sv sw ta te th tr uk ur uz%* vi zh-CN zh-HK%* zh-TW zu%*" 0 KiB
[ebuild     U ~] www-client/librewolf-132.0.2_p1:0/132::librewolf [132.0_p1:0/132::librewolf] USE="X dbus gmp-autoupdate hardened hwaccel jumbo-build pgo pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland wifi -clang* -debug -eme-free -jack -libproxy -openh264 (-selinux) -sndio -system-png -telemetry -valgrind -wasm% (-lto%*)" L10N="ach af an ar ast az be bg bn br bs ca ca-valencia cak cs cy da de dsb el en-CA en-GB eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fur fy ga gd gl gn gu he hi hr hsb hu hy ia id is it ja ka kab kk km kn ko lij lt lv mk mr ms my nb ne nl nn oc pa pl pt-BR pt-PT rm ro ru sc sco si sk skr sl son sq sr sv szl ta te th tl tr trs uk ur uz vi xh zh-CN zh-TW" LLVM_SLOT="18 -17 -19" 0 KiB

Total: 2 packages (2 upgrades), Size of downloads: 0 KiB

!!! The following installed packages are masked:
- virtual/rust-1.81.0-r1::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Matt Jolly <[email protected]> (2024-11-09)
# The legacy Rust ebuilds are no longer maintained and have been
# replaced by the new slotted Rust. Removal in 30 days.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


Would you like to resume merging these packages? [Yes/No]
*** Resuming merge...

from build.log:

FAILED: obj/services/tracing/public/cpp/cpp/shared_memory.o
x86_64-pc-linux-gnu-clang++ -MD -MF obj/services/tracing/public/cpp/cpp/shared_memory.o.d -DIS_TRACING_CPP_IMPL -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=50ab693ecb611942ce4440d8c9ed707ee65ed5e8 -DTEMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/zlib_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/shim_headers/zstd_headers -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/ipcz/include -I../../third_party/ced/src -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -flto=thin -fno-split-lto-unit -mllvm -inlinehint-threshold=360 -fcomplete-member-pointers -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-6723-1730719185-4af1657ec7343474e96d9e94ea13c0f24b5a779d-4fdfbdead00c0bfc2c0434f00164fe9339062cde.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -isystem/usr/lib64/libffi/include -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -DPROTOBUF_ALLOW_DEPRECATED=1 -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden  -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -pipe -march=alderlake -flto -Werror=odr -Werror=strict-aliasing -ggdb3 -frecord-gcc-switches -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../services/tracing/public/cpp/perfetto/shared_memory.cc -o obj/services/tracing/public/cpp/cpp/shared_memory.o
In file included from ../../services/tracing/public/cpp/perfetto/shared_memory.cc:5:
../../services/tracing/public/cpp/perfetto/shared_memory.h:43:9: error: virtual function 'start' has a different return type ('void *') than the function it overrides (which has return type 'const void *')
   43 |   void* start() const override;
      |   ~~~~~ ^
../../third_party/perfetto/include/perfetto/ext/tracing/core/shared_memory.h:60:23: note: overridden virtual function is here
   60 |   virtual const void* start() const = 0;
      |                 ~~~~~ ^
1 error generated.

...

FAILED: obj/services/tracing/public/cpp/cpp/perfetto_tracing_backend.o
x86_64-pc-linux-gnu-clang++ -MD -MF obj/services/tracing/public/cpp/cpp/perfetto_tracing_backend.o.d -DIS_TRACING_CPP_IMPL -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=50ab693ecb611942ce4440d8c9ed707ee65ed5e8 -DTEMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/zlib_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/shim_headers/zstd_headers -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/ipcz/include -I../../third_party/ced/src -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -flto=thin -fno-split-lto-unit -mllvm -inlinehint-threshold=360 -fcomplete-member-pointers -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-6723-1730719185-4af1657ec7343474e96d9e94ea13c0f24b5a779d-4fdfbdead00c0bfc2c0434f00164fe9339062cde.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -isystem/usr/lib64/libffi/include -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -DPROTOBUF_ALLOW_DEPRECATED=1 -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden  -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -pipe -march=alderlake -flto -Werror=odr -Werror=strict-aliasing -ggdb3 -frecord-gcc-switches -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../services/tracing/public/cpp/perfetto/perfetto_tracing_backend.cc -o obj/services/tracing/public/cpp/cpp/perfetto_tracing_backend.o
In file included from ../../services/tracing/public/cpp/perfetto/perfetto_tracing_backend.cc:18:
In file included from ../../services/tracing/public/cpp/perfetto/perfetto_producer.h:13:
In file included from ../../services/tracing/public/cpp/perfetto/perfetto_traced_process.h:16:
In file included from ../../base/trace_event/trace_event.h:25:
../../base/trace_event/trace_arguments.h:679:14: warning: first argument in call to 'memcpy' is a pointer to non-trivially copyable type 'base::trace_event::TraceArguments' [-Wnontrivial-memaccess]
  679 |     ::memcpy(this, &other, sizeof(*this));
      |              ^
../../base/trace_event/trace_arguments.h:679:14: note: explicitly cast the pointer to silence this warning
  679 |     ::memcpy(this, &other, sizeof(*this));
      |              ^
      |              (void*)
In file included from ../../services/tracing/public/cpp/perfetto/perfetto_tracing_backend.cc:19:
../../services/tracing/public/cpp/perfetto/shared_memory.h:43:9: error: virtual function 'start' has a different return type ('void *') than the function it overrides (which has return type 'const void *')
   43 |   void* start() const override;
      |   ~~~~~ ^
../../third_party/perfetto/include/perfetto/ext/tracing/core/shared_memory.h:60:23: note: overridden virtual function is here
   60 |   virtual const void* start() const = 0;
      |                 ~~~~~ ^
1 warning and 1 error generated.


...


FAILED: obj/services/tracing/public/cpp/cpp/producer_client.o
x86_64-pc-linux-gnu-clang++ -MD -MF obj/services/tracing/public/cpp/cpp/producer_client.o.d -DIS_TRACING_CPP_IMPL -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=50ab693ecb611942ce4440d8c9ed707ee65ed5e8 -DTEMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/zlib_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/shim_headers/zstd_headers -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/ipcz/include -I../../third_party/ced/src -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -flto=thin -fno-split-lto-unit -mllvm -inlinehint-threshold=360 -fcomplete-member-pointers -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-6723-1730719185-4af1657ec7343474e96d9e94ea13c0f24b5a779d-4fdfbdead00c0bfc2c0434f00164fe9339062cde.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -isystem/usr/lib64/libffi/include -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -DPROTOBUF_ALLOW_DEPRECATED=1 -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden  -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -pipe -march=alderlake -flto -Werror=odr -Werror=strict-aliasing -ggdb3 -frecord-gcc-switches -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../services/tracing/public/cpp/perfetto/producer_client.cc -o obj/services/tracing/public/cpp/cpp/producer_client.o
In file included from ../../services/tracing/public/cpp/perfetto/producer_client.cc:5:
In file included from ../../services/tracing/public/cpp/perfetto/producer_client.h:25:
In file included from ../../services/tracing/public/cpp/perfetto/perfetto_producer.h:13:
In file included from ../../services/tracing/public/cpp/perfetto/perfetto_traced_process.h:16:
In file included from ../../base/trace_event/trace_event.h:25:
../../base/trace_event/trace_arguments.h:679:14: warning: first argument in call to 'memcpy' is a pointer to non-trivially copyable type 'base::trace_event::TraceArguments' [-Wnontrivial-memaccess]
  679 |     ::memcpy(this, &other, sizeof(*this));
      |              ^
../../base/trace_event/trace_arguments.h:679:14: note: explicitly cast the pointer to silence this warning
  679 |     ::memcpy(this, &other, sizeof(*this));
      |              ^
      |              (void*)
In file included from ../../services/tracing/public/cpp/perfetto/producer_client.cc:19:
../../services/tracing/public/cpp/perfetto/shared_memory.h:43:9: error: virtual function 'start' has a different return type ('void *') than the function it overrides (which has return type 'const void *')
   43 |   void* start() const override;
      |   ~~~~~ ^
../../third_party/perfetto/include/perfetto/ext/tracing/core/shared_memory.h:60:23: note: overridden virtual function is here
   60 |   virtual const void* start() const = 0;
      |                 ~~~~~ ^
1 warning and 1 error generated.
@Arniiiii Arniiiii added the bug Something isn't working label Nov 21, 2024
@PF4Public
Copy link
Owner

What is your clang version? Did you intentionally enable libcxx USE flag?

@Arniiiii
Copy link
Author

Arniiiii commented Nov 21, 2024

Did you intentionally enable libcxx USE flag?

No as far as I remember, let me check

Ah, it's set as a global USE flag. I'll try build the package without it.

What is your clang version?

equery l clang
 * Searching for clang ...
[IP-] [  ] sys-devel/clang-17.0.6:17/17
[IP-] [  ] sys-devel/clang-18.1.8:18/18.1
[IP-] [  ] sys-devel/clang-20.0.0_pre20241106:20/20.0.0_pre20241106

clang --version

clang version 20.0.0git0e907c17
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/20/bin
Build config: +assertions
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg

@Arniiiii
Copy link
Author

I can confirm that disabling libcxx does not help.

@PF4Public
Copy link
Owner

It might be an incompatibility with clang-20. clang-19 works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants