Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2024 14:53:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279180] www/qt6-webengine: fails to build with SNDIO=on (sndio_output.cc:14:27: error: redefinition of 'kSampleFormat')
Message-ID:  <bug-279180-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279180

            Bug ID: 279180
           Summary: www/qt6-webengine: fails to build with SNDIO=3Don
                    (sndio_output.cc:14:27: error: redefinition of
                    'kSampleFormat')
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: nimaje+fbz@bureaucracy.de
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

when trying to build qt6-webengine with sndio as audio backend it fails with

[ 53% 15533/29113] CXX obj/media/audio/audio/audio_jumbo_7.o
FAILED: obj/media/audio/audio/audio_jumbo_7.o=20
/usr/local/libexec/ccache/c++ -MMD -MF obj/media/audio/audio/audio_jumbo_7.=
o.d
-DUSE_AURA=3D1 -DUSE_OZONE=3D1 -DOFFICIAL_BUILD -DTOOLKIT_QT
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=3D64
-D_LARGEFILE_SOURC
E -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRI=
ND
-DDYNAMIC_ANNOTATIONS_ENABLED=3D0 -DIS_MEDIA_IMPL -DUSE_SNDIO -DSK_ENABLE_S=
KSL
-DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=3D\"../../skia
/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS
-DSK_DISABLE_LEGACY_SKSURFACE_METHODS
-DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_FACTORIES
-DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_METHODS
-DSK_DISABLE_LEGACY_SKSURFACE_FACTORIES -D
SK_DISABLE_LEGACY_SKSURFACE_FLUSH -DSK_DISABLE_LEGACY_SKSURFACE_AS_IMAGE
-DSK_DISABLE_LEGACY_SKSURFACE_DISPLAYLIST
-DSK_DISABLE_LEGACY_IMAGE_SUBSET_METHODS
-DSK_DISABLE_LEGACY_IMAGE_COLORSPACE_METHODS -DSK_DISABLE_LEGACY_IMAG
E_RELEASE_PROCS -DSK_DISABLE_LEGACY_GL_BACKEND_SURFACE
-DSK_DISABLE_LEGACY_INIT_DECODERS -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG
-DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_GANESH
-DSK_GPU_WORKAROUNDS_HEADER=3D\"gpu/config/gpu_drive
r_bug_workaround_autogen.h\" -DSK_GL -DSK_VULKAN=3D1 -DSK_GRAPHITE
-DVK_USE_PLATFORM_XCB_KHR -DUSE_GLX -DUSE_EGL -DLIBYUV_DISABLE_NEON
-DUSE_SYSTEM_LIBEVENT=3D1 -DU_USING_ICU_NAMESPACE=3D0 -DU_ENABLE_DYLOAD=3D0
-DUSE_CHROMIUM_ICU=3D1 -
DU_ENABLE_TRACING=3D1 -DU_ENABLE_RESOURCE_TRACING=3D0 -DU_STATIC_IMPLEMENTA=
TION
-DICU_UTIL_DATA_IMPL=3DICU_UTIL_DATA_FILE -DFLAC__NO_DLL -I. -Igen
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium
-I../../../.
./../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/third_party/per=
fetto/include
-Igen/third_party/perfetto/build_config -Igen/third_party/perfetto
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromi
um/third_party/skia -Igen/third_party/skia
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/wuffs/src/release/c
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_
party/vulkan/include
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/vulkan-deps/vulkan-headers/src/include
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/net=
/third
_party/quiche/overrides
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/net=
/third_party/quiche/src/quiche/common/platform/default
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/net=
/third_party/quiche/src
-Igen/third_party/dawn/include
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/dawn/include
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/khronos
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/gpu
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/libyuv/include
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/abseil-cpp
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/boringssl/src/include
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/protobuf/src
-Igen/protoc_out
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/icu/source/common
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/icu/source/i18n
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/ipcz/include
-I../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/thi=
rd_party/ced/src
-Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -Wimplicit-fallthrough
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration
-Wno-deprecated-declarations -Wenum-compare-conditional
-Wno-ignored-pragma-optimize -Wshadow -fno-delete-null-pointer-checks
-fno-ident -fno-strict-aliasing --param=3Dssp-buffer-size=3D4 -fstack-prote=
ctor
-Wno-unknown-argument -Wno-unknown-attributes -Wno-unknown-warning-option
-Wno-ignored-attributes -Wno-predefined-identifier-outside-function
-Wno-self-assign -Wno-unknown-pragmas -fno-unwind-tables
-fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics
-fmerge-all-constants -m64 -msse3 -no-canonical-prefixes -O2 -fdata-sections
-ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0
-fvisibility=3Dhidden -Wheader-hygiene -Wstring-conversion
-Wtautological-overlap-compare -Wexit-time-destructors -Wno-redundant-parens
-Wno-redundant-parens -DPROTOBUF_ALLOW_DEPRECATED=3D1 -I/usr/local/include/=
opus
-Wno-parentheses-equality -Wno-tautological-compare
-Wno-thread-safety-attributes -Wno-undefined-bool-conversion
-Wno-tautological-undefined-compare -std=3Dc++20 -Wno-trigraphs -fno-except=
ions
-fno-rtti -fvisibility-inlines-hidden -isystem /usr/local/include -O2 -pipe
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -c gen/media/audio/audio_jumbo_7.cc -o
obj/media/audio/audio/audio_jumbo_7.o
In file included from gen/media/audio/audio_jumbo_7.cc:14:
./../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/med=
ia/audio/sndio/sndio_output.cc:14:27:
error: redefinition of 'kSampleFormat'
static const SampleFormat kSampleFormat =3D kSampleFormatS16;
                          ^
./../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/med=
ia/audio/sndio/sndio_input.cc:13:27:
note: previous definition is here
static const SampleFormat kSampleFormat =3D kSampleFormatS16;
                          ^
1 error generated.


Which seems to be an artefact of a jumbo build, as sndio_output.cc and
sndio_input.cc define kSampleFormat as static which should work fine if they
were seperate compilation units and later linked together, instead of being
#included into audio_jumbo_7.cc and be one compilation unit as a result.

I can provide the full build log, if need be

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279180-7788>