Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www-client/ungoogled-chromium-133.0.6943.53_p1: Build failing #407

Open
1mouse3 opened this issue Feb 12, 2025 · 7 comments
Open

www-client/ungoogled-chromium-133.0.6943.53_p1: Build failing #407

1mouse3 opened this issue Feb 12, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@1mouse3
Copy link

1mouse3 commented Feb 12, 2025

I mosly got this ebuild fixed that I pulled from the liguros repo, it still has one issue that keeps it from finishing over something with dracut. It dose compleat enough that I get a working kernel in gentoo, and is build using the GrapheneOS source updated by anthrax.

https://github.com/1mouse3/liguros-xxx/blob/main/sys-kernel/debian-sources/debian-sources-6.1.124_p1-r1.ebuild

This broke the current install of chromium over this being set to 0 by default and have to run this as "--no-sandbox".

sysctl -w kernel.unprivileged_userns_clone=0

Trying to reinstall this, I get this error that Im coming up short on the cause.

FAILED: protozero_plugin 
"python3.12" "../../build/toolchain/gcc_link_wrapper.py" --output="./protozero_plugin" -- x86_64-pc-linux-gnu-g++ -fuse-ld=lld -B../../third_party/llvm-build/Release+Asserts/bin -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -rdynamic -pie -Wl,--disable-new-dtags -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=bfd -o "./protozero_plugin" -Wl,--start-group @"./protozero_plugin.rsp" -Wl,--end-group   -latomic -ldl -lpthread -lrt -lz -Wl,--start-group  -Wl,--end-group 
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: unrecognized option '--icf=all'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: use the --help option for usage information
collect2: error: ld returned 1 exit status

This comes up early in the build and is not respecting my build flag of "-fuse-ld=bfd", and is trying to use gold and lld that is not installed. I have reinstalled binutils, gcc, glibc, python, nodejs and ninja along with adding systemtap flag to gcc and glibc. I do not know where it is getting this info from but is not in my /etc tree.

 * Checking whether python3_12 is suitable ...
 *   dev-lang/python:3.12[xml(+)] ...                                                                                                                                                [ ok ]
 *   python_check_deps ...
 *     dev-python/setuptools[python_targets_python3_12(-)] ...                                                                                                                       [ ok ]
 * Using python3.12 to build (via EPYTHON)
 * Building with the following compiler settings:
 *   CC = "x86_64-pc-linux-gnu-gcc"
 *   CXX = "x86_64-pc-linux-gnu-g++"
 *   AR = "x86_64-pc-linux-gnu-ar"
 *   NM = "x86_64-pc-linux-gnu-nm"
 *   RANLIB = ""
 *   CFLAGS = "-pipe -march=skylake-avx512 -pipe -Wno-builtin-macro-redefined"
 *   CXXFLAGS = "-pipe -march=skylake-avx512 -pipe -Wno-builtin-macro-redefined"
 *   CPPFLAGS = " -D__DATE__= -D__TIME__= -D__TIMESTAMP__="
 *   LDFLAGS = "-Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=bfd"
 *   EXTRA_GN = ""
 *   UGC_SKIP_PATCHES = ""
 *   UGC_SKIP_SUBSTITUTION = ""
 *   UGC_KEEP_BINARIES = ""
 * Configuring Chromium ...
gn gen --args= is_clang=false use_lld=true custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" enable_rust=false enable_rust_png=false is_debug=false dcheck_always_on=false dcheck_is_configurable=false enable_iterator_debugging=false symbol_level=0 blink_symbol_level=0 v8_symbol_level=0 is_component_build=false enable_nacl=false use_system_libpng=true use_system_harfbuzz=true enable_hangout_services_extension=false enable_widevine=false use_cups=true use_kerberos=false use_pulseaudio=true use_vaapi=true rtc_use_pipewire=false gtk_version=3 link_pulseaudio=true disable_fieldtrial_testing_config=true use_gold=false use_sysroot=false use_custom_libcxx=false use_bluez=false is_cfi=false chrome_pgo_phase=0 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=true enable_hevc_parser_and_hw_decoder=true 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 perfetto_use_system_zlib=true use_system_zlib=true use_system_libjpeg=true rtc_build_examples=false enable_chromium_prelude=false enable_updater=false enable_update_notifications=false enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=true ffmpeg_branding="Chrome" target_cpu="x64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true icu_use_data_file=false enable_nocompile_tests=false enable_freetype=true use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_minigbm=true use_xkbcommon=true moc_qt6_path="/usr/lib64/qt6/libexec" use_qt=true use_qt6=true ozone_platform_x11=true ozone_platform_wayland=false ozone_platform="x11" is_official_build=true use_thin_lto=false thin_lto_enable_optimizations=false  out/Release
*********************************************************************
WARNING: Support for linking against a C++ standard library other 
  than the one in-tree (buildtools/third_party/libc++) is deprecated
  and support for this will end. We plan to remove this option in 
  M138.
*********************************************************************
WARNING at the command-line "--args":1:668: Build argument has no effect.
 is_clang=false use_lld=true custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" enable_rust=false enable_rust_png=false is_debug=false dcheck_always_on=false dcheck_is_configurable=false enable_iterator_debugging=false symbol_level=0 blink_symbol_level=0 v8_symbol_level=0 is_component_build=false enable_nacl=false use_system_libpng=true use_system_harfbuzz=true enable_hangout_services_extension=false enable_widevine=false use_cups=true use_kerberos=false use_pulseaudio=true use_vaapi=true rtc_use_pipewire=false gtk_version=3 link_pulseaudio=true disable_fieldtrial_testing_config=true use_gold=false use_sysroot=false use_custom_libcxx=false use_bluez=false is_cfi=false chrome_pgo_phase=0 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=true enable_hevc_parser_and_hw_decoder=true 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 perfetto_use_system_zlib=true use_system_zlib=true use_system_libjpeg=true rtc_build_examples=false enable_chromium_prelude=false enable_updater=false enable_update_notifications=false enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=true ffmpeg_branding="Chrome" target_cpu="x64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true icu_use_data_file=false enable_nocompile_tests=false enable_freetype=true use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_minigbm=true use_xkbcommon=true moc_qt6_path="/usr/lib64/qt6/libexec" use_qt=true use_qt6=true ozone_platform_x11=true ozone_platform_wayland=false ozone_platform="x11" is_official_build=true use_thin_lto=false thin_lto_enable_optimizations=false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^----                                                                                
Did you mean "use_lld"?                                                                                                                                                                     

The variable "use_gold" was set as a build argument
but never appeared in a declare_args() block in any buildfile.

To view all possible args, run "gn args --list <out_dir>"

The build continued as if that argument was unspecified.

I am building chromium with this flag stack.

USE="X cups hevc nvidia official proprietary-codecs pulseaudio qt6 system-ffmpeg system-harfbuzz system-icu system-jsoncpp system-libusb system-openh264 system-png system-zstd vaapi
@1mouse3 1mouse3 added the bug Something isn't working label Feb 12, 2025
@PF4Public
Copy link
Owner

I mosly got this ebuild fixed that I pulled from the liguros repo

Have you considered filing the issue there?

@1mouse3
Copy link
Author

1mouse3 commented Feb 12, 2025

I have not got a lot of response from them on it, been left on my own to fix it mostly. The issue left with the ebuild is one last sandbox violation that needs solved with dracut.

https://gitlab.com/liguros/bugs/-/issues/339

I need EFI stub for the embeaded bootloader of my new board, but dracut requires systemd for that. So I will be working on getting this mkinitramfs to work instead of dracut. I am running a backup of gentoo to build liguros in a chroot, what I got so far works enough to get a matching 64bit kernel to use on both.

https://github.com/1mouse3/liguros-xxx/blob/main/sys-kernel/mkinitramfs/mkinitramfs-0.5.ebuild

Mkinitramfs was wanting a compact libc, so was also going to bring this gentoo ebuild back from dead since there was a update with source. Getting this working was the need for the 64bit only kernel.

https://github.com/1mouse3/liguros-xxx/blob/main/sys-libs/uclibc-ng/uclibc-ng-1.0.51.ebuild

I only brough the kernel up, so that you know what broke chromium. My only question to you is over this protozero_plugin of chromium, and why it wants lld/gold over bfd that is give as option? Because Im trying to reinstall it to see if that will get it to work with "kernel.unprivileged_userns_clone=0" and not have to disable the sandbox for chromium.

@PF4Public
Copy link
Owner

My only question to you is over this protozero_plugin of chromium, and why it wants lld/gold over bfd that is give as option?

It should, especially that you enable nvidia. Why it didn't — I have no idea. Maybe something is wrong with your system and/or chroot.

@1mouse3
Copy link
Author

1mouse3 commented Feb 13, 2025

Thanks, that leads me somewhere and dose get it a 1/3 the way through the build. This is a log of that run with "-nvidia" flag.

https://www.dropbox.com/scl/fi/px35mf5ick1lifrq13lx5/chromium-build-1.log?rlkey=d92qbyb3yb06tfzfi4xymcwyy&st=h9bohg5h&raw=1

Thing of note I see is this...

gn gen --args= is_clang=false use_lld=false custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" enable_rust=false enable_rust_png=false is_debug=false dcheck_always_on=false dcheck_is_configurable=false enable_iterator_debugging=false symbol_level=0 blink_symbol_level=0 v8_symbol_level=0 is_component_build=false enable_nacl=false use_system_libpng=true use_system_harfbuzz=true enable_hangout_services_extension=false enable_widevine=false use_cups=true use_kerberos=false use_pulseaudio=true use_vaapi=true rtc_use_pipewire=false gtk_version=3 link_pulseaudio=true disable_fieldtrial_testing_config=true use_gold=false use_sysroot=false use_custom_libcxx=false use_bluez=false is_cfi=false chrome_pgo_phase=0 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=true enable_hevc_parser_and_hw_decoder=true 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 perfetto_use_system_zlib=true use_system_zlib=true use_system_libjpeg=true rtc_build_examples=false enable_chromium_prelude=false enable_updater=false enable_update_notifications=false enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=true ffmpeg_branding="Chrome" target_cpu="x64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true icu_use_data_file=false enable_nocompile_tests=false enable_freetype=true use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_minigbm=true use_xkbcommon=true moc_qt6_path="/usr/lib64/qt6/libexec" use_qt=true use_qt6=true ozone_platform_x11=true ozone_platform_wayland=false ozone_platform="x11" is_official_build=true use_thin_lto=false thin_lto_enable_optimizations=false  out/Release

Vs this from the run with the "nvidia" flag. Here its trying to use lld and without that flag its false, but both are trying to force me to use gold.

gn gen --args= is_clang=false use_lld=true custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" enable_rust=false enable_rust_png=false is_debug=false dcheck_always_on=false dcheck_is_configurable=false enable_iterator_debugging=false symbol_level=0 blink_symbol_level=0 v8_symbol_level=0 is_component_build=false enable_nacl=false use_system_libpng=true use_system_harfbuzz=true enable_hangout_services_extension=false enable_widevine=false use_cups=true use_kerberos=false use_pulseaudio=true use_vaapi=true rtc_use_pipewire=false gtk_version=3 link_pulseaudio=true disable_fieldtrial_testing_config=true use_gold=false use_sysroot=false use_custom_libcxx=false use_bluez=false is_cfi=false chrome_pgo_phase=0 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=true enable_hevc_parser_and_hw_decoder=true 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 perfetto_use_system_zlib=true use_system_zlib=true use_system_libjpeg=true rtc_build_examples=false enable_chromium_prelude=false enable_updater=false enable_update_notifications=false enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=true ffmpeg_branding="Chrome" target_cpu="x64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true icu_use_data_file=false enable_nocompile_tests=false enable_freetype=true use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_minigbm=true use_xkbcommon=true moc_qt6_path="/usr/lib64/qt6/libexec" use_qt=true use_qt6=true ozone_platform_x11=true ozone_platform_wayland=false ozone_platform="x11" is_official_build=true use_thin_lto=false thin_lto_enable_optimizations=false  out/Release

Next thing I saw in that log of the last run of the build, is that it was tripping over C++ calls and seeming to want C instead. It was warnings early in the build but it became a failer for building the ffmpeg part. I have gcc built with C++ and object C++ support, is this a issue for chromium? It wont let me build it without multilib for some reason on the the gentoo backup, Im not messing with stuff in chroot right now.

USE="cet (cxx) (default-stack-clash-protection) (default-znow) fortran hardened (multilib) nls objc objc++ objc-gc openmp (pie) (ssp) systemtap zstd"

This is in the portage make.conf of the gentoo backup.

COMMON_FLAGS="-march=skylake-avx512 -O2 -pipe"
LDFLAGS="${LDFLAGS} -fuse-ld=bfd"
CFLAGS="${CFLAGS} ${COMMON_FLAGS}"
CXXFLAGS="${CXXFLAGS} ${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPT="-j26 -l26"

I did make a bunch of changes to gentoo past the state of this backup, and copyed the /etc tree from that to the liguros chroot. So took a look to see what changes I had made and saw this addition, it did not make a difference putting it in the make.conf.

EXTRA_GN="use_lld=false use_gold=false is_clang=false"

Looked into that and found this...

https://forums.gentoo.org/viewtopic-t-1074724-start-0.html

It gave a different place to stick it.

/etc/portage/package.env:
www-client/chromium chromium.conf

/etc/portage/env/chromium.conf:
EXTRA_GN="use_jumbo_build=true jumbo_file_merge_limit=25"

So I did this, it did not like the merge_limit variable.

/etc/portage/package.env:
www-client/ungoogled-chromium chromium.conf

/etc/portage/env/chromium.conf:
EXTRA_GN="use_jumbo_build=true use_lld=false use_gold=false is_clang=false"

It did not change this for with the "nvidia" flag...

gn gen --args= is_clang=false use_lld=true custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" enable_rust=false enable_rust_png=false is_debug=false dcheck_always_on=false dcheck_is_configurable=false enable_iterator_debugging=false symbol_level=0 blink_symbol_level=0 v8_symbol_level=0 is_component_build=false enable_nacl=false use_system_libpng=true use_system_harfbuzz=true enable_hangout_services_extension=false enable_widevine=false use_cups=true use_kerberos=false use_pulseaudio=true use_vaapi=true rtc_use_pipewire=false gtk_version=3 link_pulseaudio=true disable_fieldtrial_testing_config=true use_gold=false use_sysroot=false use_custom_libcxx=false use_bluez=false is_cfi=false chrome_pgo_phase=0 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=true enable_hevc_parser_and_hw_decoder=true 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 perfetto_use_system_zlib=true use_system_zlib=true use_system_libjpeg=true rtc_build_examples=false enable_chromium_prelude=false enable_updater=false enable_update_notifications=false enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=true ffmpeg_branding="Chrome" target_cpu="x64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true icu_use_data_file=false enable_nocompile_tests=false enable_freetype=true use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_minigbm=true use_xkbcommon=true moc_qt6_path="/usr/lib64/qt6/libexec" use_qt=true use_qt6=true ozone_platform_x11=true ozone_platform_wayland=false ozone_platform="x11" is_official_build=true use_thin_lto=false thin_lto_enable_optimizations=false  out/Release

But it did force change those variables that chromium was trying to set, and got rid of this. So the issue with protozero_plugin is solved I think, since now build to the ffmpeg failer with the "nvidia" flag.

Did you mean "use_lld"?                                                                                                                                                                     

The variable "use_gold" was set as a build argument
but never appeared in a declare_args() block in any buildfile.

To view all possible args, run "gn args --list <out_dir>"

The build continued as if that argument was unspecified.

@PF4Public
Copy link
Owner

This is a log

Sorry, but I mentioned in issue template that I only open GitHub attachments

but both are trying to force me to use gold

As I said, there is something wrong on your side. This conditional works for me on Gentoo.

Oh wait, I just noticed you're building with gcc. In this case it is not a surprise that it uses bfd and not lld. clang is on by default (speaking for my ebuilds of course) and if you're insisting on building with gcc, you're on your own. Google does not support building with GCC, Gentoo does not support building with gcc.

Looked into that and found this...

https://forums.gentoo.org/viewtopic-t-1074724-start-0.html

It gave a different place to stick it.

It is a very old information, Google dropped use_jumbo_build long time ago

@1mouse3
Copy link
Author

1mouse3 commented Feb 14, 2025

Ok, I was just going to rebuild the dependencys for these flags...

"system-ffmpeg system-harfbuzz system-icu system-jsoncpp system-libusb system-openh264 system-png system-zstd"

But it gave issues over a old install of qt6 and kde6, so went down this rabbit hole to get it all sorted and updated.

USE="pulseaudio vulkan -llvm_slot_19 -llvm_slot_18 -llvm" emerge -avO dev-qt/qtquick3d dev-qt/qtsensors dev-qt/qttranslations dev-qt/qtbase dev-qt/qtdeclarative kde-frameworks/kwindowsystem kde-frameworks/kio dev-qt/qt5compat kde-plasma/polkit-kde-agent sys-auth/polkit dev-qt/qtwayland dev-qt/qtsvg kde-plasma/layer-shell-qt kde-frameworks/kwindowsystem kde-plasma/kwayland kde-frameworks/qqc2-desktop-style kde-frameworks/qqc2-desktop-style kde-plasma/kwin kde-plasma/kscreenlocker kde-plasma/kscreen kde-frameworks/kdbusaddons kde-plasma/libkscreen gui-apps/qt6ct kde-plasma/kglobalacceld kde-frameworks/kxmlgui kde-frameworks/kidletime kde-plasma/libplasma kde-frameworks/kjobwidgets kde-frameworks/kio kde-frameworks/kiconthemes kde-frameworks/kguiaddons kde-frameworks/kirigami kde-frameworks/kconfigwidgets kde-frameworks/krunner kde-frameworks/kjobwidgets kde-frameworks/kparts kde-frameworks/kauth kde-frameworks/kcmutils kde-frameworks/kservice kde-frameworks/kbookmarks kde-frameworks/kxmlgui kde-frameworks/kcompletion kde-frameworks/kcrash kde-frameworks/kdeclarative kde-frameworks/ksvg  kde-frameworks/breeze-icons kde-frameworks/kguiaddons kde-frameworks/kiconthemes kde-frameworks/kcodecs kde-frameworks/kconfigwidgets kde-frameworks/kiconthemes kde-frameworks/kcolorscheme kde-frameworks/kiconthemes kde-frameworks/frameworkintegration kde-frameworks/knewstuff kde-frameworks/kpackage kde-frameworks/kconfigwidgets kde-frameworks/kconfigwidgets dev-qt/qtdeclarative dev-qt/qtquick3d dev-qt/qtbase dev-qt/qtmultimedia dev-qt/qttranslations dev-qt/qtsvg dev-qt/qtbase dev-qt/qttools dev-libs/libqtxdg x11-libs/libfm-qt dev-qt/qttranslations lxqt-base/lxqt-qtplugin x11-misc/pcmanfm-qt lxqt-base/lxqt-meta lxqt-base/lxqt-qtplugin lxqt-base/lxqt-config lxqt-base/lxqt-qtplugin dev-qt/qtpositioning dev-qt/qtwayland 

Then asked portage if it was happy with what I have installed.

USE="vulkan pulseaudio -llvm_slot_19 -llvm_slot_18 -llvm -clang cxx threads" emerge -avDU @world

So that put me in a state where can have another shot at these.

"system-ffmpeg system-harfbuzz system-icu system-jsoncpp system-libusb system-openh264 system-png system-zstd"

ICU is part the boost stack, so that all got reinstalled again.

emerge -av app-arch/bzip2 app-arch/xz-utils app-arch/zstd dev-build/b2  dev-lang/python dev-libs/icu dev-python/numpy sys-libs/zlib virtual/libiconv virtual/mpi boost

Nodejs wanted to throw a fit and not reinstall, found this flag being on by default thats a security risk and calls in llvm.

USE="-inspector" emerge -av nodejs

But in the end found it missing tracing arays, that the mpi and numpy flags of boost give. So rebuilt this stack once again

USE="lzma mpi numpy tools" emerge -av app-arch/bzip2 app-arch/xz-utils app-arch/zstd dev-build/b2  dev-lang/python dev-libs/icu dev-python/numpy sys-libs/zlib virtual/libiconv virtual/mpi boost

So asked portage if it was happy yet again, and this time nodejs built without issue.

USE="vulkan pulseaudio -llvm_slot_19 -llvm_slot_18 -llvm -clang cxx threads" emerge -avDU @world

So at this point my gentoo backup is updated, working and built to C/C++ standarded. So had another shot at chromium and is still failing over ffmpeg.

"Sorry, but I mentioned in issue template that I only open GitHub attachments"

Sorry missed that and here is that log as a github attachment.

chromium-build-1.log

"Oh wait, I just noticed you're building with gcc. In this case it is not a surprise that it uses bfd and not lld. clang is on by default (speaking for my ebuilds of course) and if you're insisting on building with gcc, you're on your own. Google does not support building with GCC, Gentoo does not support building with gcc."

This is the first I heard that gentoo is clang only, when there is enough documentation to get it to work with gcc. That explains why I have been fighting with this ebuild at every update and not others. A year ago when I switched to gentoo, I fought with gibberish errrors for a month trying to get clang to work and just wiped the drive in the end. I spent a decade with slackware and another with arch, and my dad had red hat on a IBM 486 so C/C++ is what I know. I made the switch when building cyanogenmod for zte phones I had then, and perfer sony phones since dont have to do that to get a clean install. Android at that time was C/C++ and have not built any the newer branches from scratch, so did not see any reason that google would be clang only as well.

https://github.com/1mouse3/android_kernel_zte_nex
https://github.com/1mouse3/android_device_zte_aurora

@PF4Public
Copy link
Owner

Sorry missed that and here is that log as a github attachment.

chromium-build-1.log

I already told you I won't be able to help you with gcc. Try building with clang.

This is the first I heard that gentoo is clang only

Gentoo is fine. Chromium and derevatives do not support gcc.

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

No branches or pull requests

2 participants