Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 813249 - dev-qt/qtwebengine-5.15.2_p20210824-r1 - error: unknown argument: '-mpreferred-stack-boundary=5' with clang-12
Summary: dev-qt/qtwebengine-5.15.2_p20210824-r1 - error: unknown argument: '-mpreferre...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL: https://bugs.gentoo.org/774186
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2021-09-15 16:32 UTC by Michael
Modified: 2021-09-28 16:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.zip,112.54 KB, application/zip)
2021-09-15 16:33 UTC, Michael
Details
emerge --info (info,6.68 KB, text/plain)
2021-09-15 16:37 UTC, Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2021-09-15 16:32:05 UTC
A known workaround is exporting:
 EXTRA_GN="use_lld=true is_clang=true clang_use_chrome_plugins=false"

Fails with:

clang-12: error: unknown argument: '-mpreferred-stack-boundary=5'
clang-12: error: unknown argument: '-mincoming-stack-boundary=4'
[2926/23897] /usr/lib/llvm/12/bin/clang -MMD -MF obj/third_party/dav1d/dav1d_entrypoints/thread_task.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCONFIG_LOG=0 -DSTACK_ALIGNMENT=32 -DDAV1D_API= -Igen -I../../../../qtwebengine-5.15.2_p20210824/src/3rdparty/chromium -I../../../../qtwebengine-5.15.2_p20210824/src/3rdparty/chromium/third_party/dav1d/libdav1d -I../../../../qtwebengine-5.15.2_p20210824/src/3rdparty/chromium/third_party/dav1d/libdav1d/include -I../../../../qtwebengine-5.15.2_p20210824/src/3rdparty/chromium/third_party/dav1d/libdav1d/include/dav1d -I../../../../qtwebengine-5.15.2_p20210824/src/3rdparty/chromium/third_party/dav1d/config/linux/x64 -I../../../../qtwebengine-5.15.2_p20210824/src/3rdparty/chromium/third_party/dav1d/version -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE=200112L -std=c99 -mpreferred-stack-boundary=5 -D_GNU_SOURCE -mincoming-stack-boundary=4 -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu11 -c ../../../../qtwebengine-5.15.2_p20210824/src/3rdparty/chromium/third_party/dav1d/libdav1d/src/thread_task.c -o obj/third_party/dav1d/dav1d_entrypoints/thread_task.o
[31mFAILED: [0mobj/third_party/dav1d/dav1d_entrypoints/thread_task.o
Comment 1 Michael 2021-09-15 16:33:51 UTC
Created attachment 739434 [details]
Build log
Comment 2 Michael 2021-09-15 16:37:08 UTC
Created attachment 739437 [details]
emerge --info
Comment 3 Perfect Gentleman 2021-09-28 03:29:51 UTC
(In reply to Michael from comment #0)
> A known workaround is exporting:
>  EXTRA_GN="use_lld=true is_clang=true clang_use_chrome_plugins=false"
> 

How can I export EXTRA_GN?
It seems qtwebengine does not accept EXTRA_GN through env/package.env/
Comment 4 Perfect Gentleman 2021-09-28 04:08:01 UTC
Confirm. The same with qtwebengine-5.15.2.9999
Comment 5 Michael 2021-09-28 04:58:30 UTC
(In reply to Perfect Gentleman from comment #3)
> (In reply to Michael from comment #0)
> > A known workaround is exporting:
> >  EXTRA_GN="use_lld=true is_clang=true clang_use_chrome_plugins=false"
> > 
> 
> How can I export EXTRA_GN?
> It seems qtwebengine does not accept EXTRA_GN through env/package.env/

this is exactly how I did it, with package.env
But push comes to shove, you can do `EXTRA_GN="use_lld=true is_clang=true clang_use_chrome_plugins=false" emerge qtwebengine`
Comment 6 Perfect Gentleman 2021-09-28 13:11:04 UTC
(In reply to Michael from comment #5)
> > How can I export EXTRA_GN?
> > It seems qtwebengine does not accept EXTRA_GN through env/package.env/
> 
> this is exactly how I did it, with package.env
> But push comes to shove, you can do `EXTRA_GN="use_lld=true is_clang=true
> clang_use_chrome_plugins=false" emerge qtwebengine`

Doesn't work in both cases
---
clear;sudo EXTRA_GN="use_lld=true is_clang=true clang_use_chrome_plugins=false" emerge qtwebengine::qt
---
Project MESSAGE: Running: /tmp/portage/dev-qt/qtwebengine-5.15.2.9999/work/qtwebengine-5.15.2.9999_build/src/3rdparty/gn/out/Release/gn gen /tmp/portage/dev-qt/qtwebengine-5.15.2.9999/work/qtwebengine-5.15.2.9999_build/src/core/release --script-executable=/tmp/portage/dev-qt/qtwebengine-5.15.2.9999/temp/python2.7/bin/python2 --args='use_qt=true init_stack_vars=false is_component_build=false is_shared=true enable_debugallocation=false enable_media_remoting=false enable_message_center=false enable_nacl=false enable_remoting=false enable_reporting=false enable_resource_allowlist_generation=false enable_swiftshader=false enable_swiftshader_vulkan=false angle_enable_swiftshader=false enable_web_speech=false enable_widevine=true forbid_non_component_debug_builds=false has_native_accessibility=false safe_browsing_mode=0 skia_use_dawn=false toolkit_views=false treat_warnings_as_errors=false fatal_linker_warnings=false use_allocator_shim=false use_allocator="none" use_custom_libcxx=false chrome_pgo_phase=0 enable_hangout_services_extension=true optimize_webui=false enable_js_type_check=false v8_use_external_startup_data=false strip_absolute_paths_from_debug_symbols=false use_jumbo_build=true jumbo_file_merge_limit=8 jumbo_build_excluded=["browser"] enable_precompiled_headers=false is_official_build=true is_debug=false symbol_level=0 blink_symbol_level=0 remove_v8base_debug_symbols=true use_cups=false use_gio=false use_gnome_keyring=false use_udev=true use_bundled_fontconfig=false use_sysroot=false enable_session_service=false is_cfi=false use_ozone=true use_x11=false ozone_auto_platforms=false ozone_platform_headless=false ozone_platform_external=true ozone_platform="qt" ozone_extra_path="/tmp/portage/dev-qt/qtwebengine-5.15.2.9999/work/qtwebengine-5.15.2.9999/src/core/ozone/ozone_extra.gni" use_gold=false use_lld=false is_clang=false custom_toolchain="/tmp/portage/dev-qt/qtwebengine-5.15.2.9999/work/qtwebengine-5.15.2.9999_build/src/toolchain:target" host_toolchain="/tmp/portage/dev-qt/qtwebengine-5.15.2.9999/work/qtwebengine-5.15.2.9999_build/src/toolchain:host" host_cpu="x64" pkg_config="pkg-config" host_pkg_config="/usr/bin/pkg-config" use_system_zlib=true use_system_minizip=true pdfium_use_system_zlib=true use_system_libpng=true pdfium_use_system_libpng=true use_system_libjpeg=true use_system_freetype=true use_system_harfbuzz=true use_glib=false enable_basic_printing=true enable_print_preview=true enable_pdf=true enable_plugins=true enable_spellcheck=true enable_webrtc=true proprietary_codecs=true ffmpeg_branding="Chrome" rtc_use_h264=true enable_extensions=true use_kerberos=false use_pulseaudio=true use_alsa=true ozone_platform_x11=true use_xkbcommon=true rtc_use_x11=true use_system_libevent=true use_system_libwebp=true use_system_libxml=true use_system_libxslt=true use_system_opus=true use_system_snappy=true use_system_libvpx=true use_system_icu=true icu_use_data_file=false use_system_ffmpeg=true use_system_re2=true use_system_lcms2=true qtwebengine_target="/tmp/portage/dev-qt/qtwebengine-5.15.2.9999/work/qtwebengine-5.15.2.9999_build/src/core/release:QtWebEngineCore"' --root=/tmp/portage/dev-qt/qtwebengine-5.15.2.9999/work/qtwebengine-5.15.2.9999/src/3rdparty/chromium 
---
Comment 7 Perfect Gentleman 2021-09-28 13:21:48 UTC
Or afiu qtwebengine won't be build with Clang if qtcore was built with GCC, right?
Comment 8 Michael 2021-09-28 14:37:14 UTC
No, I have qtcore built with GCC.

I'm not sure this is the appropriate venue for user support, I suggest you join the IRC channel, or the forums. Not that I mind, but I have a feeling someone is about to stop our party.
Comment 9 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-09-28 15:07:02 UTC
Closing, reporter decided he shouldn't have filed this.

Note that clang compatibility information probably have a better place on the wiki rather than Bugzilla.

(In reply to Perfect Gentleman from comment #6)
> (In reply to Michael from comment #5)
> > > How can I export EXTRA_GN?
> > > It seems qtwebengine does not accept EXTRA_GN through env/package.env/
> > 
> > this is exactly how I did it, with package.env
> > But push comes to shove, you can do `EXTRA_GN="use_lld=true is_clang=true
> > clang_use_chrome_plugins=false" emerge qtwebengine`
> 
> Doesn't work in both cases
> ---
> clear;sudo EXTRA_GN="use_lld=true is_clang=true
> clang_use_chrome_plugins=false" emerge qtwebengine::qt

Try with the Gentoo repo's qtwebengine. If you need further support please seek such on the forums or IRC.
Comment 10 Michael 2021-09-28 15:07:43 UTC
(In reply to Perfect Gentleman from comment #7)
> Or afiu qtwebengine won't be build with Clang if qtcore was built with GCC,
> right?

https://bugs.gentoo.org/774186