FAILED: libraries/lib-module-manager/CMakeFiles/lib-module-manager.dir/PluginHost.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DBASIC_UI_API="" -DCOMPONENTS_API="" -DEXCEPTIONS_API="" -DEXPERIMENTAL_CRASH_REPORT -DEXPERIMENTAL_DRAGGABLE_PLAY_HEAD -DEXPERIMENTAL_FULL_WASAPI -DEXPERIMENTAL_HALF_WAVE -DEXPERIMENTAL_KEY_VIEW -DEXPERIMENTAL_MIDI_OUT -DEXPERIMENTAL_MODULE_PREFS -DEXPERIMENTAL_NOISE_REDUCTION -DEXPERIMENTAL_NOTETRACK_OVERLAY -DEXPERIMENTAL_NYQUIST_SPLIT_CONTROL -DEXPERIMENTAL_PUNCH_AND_ROLL -DEXPERIMENTAL_SCIENCE_FILTERS -DEXPERIMENTAL_SCROLLING_LIMITS -DEXPERIMENTAL_SCRUBBING_SCROLL_WHEEL -DEXPERIMENTAL_SCRUBBING_SUPPORT -DEXPERIMENTAL_SPECTRAL_EDITING -DEXPERIMENTAL_SYNC_LOCK -DEXPERIMENTAL_THEMING -DEXPERIMENTAL_TWO_TONE_TIME_RULER -DEXPERIMENTAL_ZOOM_TOGGLE_BUTTON -DFILES_API="" -DIPC_API="" -DMODULE_MANAGER_API="" -DPREFERENCES_API="" -DSTRINGS_API="" -DSTRING_UTILS_API="" -DUTILITY_API="" -DWXUSINGDLL -DXML_API="" -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -Dlib_module_manager_EXPORTS -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-module-manager -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-components -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-strings -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-utility -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-files -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-exceptions -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-basic-ui -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-preferences -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-xml -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-string-utils -I/var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-ipc -isystem /usr/lib64/wx/include/gtk3-unicode-3.2-gtk3 -isystem /usr/include/wx-3.2-gtk3 -DNDEBUG -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -flto=auto -ffat-lto-objects -std=gnu++17 -fPIC -include /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5_build/src/private/configunix.h -DAUDACITY_VERSION=3 -DAUDACITY_RELEASE=2 -DAUDACITY_REVISION=5 -DAUDACITY_MODLEVEL=0 -DAUDACITY_VERSION_STRING=L\"3.2.5\" -DAUDACITY_FILE_VERSION=L\"3,2,5,0\" -DPROHIBITED==delete -Dsafenew=new -DWXINTL_NO_GETTEXT_MACRO -U_DEBUG -DIS_RELEASE -MD -MT libraries/lib-module-manager/CMakeFiles/lib-module-manager.dir/PluginHost.cpp.o -MF libraries/lib-module-manager/CMakeFiles/lib-module-manager.dir/PluginHost.cpp.o.d -o libraries/lib-module-manager/CMakeFiles/lib-module-manager.dir/PluginHost.cpp.o -c /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-module-manager/PluginHost.cpp /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-module-manager/PluginHost.cpp: In function ‘void {anonymous}::Discover(detail::PluginValidationResult&, const wxString&, const wxString&)’: /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-module-manager/PluginHost.cpp:40:42: error: cannot convert ‘{anonymous}::Discover(detail::PluginValidationResult&, const wxString&, const wxString&)::<lambda(PluginProvider*, ComponentInterface*)>’ to ‘const PluginProvider::RegistrationCallback&’ {aka ‘const std::function<const wxString&(PluginProvider*, ComponentInterface*)>&’} 40 | pluginPath, errorMessage, [&](PluginProvider *provider, ComponentInterface *ident) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | {anonymous}::Discover(detail::PluginValidationResult&, const wxString&, const wxString&)::<lambda(PluginProvider*, ComponentInterface*)> 41 | { | ~ 42 | //Workaround: use DefaultRegistrationCallback to create all descriptors for us | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 43 | //and then put a copy into result | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 44 | auto id = PluginManager::DefaultRegistrationCallback(provider, ident); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 45 | if(const auto ptr = PluginManager::Get().GetPlugin(id)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 46 | { | ~ 47 | auto desc = *ptr; | ~~~~~~~~~~~~~~~~~ 48 | try | ~~~ 49 | { | ~ 50 | if(validator) | ~~~~~~~~~~~~~ 51 | validator->Validate(*ident); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 52 | } | ~ 53 | catch(...) | ~~~~~~~~~~ 54 | { | ~ 55 | desc.SetEnabled(false); | ~~~~~~~~~~~~~~~~~~~~~~~ 56 | desc.SetValid(false); | ~~~~~~~~~~~~~~~~~~~~~ 57 | } | ~ 58 | result.Add(std::move(desc)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 59 | } | ~ 60 | return id; | ~~~~~~~~~~ 61 | }); | ~ In file included from /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-module-manager/PluginInterface.h:48, from /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-module-manager/PluginManager.h:23, from /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-module-manager/PluginHost.cpp:26: /var/tmp/portage/media-sound/audacity-3.2.5/work/audacity-Audacity-3.2.5/libraries/lib-components/PluginProvider.h:171:35: note: initializing argument 3 of ‘virtual unsigned int PluginProvider::DiscoverPluginsAtPath(const PluginPath&, TranslatableString&, const RegistrationCallback&)’ 171 | const RegistrationCallback &callback ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Exactly the bug is still here. Portage 3.0.46 (python 3.10.11-final-0, default/linux/amd64/17.1/no-multilib, gcc-13, glibc-2.37-r2, 6.2.10-gentoo-dist x86_64) ================================================================= System uname: Linux-6.2.10-gentoo-dist-x86_64-AMD_Ryzen_9_7950X_16-Core_Processor-with-glibc2.37 KiB Mem: 65554164 total, 2840512 free KiB Swap: 268435452 total, 264708860 free Timestamp of repository gentoo: Sat, 15 Apr 2023 07:30:01 +0000 Head commit of repository gentoo: 5a4b79157d6e8bb1345580ee90fa2febc985294f sh bash 5.2_p15-r2 ld GNU ld (Gentoo 2.40 p4) 2.40.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0-r2::gentoo dev-lang/python: 3.10.11::gentoo, 3.11.3::gentoo dev-lang/rust: 1.68.2::gentoo dev-util/cmake: 3.26.3::gentoo dev-util/meson: 1.0.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/openrc: 0.46::gentoo sys-apps/sandbox: 2.30-r1::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r4::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r1::gentoo, 16.0.1::gentoo sys-devel/gcc: 12.2.1_p20230304::gentoo, 13.0.1_pre20230409-r4::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.1::gentoo sys-devel/llvm: 15.0.7::gentoo, 16.0.1::gentoo sys-devel/make: 4.4.1::gentoo sys-kernel/linux-headers: 6.2::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r2::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-max-age: 24 sync-rsync-verify-jobs: 16 sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64 ~*" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=znver4 -O2 -pipe" CHOST="x86_64-pc-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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=znver4 -O2 -pipe" 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 -pipe" 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 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 -pipe" GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ http://mirror.leaseweb.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.netcologne.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ http://mirror.init7.net/gentoo/ http://tux.rainside.sk/gentoo/ http://gentoo.mirror.web4u.cz/" LANG="en_US" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j32" 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" SHELL="/bin/bash" USE="X a52 aac acl alsa amd64 bzip2 cli connection-sharing context contrib contribdnn crypt cups dbus dcaenc dhcpcd dri dts emboss exif fam fbcon fdk ffmpeg fortran frei0r ftp gdbm geoclue geolocation gimp gps gui iconv icu iptables jpeg kde lame latex libass libglvnd libtirpc llvm lm-sensors lto mac minizip ncurses no-multilib nptl nvenc ogg opencl opengl openmp opus pam parallel-compiler pcre plasma pthread pulseaudio qml qt5 readline resolvconf sdl seccomp split-usr ssl syslog tbb test-rust text theora threads unicode v4l vaapi vector-icons vorbis vulkan x264 x265 xattr xml zlib" ABI_X86="64" ADA_TARGET="gnat_2021" AMDGPU_TARGETS="gfx1031" 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="stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby32" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev amd radeon radeonsi vesa" 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, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
(In reply to he.ousia from comment #1) > Exactly the bug is still here. Yep, like I said in the commit message for the other patch, this one isn't fixed.
(In reply to Sam James from comment #2) > (In reply to he.ousia from comment #1) > > Exactly the bug is still here. > > Yep, like I said in the commit message for the other patch, this one isn't > fixed. The upstream fixed it in 3.3 (due to next week) according to a comment in the upstream code.
The following upstream commit that fixes this issue can be found here: https://github.com/audacity/audacity/commit/a49d145ef5e3046273c879be0a21d48ecd4dcab7 The other issue reported in bug #899764 is fixed at well by the same above commit.
Created attachment 861207 [details, diff] Updated version of audacity-3.2.5-gcc13.patch Upstream commit a49d145ef5e3046273c879be0a21d48ecd4dcab7 modified for 3.2.5. Original audacity-3.2.5-gcc13.patch (550B) isn't enough. Audacity 3.2.5 + this patch compile successfully with latest stable gcc-12.2.1_p20230428-r1 as with unstable gcc-13.1.0-r1.
(In reply to Jiří Moravec from comment #5) > Created attachment 861207 [details, diff] [details, diff] > Updated version of audacity-3.2.5-gcc13.patch > > Upstream commit a49d145ef5e3046273c879be0a21d48ecd4dcab7 modified for 3.2.5. > Original audacity-3.2.5-gcc13.patch (550B) isn't enough. > > Audacity 3.2.5 + this patch compile successfully with latest stable > gcc-12.2.1_p20230428-r1 as with unstable gcc-13.1.0-r1. Hmm, i dropped this patch in /etc/portage/patches/media-sound/audacity, and it fails to apply to audacity-3.2.5: ``` * Applying user patches from /etc/portage/patches ... * Applying audacity-3.2.5-gcc13.patch ... patching file lib-src/libnyquist/nyquist/nyqstk/include/Stk.h Hunk #1 FAILED at 46. Hunk #2 FAILED at 355. 2 out of 2 hunks FAILED -- saving rejects to file lib-src/libnyquist/nyquist/nyqstk/include/Stk.h.rej patching file src/effects/LoadEffects.cpp patching file libraries/lib-module-manager/PluginHost.cpp [ !! ] * ERROR: media-sound/audacity-3.2.5::gentoo failed (prepare phase): * patch -p1 failed with /etc/portage/patches/media-sound/audacity/audacity-3.2.5-gcc13.patch ``` The contents of Stk.h.rej are: ``` --- lib-src/libnyquist/nyquist/nyqstk/include/Stk.h +++ lib-src/libnyquist/nyquist/nyqstk/include/Stk.h @@ -46,7 +46,8 @@ typedef uint64_t uintmax_t; */ #endif -#include <stddef.h> +#include <cstddef> +#include <cstdint> #include <string> #include <iostream> #include <sstream> @@ -355,10 +356,6 @@ typedef signed int SINT32; typedef float FLOAT32; typedef double FLOAT64; -// added by RBD -#ifdef __linux__ -#define intptr_t long -#endif // The default sampling rate. const StkFloat SRATE = 44100.0; ```
(In reply to Alexis from comment #6) > (In reply to Jiří Moravec from comment #5) > > Created attachment 861207 [details, diff] [details, diff] [details, diff] > > Updated version of audacity-3.2.5-gcc13.patch > > > > Upstream commit a49d145ef5e3046273c879be0a21d48ecd4dcab7 modified for 3.2.5. > > Original audacity-3.2.5-gcc13.patch (550B) isn't enough. > > > > Audacity 3.2.5 + this patch compile successfully with latest stable > > gcc-12.2.1_p20230428-r1 as with unstable gcc-13.1.0-r1. > > Hmm, i dropped this patch in /etc/portage/patches/media-sound/audacity, and > it fails to apply to audacity-3.2.5: It's a new version of the existing gcc 13 patch we apply, so it double applies the existing bits. Thanks for the patch. We were planning on just bumping audacity but there's some build system changes so it's a bit of a pain. So let's get this in.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef498907c07351ce8726b90e8bdf6c74080cedf2 commit ef498907c07351ce8726b90e8bdf6c74080cedf2 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-06 06:18:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-06 06:19:07 +0000 media-sound/audacity: fix build w/ gcc 13 Closes: https://bugs.gentoo.org/903771 Signed-off-by: Sam James <sam@gentoo.org> media-sound/audacity/audacity-3.2.5-r1.ebuild | 226 +++++++++++++++++++++ .../audacity/files/audacity-3.2.5-gcc13-deux.patch | 57 ++++++ 2 files changed, 283 insertions(+)