PF4Public / gentoo-overlay

Personal Gentoo overlay
82 stars 20 forks source link

dev-util/electron: assert(ozone_platform_x11) fails on wayland #271

Closed ZerdoX-x closed 11 months ago

ZerdoX-x commented 1 year ago

Hi! Thank you for your overlay and maintaining it. Trying to compile electron on arm64 with wayland (without xwayland), error below:

 * Building with the following compiler settings:
 *   CC = "clang"
 *   CXX = "clang++"
 *   AR = "llvm-ar"
 *   NM = "llvm-nm"
 *   RANLIB = "llvm-ranlib"
 *   CFLAGS = "-march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined"
 *   CXXFLAGS = "-march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined"
 *   CPPFLAGS = " -D__DATE__= -D__TIME__= -D__TIMESTAMP__="
 *   LDFLAGS = "-Wl,--as-needed"
 *   EXTRA_GN = ""
 *   UGC_SKIP_PATCHES = ""
 *   UGC_SKIP_SUBSTITUTION = ""
 *   UGC_KEEP_BINARIES = ""
 * Configuring Electron...
gn gen --args= is_clang=true clang_use_chrome_plugins=false use_lld=true custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" enable_rust=false is_debug=false dcheck_always_on=false dcheck_is_configurable=false is_component_build=false enable_nacl=false use_system_libpng=true use_system_harfbuzz=true enable_hangout_services_extension=false use_cups=true use_kerberos=false use_pulseaudio=true use_vaapi=false rtc_use_pipewire=true gtk_version=3 disable_fieldtrial_testing_config=true use_bluez=false chrome_pgo_phase=2 v8_enable_builtins_optimization=true optimize_webui=false use_system_freetype=true use_system_libopenjpeg2=false enable_pdf=true use_system_lcms2=true enable_print_preview=true enable_platform_hevc=false enable_hevc_parser_and_hw_decoder=false build_with_tflite_lib=false enable_mdns=false enable_mse_mpeg2ts_stream_parser=true enable_reading_list=false enable_remoting=false enable_reporting=false enable_service_discovery=false exclude_unwind_tables=true google_api_key="" google_default_client_id="" google_default_client_secret="" safe_browsing_mode=0 use_official_google_api_keys=false use_unofficial_version_number=false blink_symbol_level=0 symbol_level=0 enable_iterator_debugging=false enable_swiftshader=false perfetto_use_system_zlib=true use_system_zlib=true use_system_libjpeg=true rtc_build_examples=false use_gold=false use_sysroot=false use_custom_libcxx=false enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=true rtc_use_h264=true ffmpeg_branding="Chrome" target_cpu="arm64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true icu_use_data_file=false use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_libdrm=true use_system_minigbm=true use_xkbcommon=true ozone_platform_x11=false ozone_platform_wayland=true ozone_platform="wayland" use_system_libffi=true arm_control_flow_integrity="none" is_official_build=true use_thin_lto=false thin_lto_enable_optimizations=false symbol_level=0 devtools_skip_typecheck=false import("//electron/build/args/release.gn")  out/Release
ERROR at //ui/events/devices/x11/BUILD.gn:8:1: Assertion failed.
assert(ozone_platform_x11)
^-----
See //electron/BUILD.gn:609:7: which caused the file to be included.
      "//ui/events/devices/x11",
      ^------------------------
 * ERROR: dev-util/electron-27.0.2::pf4public failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_configure
 *   environment, line 4498:  Called die

UPD: Tried setting EXTRA_GN="ozone_platform_x11=true", configuring passed, we'll see how it goes.

ZerdoX-x commented 1 year ago

Compilation failed with ozone_platform_x11. Is error related to arm64?

``` [6513/46736] clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_dotprod/convolve_neon_dotprod.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_dotprod.c -o obj/third_party/libaom/libaom_intrinsics_neon_dotprod/convolve_neon_dotprod.o [6514/46736] clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_dotprod/sum_squares_neon_dotprod.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/aom_dsp/arm/sum_squares_neon_dotprod.c -o obj/third_party/libaom/libaom_intrinsics_neon_dotprod/sum_squares_neon_dotprod.o [6515/46736] clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/compound_convolve_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/compound_convolve_neon_i8mm.o FAILED: obj/third_party/libaom/libaom_intrinsics_neon_i8mm/compound_convolve_neon_i8mm.o clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/compound_convolve_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/compound_convolve_neon_i8mm.o ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:35:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve4_4_2d_h' that is compiled without support for 'i8mm' 35 | int32x4_t sum = vusdotq_lane_s32(horiz_const, permuted_samples, x_filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:57:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_2d_h' that is compiled without support for 'i8mm' 57 | sum[0] = vusdotq_lane_s32(horiz_const, permuted_samples[0], x_filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:58:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_2d_h' that is compiled without support for 'i8mm' 58 | sum[0] = vusdotq_lane_s32(sum[0], permuted_samples[1], x_filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:60:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_2d_h' that is compiled without support for 'i8mm' 60 | sum[1] = vusdotq_lane_s32(horiz_const, permuted_samples[1], x_filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:61:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_2d_h' that is compiled without support for 'i8mm' 61 | sum[1] = vusdotq_lane_s32(sum[1], permuted_samples[2], x_filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:242:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve4_4_x' that is compiled without support for 'i8mm' 242 | int32x4_t sum = vusdotq_lane_s32(round_offset, permuted_samples, x_filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:264:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 264 | sum[0] = vusdotq_lane_s32(round_offset, permuted_samples[0], x_filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:265:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 265 | sum[0] = vusdotq_lane_s32(sum[0], permuted_samples[1], x_filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:267:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 267 | sum[1] = vusdotq_lane_s32(round_offset, permuted_samples[1], x_filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c:268:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 268 | sum[1] = vusdotq_lane_s32(sum[1], permuted_samples[2], x_filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ 10 errors generated. [6516/46736] clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/convolve_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/convolve_neon_i8mm.o FAILED: obj/third_party/libaom/libaom_intrinsics_neon_i8mm/convolve_neon_i8mm.o clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/convolve_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/convolve_neon_i8mm.o ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:46:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_4_x' that is compiled without support for 'i8mm' 46 | sum = vusdotq_laneq_s32(horiz_const, permuted_samples[0], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:47:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_4_x' that is compiled without support for 'i8mm' 47 | sum = vusdotq_laneq_s32(sum, permuted_samples[1], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:48:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_4_x' that is compiled without support for 'i8mm' 48 | sum = vusdotq_laneq_s32(sum, permuted_samples[2], filter, 2); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:71:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_x' that is compiled without support for 'i8mm' 71 | sum[0] = vusdotq_laneq_s32(horiz_const, permuted_samples[0], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:72:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_x' that is compiled without support for 'i8mm' 72 | sum[0] = vusdotq_laneq_s32(sum[0], permuted_samples[1], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:73:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_x' that is compiled without support for 'i8mm' 73 | sum[0] = vusdotq_laneq_s32(sum[0], permuted_samples[2], filter, 2); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:75:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_x' that is compiled without support for 'i8mm' 75 | sum[1] = vusdotq_laneq_s32(horiz_const, permuted_samples[1], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:76:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_x' that is compiled without support for 'i8mm' 76 | sum[1] = vusdotq_laneq_s32(sum[1], permuted_samples[2], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:77:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_x' that is compiled without support for 'i8mm' 77 | sum[1] = vusdotq_laneq_s32(sum[1], permuted_samples[3], filter, 2); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:190:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve4_4_x' that is compiled without support for 'i8mm' 190 | int32x4_t sum = vusdotq_lane_s32(horiz_const, permuted_samples, filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:211:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 211 | sum[0] = vusdotq_lane_s32(horiz_const, permuted_samples[0], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:212:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 212 | sum[0] = vusdotq_lane_s32(sum[0], permuted_samples[1], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:214:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 214 | sum[1] = vusdotq_lane_s32(horiz_const, permuted_samples[1], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:215:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_x' that is compiled without support for 'i8mm' 215 | sum[1] = vusdotq_lane_s32(sum[1], permuted_samples[2], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:332:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_4_2d_h' that is compiled without support for 'i8mm' 332 | sum = vusdotq_laneq_s32(horiz_const, permuted_samples[0], filters, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:333:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_4_2d_h' that is compiled without support for 'i8mm' 333 | sum = vusdotq_laneq_s32(sum, permuted_samples[1], filters, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:334:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_4_2d_h' that is compiled without support for 'i8mm' 334 | sum = vusdotq_laneq_s32(sum, permuted_samples[2], filters, 2); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:358:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_2d_h' that is compiled without support for 'i8mm' 358 | sum[0] = vusdotq_laneq_s32(horiz_const, permuted_samples[0], filters, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/convolve_neon_i8mm.c:359:12: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve12_8_2d_h' that is compiled without support for 'i8mm' 359 | sum[0] = vusdotq_laneq_s32(sum[0], permuted_samples[1], filters, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [6517/46736] clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_dotprod/variance_neon_dotprod.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/aom_dsp/arm/variance_neon_dotprod.c -o obj/third_party/libaom/libaom_intrinsics_neon_dotprod/variance_neon_dotprod.o [6518/46736] clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/warp_plane_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/warp_plane_neon_i8mm.o FAILED: obj/third_party/libaom/libaom_intrinsics_neon_i8mm/warp_plane_neon_i8mm.o clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/warp_plane_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/warp_plane_neon_i8mm.o ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:103:21: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_4x1_f1' that is compiled without support for 'i8mm' 103 | int32x4_t m0123 = vusdotq_laneq_s32(vdupq_n_s32(0), in_0123, f_s8, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:104:11: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_4x1_f1' that is compiled without support for 'i8mm' 104 | m0123 = vusdotq_laneq_s32(m0123, in_4567, f_s8, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:36:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_4x1_f4' that is compiled without support for 'i8mm' 36 | int32x4_t m01 = vusdotq_s32(vdupq_n_s32(0), vcombine_u8(in0, in1), f01_u8); | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:37:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_4x1_f4' that is compiled without support for 'i8mm' 37 | int32x4_t m23 = vusdotq_s32(vdupq_n_s32(0), vcombine_u8(in2, in3), f23_u8); | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:135:21: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f1' that is compiled without support for 'i8mm' 135 | int32x4_t m0123 = vusdotq_laneq_s32(vdupq_n_s32(0), in_0123, f_s8, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:136:11: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f1' that is compiled without support for 'i8mm' 136 | m0123 = vusdotq_laneq_s32(m0123, in_4567, f_s8, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:138:21: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f1' that is compiled without support for 'i8mm' 138 | int32x4_t m4567 = vusdotq_laneq_s32(vdupq_n_s32(0), in_4567, f_s8, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:139:11: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f1' that is compiled without support for 'i8mm' 139 | m4567 = vusdotq_laneq_s32(m4567, in_89ab, f_s8, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:64895:15: note: expanded from macro 'vusdotq_laneq_s32' 64895 | __ret_783 = vusdotq_s32(__s0_783, __s1_783, (int8x16_t)(splatq_laneq_s32(*(int32x4_t *) &__reint_783, __p3_783))); \ | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:70:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f8' that is compiled without support for 'i8mm' 70 | int32x4_t m01 = vusdotq_s32(vdupq_n_s32(0), vcombine_u8(in0, in1), f01_u8); | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:71:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f8' that is compiled without support for 'i8mm' 71 | int32x4_t m23 = vusdotq_s32(vdupq_n_s32(0), vcombine_u8(in2, in3), f23_u8); | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:72:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f8' that is compiled without support for 'i8mm' 72 | int32x4_t m45 = vusdotq_s32(vdupq_n_s32(0), vcombine_u8(in4, in5), f45_u8); | ^ ../../third_party/libaom/source/libaom/av1/common/arm/warp_plane_neon_i8mm.c:73:19: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'horizontal_filter_8x1_f8' that is compiled without support for 'i8mm' 73 | int32x4_t m67 = vusdotq_s32(vdupq_n_s32(0), vcombine_u8(in6, in7), f67_u8); | ^ 12 errors generated. [6519/46736] clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/aom_convolve8_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/aom_convolve8_neon_i8mm.o FAILED: obj/third_party/libaom/libaom_intrinsics_neon_i8mm/aom_convolve8_neon_i8mm.o clang -MMD -MF obj/third_party/libaom/libaom_intrinsics_neon_i8mm/aom_convolve8_neon_i8mm.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libaom/source/config -I../../third_party/libaom/source/config/linux/arm64-cpu-detect -I../../third_party/libaom/source/libaom -march=armv8.2-a+dotprod+i8mm -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5993-1696528594-5b0dc009ef20f14165590ea16444c1ee3dca372e.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -std=c11 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c -o obj/third_party/libaom/libaom_intrinsics_neon_i8mm/aom_convolve8_neon_i8mm.o ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:60:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_4_usdot' that is compiled without support for 'i8mm' 60 | sum = vusdotq_lane_s32(vdupq_n_s32(0), permuted_samples[0], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:61:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_4_usdot' that is compiled without support for 'i8mm' 61 | sum = vusdotq_lane_s32(sum, permuted_samples[1], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:83:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot' that is compiled without support for 'i8mm' 83 | sum0 = vusdotq_lane_s32(vdupq_n_s32(0), permuted_samples[0], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:84:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot' that is compiled without support for 'i8mm' 84 | sum0 = vusdotq_lane_s32(sum0, permuted_samples[1], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:86:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot' that is compiled without support for 'i8mm' 86 | sum1 = vusdotq_lane_s32(vdupq_n_s32(0), permuted_samples[1], filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:87:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot' that is compiled without support for 'i8mm' 87 | sum1 = vusdotq_lane_s32(sum1, permuted_samples[2], filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:217:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_4_usdot_partial' that is compiled without support for 'i8mm' 217 | sum = vusdotq_lane_s32(vdupq_n_s32(0), samples_lo, filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:218:9: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_4_usdot_partial' that is compiled without support for 'i8mm' 218 | sum = vusdotq_lane_s32(sum, samples_hi, filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:234:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot_partial' that is compiled without support for 'i8mm' 234 | sum0 = vusdotq_lane_s32(vdupq_n_s32(0), samples0_lo, filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:235:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot_partial' that is compiled without support for 'i8mm' 235 | sum0 = vusdotq_lane_s32(sum0, samples0_hi, filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:237:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot_partial' that is compiled without support for 'i8mm' 237 | sum1 = vusdotq_lane_s32(vdupq_n_s32(0), samples1_lo, filter, 0); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ ../../third_party/libaom/source/libaom/aom_dsp/arm/aom_convolve8_neon_i8mm.c:238:10: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve8_8_usdot_partial' that is compiled without support for 'i8mm' 238 | sum1 = vusdotq_lane_s32(sum1, samples1_hi, filter, 1); | ^ /usr/lib/llvm/17/bin/../../../../lib/clang/17/include/arm_neon.h:35960:15: note: expanded from macro 'vusdotq_lane_s32' 35960 | __ret_157 = vusdotq_s32(__s0_157, __s1_157, (int8x16_t)(splatq_lane_s32(*(int32x2_t *) &__reint_157, __p3_157))); \ | ^ 12 errors generated. [6520/46736] python3.11 ../../third_party/devtools-frontend/src/third_party/typescript/ts_library.py --tsconfig_output_location gen/third_party/devtools-frontend/src/front_end/models/bindings/bindings-tsconfig.json --deps ../../../extension-api/extension-api-tsconfig.json ../../core/common/bundle-tsconfig.json ../../core/host/bundle-tsconfig.json ../../core/i18n/bundle-tsconfig.json ../../core/platform/bundle-tsconfig.json ../../core/root/bundle-tsconfig.json ../../core/sdk/bundle-tsconfig.json ../../generated/protocol-tsconfig.json ../text_utils/bundle-tsconfig.json ../workspace/bundle-tsconfig.json --front_end_directory ../../third_party/devtools-frontend/src/front_end/models/bindings --reset_timestamps --sources ../../third_party/devtools-frontend/src/front_end/models/bindings/CSSWorkspaceBinding.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/CompilerScriptMapping.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/ContentProviderBasedProject.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/DebuggerLanguagePlugins.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/DebuggerWorkspaceBinding.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/DefaultScriptMapping.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/FileUtils.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/IgnoreListManager.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/LiveLocation.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/NetworkProject.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/PresentationConsoleMessageHelper.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/ResourceMapping.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/ResourceScriptMapping.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/ResourceUtils.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/SASSSourceMapping.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/StylesSourceMapping.ts ../../third_party/devtools-frontend/src/front_end/models/bindings/TempFile.ts ninja: build stopped: subcommand failed. * ERROR: dev-util/electron-27.0.2::pf4public failed (compile phase): * ninja -v -j6 -l0 -C out/Release electron failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 4214: Called eninja '-C' 'out/Release' 'electron' * environment, line 2004: Called die ```

UPD: Trying to emerge with system-av1... Probably will respond tomorrow as I leave compilation over night.

PF4Public commented 1 year ago

And your USE flags are…?

ZerdoX-x commented 1 year ago

-X -bluetooth +clang +cups -custom-cflags -debug -dev-dependencies -gtk4 -hangouts -hevc -kerberos -optimize-thinlto -optimize-webui -paxkernel +pgo +proprietary-codecs +pulseaudio +screencast -system-abseil-cpp +system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg +system-harfbuzz +system-icu +system-jsoncpp +system-libevent +system-libusb -system-libvpx +system-openh264 -system-openjpeg +system-png -system-re2 +system-snappy -system-woff2 +system-zstd -thinlto +ungoogled -vaapi +wayland

Since I cannot launch app-editors/vscodium::gentoo binary, it just provides no errors even with --verbose, I am trying to use app-editors/vscode::pf4public which requires +system-re2 on electron, now I am recompiling it once again, but still, with ozone_platform_x11. For now I am just interested why electron requires this flag for me to properly get configured. Also hope that vscode from your overlay will work for me. I have no electron apps in my environment and I have never used it, not sure what is the source of problems causing vscode to misbehave.

ZerdoX-x commented 1 year ago

clang cups proprietary-codecs pulseaudio screencast system-av1 system-harfbuzz system-icu system-jsoncpp system-libevent system-libusb system-openh264 system-png system-re2* system-snappy ungoogled wayland -X -custom-cflags -debug -dev-dependencies -gtk4 -hangouts -hevc -kerberos (-nvidia) -optimize-thinlto -optimize-webui -pax-kernel -pgo* -pic% (-selinux) -suid% -system-abseil-cpp -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg -system-libvpx -system-openjpeg -system-woff2 -thinlto -vaapi (-bluetooth%) (-system-zstd%*)

emerge --info '=dev-util/electron-25.9.3::pf4public' ``` Portage 3.0.54 (python 3.11.6-final-0, default/linux/arm64/17.0/desktop, gcc-13, glibc-2.38-r6, 6.5.0-asahi-15-edge-ARCH aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.5.0-asahi-15-edge-ARCH-aarch64-with-glibc2.38 KiB Mem: 16010128 total, 1327072 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 01 Nov 2023 09:30:01 +0000 Head commit of repository gentoo: 017bff0a540eab67bd9657d4455f13a62dbcca28 Head commit of repository asahi: 68aa5e68d0dd17dcce4f29ee7e8b333974d48f68 Timestamp of repository cova: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository cova: 1c1c937d4c19822db9949126c42a5b00d0782ddf Head commit of repository fem-overlay: 0f70f7660f16639ef8d25b318ceb7db4ea3a65ff Timestamp of repository fictitiousexistence: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository fictitiousexistence: cefbd8d609e16fc0f589e5a1f2fc088502589cfd Timestamp of repository guru: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository guru: 49c6bcbfeb51b41a748388e16997bcfc944b20ea Timestamp of repository haskell: Sun, 29 Oct 2023 14:31:43 +0000 Head commit of repository haskell: b411a8bbe442a730b58752886a4ab87833678363 Head commit of repository librewolf: 34236949c2dd09fb6049f0e3bc4dbd4b6f88aa6c Timestamp of repository nest: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository nest: 577a6e2dace10e39801a002060b7673fe8098a53 Timestamp of repository pentoo: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository pentoo: 9b9e6597da2f6063efb0f6e95cdc9f44f39175a7 Timestamp of repository pf4public: Mon, 30 Oct 2023 19:02:12 +0000 Head commit of repository pf4public: 8837fa38da4ec7c7aa70bcb2ff1b5bbd3ec77c8e Timestamp of repository qt: Sun, 29 Oct 2023 04:02:58 +0000 Head commit of repository qt: d04b5380fdfaa3699ede55fa7f3417303d99c62a Timestamp of repository salfter: Wed, 01 Nov 2023 03:46:52 +0000 Head commit of repository salfter: 40e290483e50f838c634763b6fad72ddf6eaedd8 Timestamp of repository science: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository science: 6248e7e5a5ab3e7ff91c8fb49a4fee95c20c309c Timestamp of repository vGist: Sun, 29 Oct 2023 04:03:20 +0000 Head commit of repository vGist: 98f7dcec735b54fcd6a4bb77e3035945cb90a062 Timestamp of repository wayland-desktop: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository wayland-desktop: 951e0935f1a5312bb247ebbe8deaaef52c86740f sh bash 5.2_p15-r7 ld GNU ld (Gentoo 2.41 p2) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r7::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.51::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/gcc: 13.2.1_p20231014::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 16.0.6::gentoo, 17.0.3::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.5-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: asahi location: /var/db/repos/asahi sync-type: git sync-uri: https://github.com/chadmed/asahi-overlay masters: gentoo volatile: False cova location: /var/db/repos/cova sync-type: git sync-uri: https://github.com/gentoo-mirror/cova.git masters: gentoo volatile: False fem-overlay location: /var/db/repos/fem-overlay sync-type: git sync-uri: https://gitlab.fem-net.de/gentoo/fem-overlay.git masters: gentoo volatile: False fictitiousexistence location: /var/db/repos/fictitiousexistence sync-type: git sync-uri: https://github.com/gentoo-mirror/fictitiousexistence.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://codeberg.org/librewolf/gentoo.git masters: gentoo volatile: False nest location: /var/db/repos/nest sync-type: git sync-uri: https://github.com/gentoo-mirror/nest.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo volatile: False salfter location: /var/db/repos/salfter sync-type: git sync-uri: https://github.com/gentoo-mirror/salfter.git masters: gentoo volatile: False science location: /var/db/repos/science sync-type: git sync-uri: https://github.com/gentoo-mirror/science.git masters: gentoo volatile: False vGist location: /var/db/repos/vGist sync-type: git sync-uri: https://github.com/gentoo-mirror/vGist.git masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git masters: gentoo volatile: False ACCEPT_KEYWORDS="arm64" ACCEPT_LICENSE="@FREE @FREE GPL-3.0 @BINARY-REDISTRIBUTABLE Vic-Fieger-License linux-fw-redistibutable no-source-code android Steam license(s)" AR="llvm-ar" CBUILD="aarch64-unknown-linux-gnu" CC="clang" CFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="clang++" CXXFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.mirror.web4u.cz/ http://mirror.leaseweb.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="en_US.utf8" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j6" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="llvm-ranlib" SHELL="/usr/bin/nu" USE="a52 aac acl acpi alsa arm64 branding bzip2 cairo cdda cdr clang cli crypt cups dbus dri dts dvdr elogind encode exif ffmpeg flac fortran gdbm gif gpm gstreamer gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 qt6 readline screencast sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="aes crc32 edsp sha1 sha2 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="asahi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ```

/var/tmp/portage/dev-util/electron-25.9.3/temp/build.log: https://0x0.st/Hy5N.log

Now linker fails.. I'll disable LTO for electron

Disabling LTO doesn't work:

FAILED: chrome_sandbox
"python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome_sandbox" -- clang++ -pie -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-mllvm,-enable-machine-outliner=never -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-z,defs -Wl,--as-needed -pie -Wl,--disable-new-dtags -Wl,--as-needed -o "./chrome_sandbox" -Wl,--start-group @"./chrome_sandbox.rsp"  -Wl,--end-group  -latomic -ldl -lpthread -lrt
/usr/bin/aarch64-unknown-linux-gnu-ld.bfd: unrecognised emulation mode: llvm
Supported emulations: aarch64linux aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Trying to compile with gcc

PF4Public commented 1 year ago

app-editors/vscode::pf4public which requires +system-re2 on electron

It does not. What led you to such conclusion?

Now linker fails..

Please do not ignore issue template that states:

Please provide any relevant information including the full build log. Please don't use external services for that.

I'll disable LTO for electron

LTO works just fine.

First you tried 27, now you're building 25. You constantly change flags, you do not provide full build logs. Stop this chaos right away please.

ZerdoX-x commented 1 year ago

Sure, I got you, sorry. I am removing all my redundant use flags, envs, etc. Just trying to emerge app-editors/vscode::pf4public as it was first time.


My make.conf ``` COMMON_FLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" CC="clang" CXX="clang++" AR="llvm-ar" NM="llvm-nm" RANLIB="llvm-ranlib" MAKEOPTS="-j4" USE="-X -gnome -systemd -examples -joystick -bluetooth zstd lto clang wayland dbus elogind pgo pipewire pulseaudio screencast ffmpeg gstreamer qt6" CHOST="aarch64-unknown-linux-gnu" LC_MESSAGES=C L10N="en-US" VIDEO_CARDS="asahi" ```

My explicit USE flags on electron are -pgo ungoogled

emerge -av app-editors/vscode:

[ebuild  N    #] dev-util/electron-25.9.3:25/9.3::pf4public  USE="clang cups proprietary-codecs pulseaudio screencast system-harfbuzz system-icu system-jsoncpp system-libevent system-libusb system-openh264 system-png system-re2 system-snappy ungoogled wayland -X -custom-cflags -debug -dev-dependencies -gtk4 -hangouts -hevc -kerberos (-nvidia) -optimize-thinlto -optimize-webui -pax-kernel -pgo -pic (-selinux) -suid -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg -system-libvpx -system-openjpeg -system-woff2 -thinlto -vaapi" CPU_FLAGS_ARM="(-neon)" 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" 0 KiB
[ebuild  N    #] app-editors/vscode-1.83.1::pf4public  USE="temp-fix -api-proposals -badge-providers -build-online -electron-19 -electron-20 -electron-21 -electron-22 -electron-23 -electron-24 -electron-26 -electron-27 -openvsx -reh -reh-web -substitute-urls" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB
emerge --info '=dev-util/electron-25.9.3::pf4public ``` Portage 3.0.54 (python 3.11.6-final-0, default/linux/arm64/17.0/desktop, gcc-13, glibc-2.38-r6, 6.5.0-asahi-15-edge-ARCH aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.5.0-asahi-15-edge-ARCH-aarch64-with-glibc2.38 KiB Mem: 16010128 total, 480816 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 01 Nov 2023 09:30:01 +0000 Head commit of repository gentoo: 017bff0a540eab67bd9657d4455f13a62dbcca28 Head commit of repository asahi: 68aa5e68d0dd17dcce4f29ee7e8b333974d48f68 Timestamp of repository cova: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository cova: 1c1c937d4c19822db9949126c42a5b00d0782ddf Head commit of repository fem-overlay: 0f70f7660f16639ef8d25b318ceb7db4ea3a65ff Timestamp of repository fictitiousexistence: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository fictitiousexistence: cefbd8d609e16fc0f589e5a1f2fc088502589cfd Timestamp of repository guru: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository guru: 49c6bcbfeb51b41a748388e16997bcfc944b20ea Timestamp of repository haskell: Sun, 29 Oct 2023 14:31:43 +0000 Head commit of repository haskell: b411a8bbe442a730b58752886a4ab87833678363 Head commit of repository librewolf: 34236949c2dd09fb6049f0e3bc4dbd4b6f88aa6c Timestamp of repository nest: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository nest: 577a6e2dace10e39801a002060b7673fe8098a53 Timestamp of repository pentoo: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository pentoo: 9b9e6597da2f6063efb0f6e95cdc9f44f39175a7 Timestamp of repository pf4public: Mon, 30 Oct 2023 19:02:12 +0000 Head commit of repository pf4public: 8837fa38da4ec7c7aa70bcb2ff1b5bbd3ec77c8e Timestamp of repository qt: Sun, 29 Oct 2023 04:02:58 +0000 Head commit of repository qt: d04b5380fdfaa3699ede55fa7f3417303d99c62a Timestamp of repository salfter: Wed, 01 Nov 2023 03:46:52 +0000 Head commit of repository salfter: 40e290483e50f838c634763b6fad72ddf6eaedd8 Timestamp of repository science: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository science: 6248e7e5a5ab3e7ff91c8fb49a4fee95c20c309c Timestamp of repository vGist: Sun, 29 Oct 2023 04:03:20 +0000 Head commit of repository vGist: 98f7dcec735b54fcd6a4bb77e3035945cb90a062 Timestamp of repository wayland-desktop: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository wayland-desktop: 951e0935f1a5312bb247ebbe8deaaef52c86740f sh bash 5.2_p15-r7 ld GNU ld (Gentoo 2.41 p2) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r7::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.51::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/gcc: 13.2.1_p20231014::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 16.0.6::gentoo, 17.0.3::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.5-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 asahi location: /var/db/repos/asahi sync-type: git sync-uri: https://github.com/chadmed/asahi-overlay masters: gentoo volatile: False cova location: /var/db/repos/cova sync-type: git sync-uri: https://github.com/gentoo-mirror/cova.git masters: gentoo volatile: False fem-overlay location: /var/db/repos/fem-overlay sync-type: git sync-uri: https://gitlab.fem-net.de/gentoo/fem-overlay.git masters: gentoo volatile: False fictitiousexistence location: /var/db/repos/fictitiousexistence sync-type: git sync-uri: https://github.com/gentoo-mirror/fictitiousexistence.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://codeberg.org/librewolf/gentoo.git masters: gentoo volatile: False nest location: /var/db/repos/nest sync-type: git sync-uri: https://github.com/gentoo-mirror/nest.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo volatile: False salfter location: /var/db/repos/salfter sync-type: git sync-uri: https://github.com/gentoo-mirror/salfter.git masters: gentoo volatile: False science location: /var/db/repos/science sync-type: git sync-uri: https://github.com/gentoo-mirror/science.git masters: gentoo volatile: False vGist location: /var/db/repos/vGist sync-type: git sync-uri: https://github.com/gentoo-mirror/vGist.git masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git masters: gentoo volatile: False ACCEPT_KEYWORDS="arm64" ACCEPT_LICENSE="@FREE @FREE GPL-3.0 @BINARY-REDISTRIBUTABLE Vic-Fieger-License linux-fw-redistibutable no-source-code android Steam license(s)" AR="llvm-ar" CBUILD="aarch64-unknown-linux-gnu" CC="clang" CFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="clang++" CXXFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.mirror.web4u.cz/ http://mirror.leaseweb.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="en_US.utf8" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j4" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="llvm-ranlib" SHELL="/usr/bin/nu" USE="a52 aac acl acpi alsa arm64 branding bzip2 cairo cdda cdr clang cli crypt cups dbus dri dts dvdr elogind encode exif ffmpeg flac fortran gdbm gif gpm gstreamer gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 qt6 readline screencast sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="aes crc32 edsp sha1 sha2 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="asahi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ```

For some reason I cannot upload build.log using attachments, I get error in devtools console in both librewolf and chromium browsers: POST https://objects-origin.githubusercontent.com/github-production-repository-file-5c1aeb net::ERR_ACCESS_DENIED I created a gist for you: https://gist.github.com/ZerdoX-x/f8b1add4fa866a2379965133f969fb44

PF4Public commented 1 year ago

Looks like electron pulls x11 in: https://github.com/electron/electron/blob/6b6783977020438dd01dcbe8162585300d5e6148/BUILD.gn#L611C1-L612C34

So EXTRA_GN="ozone_platform_x11=true" is indeed needed for it co configure. Perhaps I should add this to ebuild permanently.

You will also need use_lld=true in EXTRA_GN or alternatively build with USE=thinlto in order to get over /usr/bin/aarch64-unknown-linux-gnu-ld.bfd: unrecognised emulation mode: llvm error. I cannot tell you why LTO failed because you didn't provide logs for me to examine, ~but I would guess that you need to upgrade llvm to at least version 17 for it to work~ but that might've been OOM condition.

For some reason I cannot upload build.log using attachments

Maybe GitHub accepts compressed attachment better.

ZerdoX-x commented 1 year ago

Added EXTRA_GN="use_lld=true ozone_platform_x11=true" to /etc/portage/env/dev-util/electron

emerge --info '=dev-util/electron-25.9.3::pf4public' ``` Portage 3.0.54 (python 3.11.6-final-0, default/linux/arm64/17.0/desktop, gcc-13, glibc-2.38-r6, 6.5.0-asahi-15-edge-ARCH aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.5.0-asahi-15-edge-ARCH-aarch64-with-glibc2.38 KiB Mem: 16010128 total, 4516992 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 01 Nov 2023 09:30:01 +0000 Head commit of repository gentoo: 017bff0a540eab67bd9657d4455f13a62dbcca28 Head commit of repository asahi: 68aa5e68d0dd17dcce4f29ee7e8b333974d48f68 Timestamp of repository cova: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository cova: 1c1c937d4c19822db9949126c42a5b00d0782ddf Head commit of repository fem-overlay: 0f70f7660f16639ef8d25b318ceb7db4ea3a65ff Timestamp of repository fictitiousexistence: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository fictitiousexistence: cefbd8d609e16fc0f589e5a1f2fc088502589cfd Timestamp of repository guru: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository guru: 49c6bcbfeb51b41a748388e16997bcfc944b20ea Timestamp of repository haskell: Sun, 29 Oct 2023 14:31:43 +0000 Head commit of repository haskell: b411a8bbe442a730b58752886a4ab87833678363 Head commit of repository librewolf: 34236949c2dd09fb6049f0e3bc4dbd4b6f88aa6c Timestamp of repository nest: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository nest: 577a6e2dace10e39801a002060b7673fe8098a53 Timestamp of repository pentoo: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository pentoo: 9b9e6597da2f6063efb0f6e95cdc9f44f39175a7 Timestamp of repository pf4public: Mon, 30 Oct 2023 19:02:12 +0000 Head commit of repository pf4public: 8837fa38da4ec7c7aa70bcb2ff1b5bbd3ec77c8e Timestamp of repository qt: Sun, 29 Oct 2023 04:02:58 +0000 Head commit of repository qt: d04b5380fdfaa3699ede55fa7f3417303d99c62a Timestamp of repository salfter: Wed, 01 Nov 2023 03:46:52 +0000 Head commit of repository salfter: 40e290483e50f838c634763b6fad72ddf6eaedd8 Timestamp of repository science: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository science: 6248e7e5a5ab3e7ff91c8fb49a4fee95c20c309c Timestamp of repository vGist: Sun, 29 Oct 2023 04:03:20 +0000 Head commit of repository vGist: 98f7dcec735b54fcd6a4bb77e3035945cb90a062 Timestamp of repository wayland-desktop: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository wayland-desktop: 951e0935f1a5312bb247ebbe8deaaef52c86740f sh bash 5.2_p15-r7 ld GNU ld (Gentoo 2.41 p2) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r7::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.51::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/gcc: 13.2.1_p20231014::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 16.0.6::gentoo, 17.0.3::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.5-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes asahi location: /var/db/repos/asahi sync-type: git sync-uri: https://github.com/chadmed/asahi-overlay masters: gentoo volatile: False cova location: /var/db/repos/cova sync-type: git sync-uri: https://github.com/gentoo-mirror/cova.git masters: gentoo volatile: False fem-overlay location: /var/db/repos/fem-overlay sync-type: git sync-uri: https://gitlab.fem-net.de/gentoo/fem-overlay.git masters: gentoo volatile: False fictitiousexistence location: /var/db/repos/fictitiousexistence sync-type: git sync-uri: https://github.com/gentoo-mirror/fictitiousexistence.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://codeberg.org/librewolf/gentoo.git masters: gentoo volatile: False nest location: /var/db/repos/nest sync-type: git sync-uri: https://github.com/gentoo-mirror/nest.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo volatile: False salfter location: /var/db/repos/salfter sync-type: git sync-uri: https://github.com/gentoo-mirror/salfter.git masters: gentoo volatile: False science location: /var/db/repos/science sync-type: git sync-uri: https://github.com/gentoo-mirror/science.git masters: gentoo volatile: False vGist location: /var/db/repos/vGist sync-type: git sync-uri: https://github.com/gentoo-mirror/vGist.git masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git masters: gentoo volatile: False ACCEPT_KEYWORDS="arm64" ACCEPT_LICENSE="@FREE @FREE GPL-3.0 @BINARY-REDISTRIBUTABLE Vic-Fieger-License linux-fw-redistibutable no-source-code android Steam license(s)" AR="llvm-ar" CBUILD="aarch64-unknown-linux-gnu" CC="clang" CFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="clang++" CXXFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.mirror.web4u.cz/ http://mirror.leaseweb.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="en_US.utf8" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j4" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="llvm-ranlib" SHELL="/usr/bin/nu" USE="a52 aac acl acpi alsa arm64 branding bzip2 cairo cdda cdr clang cli crypt cups dbus dri dts dvdr elogind encode exif ffmpeg flac fortran gdbm gif gpm gstreamer gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 qt6 readline screencast sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="aes crc32 edsp sha1 sha2 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="asahi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ```
Error ``` [13438/45179] clang++ -MMD -MF obj/base/base/cpu.o.d -DBASE_IMPLEMENTATION -DIS_RAW_PTR_IMPL -DUSE_SYMBOLIZE -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 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DIS_MAS_BUILD\(\)=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLOG_EXPORT= -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -I../.. -Igen -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/zlib_shim -Igen/shim_headers/jsoncpp_shim -Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare -Wexit-time-destructors -Wglobal-constructors -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -DPROTOBUF_ALLOW_DEPRECATED=1 -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../base/cpu.cc -o obj/base/base/cpu.o FAILED: obj/base/base/cpu.o clang++ -MMD -MF obj/base/base/cpu.o.d -DBASE_IMPLEMENTATION -DIS_RAW_PTR_IMPL -DUSE_SYMBOLIZE -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 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DIS_MAS_BUILD\(\)=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLOG_EXPORT= -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -I../.. -Igen -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/zlib_shim -Igen/shim_headers/jsoncpp_shim -Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -mno-outline -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare -Wexit-time-destructors -Wglobal-constructors -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -DPROTOBUF_ALLOW_DEPRECATED=1 -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=armv8.4-a -pipe -flto=thin -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../base/cpu.cc -o obj/base/base/cpu.o In file included from ../../base/cpu.cc:5: ../../base/cpu.h:90:3: error: unknown type name 'uint8_t' 90 | uint8_t implementer() const { return implementer_; } | ^ ../../base/cpu.h:91:3: error: unknown type name 'uint32_t' 91 | uint32_t part_number() const { return part_number_; } | ^ ../../base/cpu.h:128:3: error: unknown type name 'uint32_t' 128 | uint32_t part_number_ = 0; // ARM MIDR part number | ^ ../../base/cpu.h:129:3: error: unknown type name 'uint8_t' 129 | uint8_t implementer_ = 0; // ARM MIDR implementer identifier | ^ 4 errors generated. ```

build.log

Maybe GitHub accepts compressed attachment better.

I just forgot to chown the build log after copying it to my home dir :D

ZerdoX-x commented 1 year ago

app-editors/vscode::pf4public which requires +system-re2 on electron

It does not. What led you to such conclusion?

emerge -av dev-util/electron:

[ebuild  N    #] dev-util/electron-27.0.2:27/0.2::pf4public  USE="clang cups proprietary-codecs pulseaudio screencast system-harfbuzz system-icu system-jsoncpp system-libevent system-libusb system-openh264 system-png system-snappy system-zstd ungoogled wayland -X -bluetooth -custom-cflags -debug -dev-dependencies -gtk4 -hangouts -hevc -kerberos (-nvidia) -optimize-thinlto -optimize-webui -pax-kernel -pgo (-selinux) -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg -system-libvpx -system-openjpeg -system-re2 -system-woff2 -thinlto -vaapi"

emerge -av app-editors/vscode:

[ebuild  N    #] dev-util/electron-25.9.3:25/9.3::pf4public  USE="clang cups proprietary-codecs pulseaudio screencast system-harfbuzz system-icu system-jsoncpp system-libevent system-libusb system-openh264 system-png system-re2 system-snappy ungoogled wayland -X -custom-cflags -debug -dev-dependencies -gtk4 -hangouts -hevc -kerberos (-nvidia) -optimize-thinlto -optimize-webui -pax-kernel -pgo -pic (-selinux) -suid -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg -system-libvpx -system-openjpeg -system-woff2 -thinlto -vaapi"
[ebuild  N    #] app-editors/vscode-1.83.1::pf4public  USE="temp-fix -api-proposals -badge-providers -build-online -electron-19 -electron-20 -electron-21 -electron-22 -electron-23 -electron-24 -electron-26 -electron-27 -openvsx -reh -reh-web -substitute-urls"

At first I just compiled electron from your repo, hoping that vscodium::gentoo binary will launch, no luck. I compiled electron successfully with EXTRA_GN="ozone_platform_x11=true" and system-av1 USE flag enabled, but I had to unmerge it since as I already said.. Ohh.... These are different electron versions. And now I understand that probably electron was built-in in that vscodium binary that gentoo distributes. Yes, sorry. Just ignore this whole part of the message :)


Also, If I can compile electron 27 with no issues (except system-av1, which must be provided by system in my case). Maybe I can use vscode electron-27 USE flag? Why would we spend time on trying to compile "outdated" version of electron? Nvm, I can see they just migrated to electron 25 https://github.com/microsoft/vscode/issues/184021 That's why vscode package wanted to downgrade my previous electron. I should have tried to compile vscode with electron 27 though :D I think I'll let it compile for another 5 hours over night, while waiting for your feedback if issue above is resolvable.

PF4Public commented 1 year ago

except system-av1, which must be provided by system in my case

What led you to such conclusion? You can use av1 shipped with chromium.

../../base/cpu.h:90:3: error: unknown type name 'uint8_t'

This might be gcc-13 incompatibility. I would suggest you try electron-27. Alternatively you can try adding #include <cstdint> in base/cpu.h. There could be other similar failures, so you'd better try electron-27 anyway.

ZerdoX-x commented 1 year ago

What led you to such conclusion? You can use av1 shipped with chromium.

third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c fails for me: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve4_4_2d_h' that is compiled without support for 'i8mm'

I also found this. This is probably related to arm64 / M1 cpu. I am not sure what i8mm means. Btw M1/M2/M3 cpu on linux use 16K pages, maybe this also leads to some of the errors while compiling, idk.

UPDATE: can be fixed by https://github.com/PF4Public/gentoo-overlay/issues/271#issuecomment-1854941728


There could be other similar failures, so you'd better try electron-27 anyway.

Sure, I have compiled electron-27 successfully, however, configuring vscode does not pass, related to cpu arch.

emerge --info '=app-editors/vscode-1.83.1::pf4public' ``` Portage 3.0.54 (python 3.11.6-final-0, default/linux/arm64/17.0/desktop, gcc-13, glibc-2.38-r6, 6.5.0-asahi-15-edge-ARCH aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.5.0-asahi-15-edge-ARCH-aarch64-with-glibc2.38 KiB Mem: 16010128 total, 7722224 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 01 Nov 2023 09:30:01 +0000 Head commit of repository gentoo: 017bff0a540eab67bd9657d4455f13a62dbcca28 Head commit of repository asahi: 68aa5e68d0dd17dcce4f29ee7e8b333974d48f68 Timestamp of repository cova: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository cova: 1c1c937d4c19822db9949126c42a5b00d0782ddf Head commit of repository fem-overlay: 0f70f7660f16639ef8d25b318ceb7db4ea3a65ff Timestamp of repository fictitiousexistence: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository fictitiousexistence: cefbd8d609e16fc0f589e5a1f2fc088502589cfd Timestamp of repository guru: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository guru: 49c6bcbfeb51b41a748388e16997bcfc944b20ea Timestamp of repository haskell: Sun, 29 Oct 2023 14:31:43 +0000 Head commit of repository haskell: b411a8bbe442a730b58752886a4ab87833678363 Head commit of repository librewolf: 34236949c2dd09fb6049f0e3bc4dbd4b6f88aa6c Timestamp of repository nest: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository nest: 577a6e2dace10e39801a002060b7673fe8098a53 Timestamp of repository pentoo: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository pentoo: 9b9e6597da2f6063efb0f6e95cdc9f44f39175a7 Timestamp of repository pf4public: Mon, 30 Oct 2023 19:02:12 +0000 Head commit of repository pf4public: 8837fa38da4ec7c7aa70bcb2ff1b5bbd3ec77c8e Timestamp of repository qt: Sun, 29 Oct 2023 04:02:58 +0000 Head commit of repository qt: d04b5380fdfaa3699ede55fa7f3417303d99c62a Timestamp of repository salfter: Wed, 01 Nov 2023 03:46:52 +0000 Head commit of repository salfter: 40e290483e50f838c634763b6fad72ddf6eaedd8 Timestamp of repository science: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository science: 6248e7e5a5ab3e7ff91c8fb49a4fee95c20c309c Timestamp of repository vGist: Sun, 29 Oct 2023 04:03:20 +0000 Head commit of repository vGist: 98f7dcec735b54fcd6a4bb77e3035945cb90a062 Timestamp of repository wayland-desktop: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository wayland-desktop: 951e0935f1a5312bb247ebbe8deaaef52c86740f sh bash 5.2_p15-r7 ld GNU ld (Gentoo 2.41 p2) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r7::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.51::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/gcc: 13.2.1_p20231014::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 16.0.6::gentoo, 17.0.3::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.5-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 asahi location: /var/db/repos/asahi sync-type: git sync-uri: https://github.com/chadmed/asahi-overlay masters: gentoo volatile: False cova location: /var/db/repos/cova sync-type: git sync-uri: https://github.com/gentoo-mirror/cova.git masters: gentoo volatile: False fem-overlay location: /var/db/repos/fem-overlay sync-type: git sync-uri: https://gitlab.fem-net.de/gentoo/fem-overlay.git masters: gentoo volatile: False fictitiousexistence location: /var/db/repos/fictitiousexistence sync-type: git sync-uri: https://github.com/gentoo-mirror/fictitiousexistence.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://codeberg.org/librewolf/gentoo.git masters: gentoo volatile: False nest location: /var/db/repos/nest sync-type: git sync-uri: https://github.com/gentoo-mirror/nest.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo volatile: False salfter location: /var/db/repos/salfter sync-type: git sync-uri: https://github.com/gentoo-mirror/salfter.git masters: gentoo volatile: False science location: /var/db/repos/science sync-type: git sync-uri: https://github.com/gentoo-mirror/science.git masters: gentoo volatile: False vGist location: /var/db/repos/vGist sync-type: git sync-uri: https://github.com/gentoo-mirror/vGist.git masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git masters: gentoo volatile: False ACCEPT_KEYWORDS="arm64" ACCEPT_LICENSE="@FREE @FREE GPL-3.0 @BINARY-REDISTRIBUTABLE Vic-Fieger-License linux-fw-redistibutable no-source-code android Steam license(s)" AR="llvm-ar" CBUILD="aarch64-unknown-linux-gnu" CC="clang" CFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="clang++" CXXFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.mirror.web4u.cz/ http://mirror.leaseweb.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="en_US.utf8" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j4" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="llvm-ranlib" SHELL="/usr/bin/nu" USE="a52 aac acl acpi alsa arm64 branding bzip2 cairo cdda cdr clang cli crypt cups dbus dri dts dvdr elogind encode exif ffmpeg flac fortran gdbm gif gpm gstreamer gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 qt6 readline screencast sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="aes crc32 edsp sha1 sha2 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="asahi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ```
Error ``` >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-editors/vscode-1.83.1/work/vscode-1.83.1 ... * ERROR: app-editors/vscode-1.83.1::pf4public failed (configure phase): * Failed to determine target arch, got 'arm64'. * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 3138: Called die * The specific snippet of code: * die "Failed to determine target arch, got '$myarch'."; ```

build.log

PF4Public commented 1 year ago

This is probably related to arm64

Most likely!

Sure, I have compiled electron-27 successfully, however, configuring vscode does not pass, related to cpu arch.

Would you be able to add arm/arm64 condition(s) (in the same manner as existing ones) and test whether you can move forward? I don't have arm hardware, therefore I never tested ebuilds on arm. You seem to be the first one to attempt them on arm :D

ZerdoX-x commented 1 year ago

Would you be able to add arm/arm64 condition(s) (in the same manner as existing ones) and test whether you can move forward?

Sure. I have created local overlay, copied vscode from your overlay to mine, added arm64 and tried:

``` [3/4] Linking dependencies... warning "@microsoft/1ds-core-js > @microsoft/applicationinsights-core-js@2.8.15" has unmet peer dependency "tslib@*". warning " > gulp-postcss@9.0.0" has unmet peer dependency "postcss@^8.0.0". warning " > tsec@0.2.7" has unmet peer dependency "@bazel/bazelisk@>=1.7.5". warning " > tsec@0.2.7" has unmet peer dependency "@bazel/concatjs@>=5.3.0". [4/4] Building fresh packages... error /var/tmp/portage/app-editors/vscode-1.83.1/work/vscode-1.83.1/node_modules/@vscode/policy-watcher: Command failed. Exit code: 1 Command: node-gyp rebuild Arguments: Directory: /var/tmp/portage/app-editors/vscode-1.83.1/work/vscode-1.83.1/node_modules/@vscode/policy-watcher Output: gyp info it worked if it ends with ok gyp info using node-gyp@9.3.1 gyp info using node@18.17.1 | linux | arm64 gyp info find Python using Python version 3.12.0 found at "/usr/bin/python3.12" gyp WARN read config.gypi ENOENT: no such file or directory, open '/usr/include/electron-27/node/include/node/config.gypi' gyp info spawn /usr/bin/python3.12 gyp info spawn args [ gyp info spawn args '/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/var/tmp/portage/app-editors/vscode-1.83.1/work/vscode-1.83.1/node_modules/@vscode/policy-watcher/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/include/electron-27/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/usr/include/electron-27/node', gyp info spawn args '-Dnode_gyp_dir=/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/usr/include/electron-27/node/$(Configuration)/node.lib', gyp info spawn args '-Dmodule_root_dir=/var/tmp/portage/app-editors/vscode-1.83.1/work/vscode-1.83.1/node_modules/@vscode/policy-watcher', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] Traceback (most recent call last): File "/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 42, in import gyp # noqa: E402 ^^^^^^^^^^ File "/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in import gyp.input File "/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/lib/configure.js:325:16) gyp ERR! stack at ChildProcess.emit (node:events:514:28) gyp ERR! stack at Process.onexit (node:internal/child_process:291:12) gyp ERR! System Linux 6.5.0-asahi-15-edge-ARCH gyp ERR! command "/usr/lib64/electron-27/electron" "/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /var/tmp/portage/app-editors/vscode-1.83.1/work/vscode-1.83.1/node_modules/@vscode/policy-watcher gyp ERR! node -v v18.17.1 gyp ERR! node-gyp -v v9.3.1 gyp ERR! not ok info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. * ERROR: app-editors/vscode-1.83.1::zerdox failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 3163: Called die * The specific snippet of code: * yarn install --frozen-lockfile ${ONLINE_OFFLINE} --arch=${VSCODE_ARCH} --no-progress || die; ```
ZerdoX-x commented 1 year ago

Same goes for 1.84:

info ``` Portage 3.0.54 (python 3.11.6-final-0, default/linux/arm64/17.0/desktop, gcc-13, glibc-2.38-r6, 6.5.0-asahi-15-edge-ARCH aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.5.0-asahi-15-edge-ARCH-aarch64-with-glibc2.38 KiB Mem: 16010128 total, 497488 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 03 Nov 2023 14:00:01 +0000 Head commit of repository gentoo: a2c46219818d4a19be671700eeb79e8f919f775e Head commit of repository asahi: ac9e211fa3fd99c63ce7f6c57e84683758756e92 Timestamp of repository cova: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository cova: 1c1c937d4c19822db9949126c42a5b00d0782ddf Head commit of repository fem-overlay: 0f70f7660f16639ef8d25b318ceb7db4ea3a65ff Timestamp of repository fictitiousexistence: Sun, 29 Oct 2023 04:03:30 +0000 Head commit of repository fictitiousexistence: cefbd8d609e16fc0f589e5a1f2fc088502589cfd Timestamp of repository guru: Thu, 02 Nov 2023 09:31:52 +0000 Head commit of repository guru: 080708e5cd56c4e4faa72243fe4d4c31eec5aa49 Timestamp of repository haskell: Sun, 29 Oct 2023 14:31:43 +0000 Head commit of repository haskell: b411a8bbe442a730b58752886a4ab87833678363 Head commit of repository librewolf: 34236949c2dd09fb6049f0e3bc4dbd4b6f88aa6c Timestamp of repository nest: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository nest: 577a6e2dace10e39801a002060b7673fe8098a53 Timestamp of repository pentoo: Wed, 01 Nov 2023 08:16:46 +0000 Head commit of repository pentoo: 9b9e6597da2f6063efb0f6e95cdc9f44f39175a7 Timestamp of repository pf4public: Fri, 03 Nov 2023 04:31:45 +0000 Head commit of repository pf4public: 64f559362af1f0c41ef0421f3efabd47fb95c5c7 Timestamp of repository qt: Sun, 29 Oct 2023 04:02:58 +0000 Head commit of repository qt: d04b5380fdfaa3699ede55fa7f3417303d99c62a Timestamp of repository salfter: Wed, 01 Nov 2023 19:01:54 +0000 Head commit of repository salfter: d6f8130b0b1532aa206dc3b0a3f01f8e7867a83f Timestamp of repository science: Mon, 30 Oct 2023 19:02:08 +0000 Head commit of repository science: 6248e7e5a5ab3e7ff91c8fb49a4fee95c20c309c Timestamp of repository vGist: Sun, 29 Oct 2023 04:03:20 +0000 Head commit of repository vGist: 98f7dcec735b54fcd6a4bb77e3035945cb90a062 Timestamp of repository wayland-desktop: Thu, 02 Nov 2023 20:01:53 +0000 Head commit of repository wayland-desktop: 09ceb3b5520ad4a50a80b2600b9a1ba8fca94f9e sh bash 5.2_p15-r7 ld GNU ld (Gentoo 2.41 p2) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r7::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.51::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/gcc: 13.2.1_p20231014::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 16.0.6::gentoo, 17.0.3::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.5-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: asahi location: /var/db/repos/asahi sync-type: git sync-uri: https://github.com/chadmed/asahi-overlay masters: gentoo volatile: False cova location: /var/db/repos/cova sync-type: git sync-uri: https://github.com/gentoo-mirror/cova.git masters: gentoo volatile: False fem-overlay location: /var/db/repos/fem-overlay sync-type: git sync-uri: https://gitlab.fem-net.de/gentoo/fem-overlay.git masters: gentoo volatile: False fictitiousexistence location: /var/db/repos/fictitiousexistence sync-type: git sync-uri: https://github.com/gentoo-mirror/fictitiousexistence.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://codeberg.org/librewolf/gentoo.git masters: gentoo volatile: False nest location: /var/db/repos/nest sync-type: git sync-uri: https://github.com/gentoo-mirror/nest.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo volatile: False salfter location: /var/db/repos/salfter sync-type: git sync-uri: https://github.com/gentoo-mirror/salfter.git masters: gentoo volatile: False science location: /var/db/repos/science sync-type: git sync-uri: https://github.com/gentoo-mirror/science.git masters: gentoo volatile: False vGist location: /var/db/repos/vGist sync-type: git sync-uri: https://github.com/gentoo-mirror/vGist.git masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git masters: gentoo volatile: False zerdox location: /var/db/repos/zerdox masters: gentoo volatile: False ACCEPT_KEYWORDS="arm64" ACCEPT_LICENSE="@FREE @FREE GPL-3.0 @BINARY-REDISTRIBUTABLE Vic-Fieger-License linux-fw-redistibutable no-source-code android Steam license(s)" AR="llvm-ar" CBUILD="aarch64-unknown-linux-gnu" CC="clang" CFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="clang++" CXXFLAGS="-march=armv8.4-a -O2 -pipe -flto=thin" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.mirror.web4u.cz/ http://mirror.leaseweb.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="en_US.utf8" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j4" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="llvm-ranlib" SHELL="/usr/bin/nu" USE="a52 aac acl acpi alsa arm64 branding bzip2 cairo cdda cdr clang cli crypt cups dbus dri dts dvdr elogind encode exif ffmpeg flac fortran gdbm gif gpm gstreamer gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 qt6 readline screencast sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="aes crc32 edsp sha1 sha2 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="asahi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ```

build.log

PF4Public commented 1 year ago

Do you have python-3.11? It fails due to python-3.12.

ZerdoX-x commented 1 year ago

Do you have python-3.11? It fails due to python-3.12.

Yes.

equery l "*python*" gives both 3.11 and 3.12

python3 --version gives 3.11

equery b python3:

dev-lang/python-3.11.6 (/usr/lib/python-exec/python3.11/python3 -> ../../../bin/python3.11)
dev-lang/python-3.12.0_p1 (/usr/lib/python-exec/python3.12/python3 -> ../../../bin/python3.12)
dev-lang/python-exec-2.4.10 (/usr/bin/python3 -> python-exec2c)

As you can see in the build log, it chooses 3.12

PF4Public commented 1 year ago

https://github.com/PF4Public/gentoo-overlay/commit/69a00c08c83fe0e25f120cf2f005b0f0427fff35

ZerdoX-x commented 1 year ago

Ty. Sorry for delay, was busy welcoming the new year of my life ;)

Release/obj.target/vscode-policy-watcher/src/main.o: file not recognized: file format not recognized
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vscode-policy-watcher.target.mk:146: Release/obj.target/vscode-policy-watcher.node] Error 1
make: Leaving directory '/var/tmp/portage/app-editors/vscode-1.84.0/work/vscode-1.84.0/node_modules/@vscode/policy-watcher/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
gyp ERR! stack     at Process.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 6.5.0-asahi-15-edge-ARCH
gyp ERR! command "/usr/lib64/electron-27/electron" "/usr/lib64/electron-27/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/tmp/portage/app-editors/vscode-1.84.0/work/vscode-1.84.0/node_modules/@vscode/policy-watcher
gyp ERR! node -v v18.17.1
gyp ERR! node-gyp -v v9.3.1
gyp ERR! not ok

build.log

ZerdoX-x commented 1 year ago
[01:38:58] [mangler] Mangling /var/tmp/portage/app-editors/vscode-1.84.0/work/vscode-1.84.0/extensions/typescript-language-features/tsconfig.json

<--- Last few GCs --->

[29:0x380b4e0000]     3145 ms: Scavenge 95.1 (106.6) -> 92.0 (108.8) MB, 3.44 / 0.00 ms  (average mu = 0.994, current mu = 0.994) allocation failure;
[29:0x380b4e0000]     3161 ms: Scavenge 97.7 (109.3) -> 94.3 (111.5) MB, 3.34 / 0.00 ms  (average mu = 0.994, current mu = 0.994) allocation failure;
[29:0x380b4e0000]     3181 ms: Scavenge 100.1 (111.8) -> 96.5 (112.3) MB, 6.59 / 0.00 ms  (average mu = 0.994, current mu = 0.994) allocation failure;

<--- JS stacktrace --->

FATAL ERROR: NewSpace::EnsureCurrentCapacity Allocation failed - JavaScript heap out of memory
/usr/lib64/electron-27/node: line 3:    28 Aborted                 ELECTRON_RUN_AS_NODE=1 $(dirname "$0")/electron "${@}"
 * ERROR: app-editors/vscode-1.84.0::zerdox failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 3112:  Called die
 * The specific snippet of code:
 *           node --max_old_space_size=8192 node_modules/gulp/bin/gulp.js vscode-linux-${VSCODE_ARCH}-min || die;

Disabled LTO for vscode. How to overcome nodejs heap issues?

PF4Public commented 1 year ago

How to overcome nodejs heap issues?

You cannot. This thing happens from time to time. Continue the build or restart the build from scratch.

EDIT: --max_old_space_size=8192 was supposed to fix that and it indeed fixed that long time ago, but this issue reappeared recently. Unfortunately I had no time to debug it so far.

ZerdoX-x commented 1 year ago

Sheeesh

image

--max_old_space_size=10192 didn't work either. But --max_old_space_size=12192 worked from a first attempt for me.

Could you please add arm64 support? Because package itself has arm64 support but you didn't added that condition

I hope vscode will work fine with electron 27, just wish they could upgrade ASAP, even I don't really plan to use vscode, just wanted to test one unique extension for it

ZerdoX-x commented 1 year ago

Btw, electron requires npm flag for nodejs, which conflicts with corepack flag, is this not resolvable? Gentoo team does not want to add slots for nodejs, so I don't really know how to overcome this. Do you know what corepack is? It it possible to utilize it?

I am a frontend developer and I heavily rely on nodejs, and I would like to keep corepack, it's actually more important to me to have corepack rather then having ability to use shitty electron apps ;)

UPD: Actually I could use something like fnm (nvm but better, node version manager) to install nodejs for my personal use, as I do with rustup. But I am still curios.

ZerdoX-x commented 1 year ago

You can add ozone_platform_x11, add arm64 support and the whole issue is resolved.


Not sure about LLD and max_old_space_size. Second one preventing me from switching from my own local overlay to yours one.

ZerdoX-x commented 1 year ago

Also.. Do you know if code-oss picks code-flags.conf? Because for me it does not pick it up, maybe it's different name or smth?

PF4Public commented 1 year ago

But --max_old_space_size=12192 worked from a first attempt for me.

That might've been a coincidence. Try again several times, would it be consistently a success? If yes, then you've found the fix — great!

Sheeesh

I'm glad you made it!

Could you please add arm64 support?

Would you like to submit PR?

I hope vscode will work fine with electron 27

Works for me.

I don't really plan to use vscode

It's a pity :D

ability to use shitty electron apps ;)

vscode included? ;)

Btw, electron requires npm flag for nodejs

Yep, see https://github.com/PF4Public/gentoo-overlay/issues/154

code-oss picks code-flags.conf?

Probably not. Never used them.

ZerdoX-x commented 1 year ago

Try again several times, would it be consistently a success?

Sure, I'll try to compile 5 times and give feedback here. I have tried to compile with 8 gigs 3-4 times, no success. One time with 10 gigs, no success. One time with 12 gigs is success. Anyways it will depend on each machine and each setup, not sure if we need to change it in the current ebuild. I would assume that.. Why not? Most laptops/desktops have either 8 or 16 gigs of memory, and I don't think current ebuild will success on 8 gig setup, so it's not a big deal I think. If person has low end machine but wants to compile vscode himself, he might try to lower amount of memory himself as I did, but in another way.

Would you like to submit PR?

Yeah, thank you. Maybe today, maybe in a couple of days. Quite busy now, but I'll do it :+1:

Works for me.

That's great to hear

I don't really plan to use vscode

It's a pity :D

I am a vim chad yk XD

ability to use shitty electron apps ;)

vscode included? ;)

Yeah any product. Using electon as a developer (/team) is a sin, especially when Tauri arrived. BTW thank you for the overlay :DDD

Yep, see https://github.com/PF4Public/gentoo-overlay/issues/154

Will take a look later, thanks. I have already switched from system node to FNM (which anyways give you ability to use system node when you want to)

ZerdoX-x commented 1 year ago

Let's keep this open just until will push changes to the ebuilds that we discovered here. Thanks!

PF4Public commented 1 year ago

Sure, I'll try to compile 5 times and give feedback here.

So, how did it go?

ZerdoX-x commented 1 year ago

So, how did it go?

Sorry for THAT delay :) Got quite busy. It worked for me.

PF4Public commented 1 year ago

Sorry for THAT delay :) Got quite busy. It worked for me.

5 times in a row without issues? Perhaps I should consider increasing the limit by default then…

ZerdoX-x commented 11 months ago

What led you to such conclusion? You can use av1 shipped with chromium.

third_party/libaom/source/libaom/av1/common/arm/compound_convolve_neon_i8mm.c fails for me: error: always_inline function 'vusdotq_s32' requires target feature 'i8mm', but would be inlined into function 'convolve4_4_2d_h' that is compiled without support for 'i8mm'

I also found this. This is probably related to arm64 / M1 cpu. I am not sure what i8mm means. Btw M1/M2/M3 cpu on linux use 16K pages, maybe this also leads to some of the errors while compiling, idk.

If anyone finds this thread and bumps into the same compile error, please add i8mm to your -march like this: COMMON_FLAGS="-march=armv8.4-a+simd+crypto+i8mm+bf16 -mtune=native -O2 -pipe" Source: https://wiki.gentoo.org/wiki/User:Jared/Gentoo_On_An_M1_Mac

ZerdoX-x commented 11 months ago

So EXTRA_GN="ozone_platform_x11=true" is indeed needed for it co configure. Perhaps I should add this to ebuild permanently.

1) Could you please add ozone_platform_x11 to ebuild? 2) and increase max_old_space_size from 8192 to 12192?

If these two will be added, issue can be completely closed, all of the problems caused by my rare setup are resolved :D

I just would like to remove my package.env overrides so I can just use your ebuilds "as is"

PF4Public commented 11 months ago
  1. Could you please add ozone_platform_x11 to ebuild?

Sure

2. and increase max_old_space_size from 8192 to 12192?

I tried that, but it didn't improve CI. If that makes it better at least on arm, I can restore it of course.

Also.. Do you know if code-oss picks code-flags.conf? Because for me it does not pick it up, maybe it's different name or smth?

There was an error by the way. Should work now.