Bug 255186

Summary: audio/audacity: build error on 13-STABLE
Product: Ports & Packages Reporter: iron.udjin
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: New ---    
Severity: Affects Only Me CC: gja822, xxjack12xx, yuri
Priority: --- Flags: bugzilla: maintainer-feedback? (xxjack12xx)
Version: Latest   
Hardware: amd64   
OS: Any   
URL: https://github.com/audacity/audacity/issues/810

Description iron.udjin 2021-04-18 14:27:47 UTC
audacity: 3.0.0
OS: 13.0-STABLE stable/13-n245227-5ec4eb443e81
cc: 11.0.1

Options        :
	DEBUG          : off
	DOCS           : off
	FFMPEG         : on
	FLAC           : on
	ID3TAG         : on
	LADSPA         : on
	LAME           : on
	LV2            : off
	MAD            : on
	MIDI           : off
	OGG            : on
	SBSMS          : on
	SOUNDTOUCH     : off
	TWOLAME        : off
	VAMP           : on
	VORBIS         : on
	VST            : on

[673/758] /usr/bin/c++ -DAudacity_EXPORTS -DBUILDING_AUDACITY -DCMAKE -DHAVE_LRINT -DHAVE_LRINTF -DHAVE_MLOCK -DWXINTL_NO_GETTEXT_MACRO -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D__WXGTK__ -Isrc/private -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src -I/usr/local/lib/wx/include/gtk3-unicode-3.1 -I/usr/local/include/wx-3.1 -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/lame -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libnyquist -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/portmixer/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libsbsms/include -isystem /usr/local/include -isystem /usr/local/include/opus -isystem /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include -isystem /usr/local/include/gtk-3.0 -isystem /usr/local/include/pango-1.0 -isystem /usr/local/include/fribidi -isystem /usr/local/include/cairo -isystem /usr/local/include/pixman-1 -isystem /usr/local/include/freetype2 -isystem /usr/local/include/libdrm -isystem /usr/local/include/libpng16 -isystem /usr/local/include/harfbuzz -isystem /usr/local/include/gdk-pixbuf-2.0 -isystem /usr/local/include/gio-unix-2.0 -isystem /usr/local/include/atk-1.0 -isystem /usr/local/include/at-spi2-atk/2.0 -isystem /usr/local/include/dbus-1.0 -isystem /usr/local/lib/dbus-1.0/include -isystem /usr/local/include/at-spi-2.0 -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -Wno-underaligned-exception-object -Werror=return-type -Werror=dangling-else -Werror=return-stack-address -D_THREAD_SAFE -pthread -std=gnu++14 -MD -MT src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackButtonHandle.cpp.o -MF src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackButtonHandle.cpp.o.d -o src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackButtonHandle.cpp.o -c /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackButtonHandle.cpp
[674/758] /usr/bin/c++ -DAudacity_EXPORTS -DBUILDING_AUDACITY -DCMAKE -DHAVE_LRINT -DHAVE_LRINTF -DHAVE_MLOCK -DWXINTL_NO_GETTEXT_MACRO -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D__WXGTK__ -Isrc/private -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src -I/usr/local/lib/wx/include/gtk3-unicode-3.1 -I/usr/local/include/wx-3.1 -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/lame -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libnyquist -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/portmixer/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libsbsms/include -isystem /usr/local/include -isystem /usr/local/include/opus -isystem /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include -isystem /usr/local/include/gtk-3.0 -isystem /usr/local/include/pango-1.0 -isystem /usr/local/include/fribidi -isystem /usr/local/include/cairo -isystem /usr/local/include/pixman-1 -isystem /usr/local/include/freetype2 -isystem /usr/local/include/libdrm -isystem /usr/local/include/libpng16 -isystem /usr/local/include/harfbuzz -isystem /usr/local/include/gdk-pixbuf-2.0 -isystem /usr/local/include/gio-unix-2.0 -isystem /usr/local/include/atk-1.0 -isystem /usr/local/include/at-spi2-atk/2.0 -isystem /usr/local/include/dbus-1.0 -isystem /usr/local/lib/dbus-1.0/include -isystem /usr/local/include/at-spi-2.0 -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -Wno-underaligned-exception-object -Werror=return-type -Werror=dangling-else -Werror=return-stack-address -D_THREAD_SAFE -pthread -std=gnu++14 -MD -MT src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackControls.cpp.o -MF src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackControls.cpp.o.d -o src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackControls.cpp.o -c /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackControls.cpp
[675/758] /usr/bin/c++ -DAudacity_EXPORTS -DBUILDING_AUDACITY -DCMAKE -DHAVE_LRINT -DHAVE_LRINTF -DHAVE_MLOCK -DWXINTL_NO_GETTEXT_MACRO -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D__WXGTK__ -Isrc/private -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src -I/usr/local/lib/wx/include/gtk3-unicode-3.1 -I/usr/local/include/wx-3.1 -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/lame -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libnyquist -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/portmixer/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libsbsms/include -isystem /usr/local/include -isystem /usr/local/include/opus -isystem /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include -isystem /usr/local/include/gtk-3.0 -isystem /usr/local/include/pango-1.0 -isystem /usr/local/include/fribidi -isystem /usr/local/include/cairo -isystem /usr/local/include/pixman-1 -isystem /usr/local/include/freetype2 -isystem /usr/local/include/libdrm -isystem /usr/local/include/libpng16 -isystem /usr/local/include/harfbuzz -isystem /usr/local/include/gdk-pixbuf-2.0 -isystem /usr/local/include/gio-unix-2.0 -isystem /usr/local/include/atk-1.0 -isystem /usr/local/include/at-spi2-atk/2.0 -isystem /usr/local/include/dbus-1.0 -isystem /usr/local/lib/dbus-1.0/include -isystem /usr/local/include/at-spi-2.0 -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -Wno-underaligned-exception-object -Werror=return-type -Werror=dangling-else -Werror=return-stack-address -D_THREAD_SAFE -pthread -std=gnu++14 -MD -MT src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp.o -MF src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp.o.d -o src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp.o -c /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp
FAILED: src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp.o 
/usr/bin/c++ -DAudacity_EXPORTS -DBUILDING_AUDACITY -DCMAKE -DHAVE_LRINT -DHAVE_LRINTF -DHAVE_MLOCK -DWXINTL_NO_GETTEXT_MACRO -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D__WXGTK__ -Isrc/private -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src -I/usr/local/lib/wx/include/gtk3-unicode-3.1 -I/usr/local/include/wx-3.1 -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/lame -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libnyquist -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/portmixer/include -I/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/lib-src/libsbsms/include -isystem /usr/local/include -isystem /usr/local/include/opus -isystem /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include -isystem /usr/local/include/gtk-3.0 -isystem /usr/local/include/pango-1.0 -isystem /usr/local/include/fribidi -isystem /usr/local/include/cairo -isystem /usr/local/include/pixman-1 -isystem /usr/local/include/freetype2 -isystem /usr/local/include/libdrm -isystem /usr/local/include/libpng16 -isystem /usr/local/include/harfbuzz -isystem /usr/local/include/gdk-pixbuf-2.0 -isystem /usr/local/include/gio-unix-2.0 -isystem /usr/local/include/atk-1.0 -isystem /usr/local/include/at-spi2-atk/2.0 -isystem /usr/local/include/dbus-1.0 -isystem /usr/local/lib/dbus-1.0/include -isystem /usr/local/include/at-spi-2.0 -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing -Wno-underaligned-exception-object -Werror=return-type -Werror=dangling-else -Werror=return-stack-address -D_THREAD_SAFE -pthread -std=gnu++14 -MD -MT src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp.o -MF src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp.o.d -o src/CMakeFiles/Audacity.dir/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp.o -c /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:6:
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/../../../ui/TimeShiftHandle.h:17:
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/../../../ui/../../AttachedVirtualFunction.h:20:
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/InconsistencyException.h:12:
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/AudacityException.h:14:
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/MemoryX.h:390:
In file included from /usr/local/include/wx-3.1/wx/utils.h:18:
In file included from /usr/local/include/wx-3.1/wx/object.h:19:
In file included from /usr/local/include/wx-3.1/wx/memory.h:15:
/usr/local/include/wx-3.1/wx/string.h:561:7: warning: unknown warning group '-Wunsafe-loop-optimizations', ignored [-Wunknown-warning-option]
      wxGCC_ONLY_WARNING_SUPPRESS(unsafe-loop-optimizations)
      ^
/usr/local/include/wx-3.1/wx/defs.h:680:43: note: expanded from macro 'wxGCC_ONLY_WARNING_SUPPRESS'
#   define wxGCC_ONLY_WARNING_SUPPRESS(x) wxGCC_WARNING_SUPPRESS(x)
                                          ^
/usr/local/include/wx-3.1/wx/defs.h:668:9: note: expanded from macro 'wxGCC_WARNING_SUPPRESS'
        _Pragma (wxSTRINGIZE(GCC diagnostic ignored wxSTRINGIZE(wxCONCAT(-W,x))))
        ^
<scratch space>:45:25: note: expanded from here
 GCC diagnostic ignored "-Wunsafe-loop-optimizations"
                        ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:13:23: error: member access into incomplete type 'NoteTrack'
      : mpTrack{ track.SharedPointer<NoteTrack>() }
                      ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/Track.h:41:7: note: forward declaration of 'NoteTrack'
class NoteTrack;
      ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:18:46: error: non-const lvalue reference to type 'Track' cannot bind to a value of unrelated type 'NoteTrack'
   Track &GetTrack() const override { return *mpTrack; }
                                             ^~~~~~~~
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:26:19: error: member access into incomplete type 'std::__1::shared_ptr<NoteTrack>::element_type' (aka 'NoteTrack')
      if ( mpTrack->IsSelected() && time >= t0 && time < t1 )
                  ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/Track.h:41:7: note: forward declaration of 'NoteTrack'
class NoteTrack;
      ^
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:6:
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/../../../ui/TimeShiftHandle.h:14:
In file included from /usr/include/c++/v1/functional:501:
/usr/include/c++/v1/type_traits:1726:59: error: incomplete type 'NoteTrack' used in type trait expression
    : public integral_constant<bool, __is_base_of(_Bp, _Dp)> {};
                                                          ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/../../../ui/../../AttachedVirtualFunction.h:198:15: note: in instantiation of template class 'std::__1::is_base_of<Track, NoteTrack>' requested here
         std::is_base_of< typename Overridden::Object, Object >::value,
              ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:57:28: note: in instantiation of template class 'AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter>>, Track, AudacityProject &>::Override<NoteTrack, AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter>>, Track, AudacityProject &>>' requested here
template<> template<> auto MakeNoteTrackShifter::Implementation() -> Function {
                           ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/Track.h:41:7: note: forward declaration of 'NoteTrack'
class NoteTrack;
      ^
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:6:
In file included from /tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/../../../ui/TimeShiftHandle.h:17:
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/../../../ui/../../AttachedVirtualFunction.h:197:7: error: static_assert failed due to requirement 'std::is_base_of<Track, NoteTrack>::value' "overridden class must be a base of the overriding class"
      static_assert(
      ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:57:28: note: in instantiation of template class 'AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter>>, Track, AudacityProject &>::Override<NoteTrack, AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter>>, Track, AudacityProject &>>' requested here
template<> template<> auto MakeNoteTrackShifter::Implementation() -> Function {
                           ^
/tmpfs/usr/ports/audio/audacity/work/audacity-minsrc-3.0.0/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:57:70: error: unknown type name 'Function'
template<> template<> auto MakeNoteTrackShifter::Implementation() -> Function {
                                                                     ^
1 warning and 6 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
Comment 1 Yuri Victorovich freebsd_committer 2021-04-18 19:43:28 UTC
(In reply to iron.udjin from comment #0)

iron.udjin@gmail.com,

Do you have a link to a complete log?
Comment 2 Yuri Victorovich freebsd_committer 2021-04-18 19:48:10 UTC
(In reply to Yuri Victorovich from comment #1)

Pleas disregard my previous message.
Comment 3 Yuri Victorovich freebsd_committer 2021-04-18 22:55:24 UTC
(In reply to iron.udjin from comment #0)

iron.udjin@gmail.com,

I couldn't reproduce the build failure in a freshly installed 13.0-RELEASE with freshly checked out ports tree.

Are you sure your ports tree doesn't have any diffs?

Can you reproduce this problem in poudriere?


Thanks,
Yuri
Comment 4 iron.udjin 2021-04-19 01:26:12 UTC
(In reply to Yuri Victorovich from comment #3)

I don't have 13.0-RELEASE installed. I use only -STABLE.
Comment 5 Jack 2021-04-19 03:48:52 UTC
I was able to reproduce the compilation error with that config combination. I'll look into the cause.
Comment 6 Jack 2021-04-19 04:03:42 UTC
It looks like MIDI=off is causing the problem. I'll report upstream for a solution.
Comment 7 Yuri Victorovich freebsd_committer 2021-04-19 05:02:07 UTC
(In reply to Jack from comment #5)

I've just rebuilt with MIDI=off and all same options on 12.2 and it succeeded.

It must be only on 13+ or only with clang-11+, somehow.

In any case this isn't a major problem for the port.


Yuri
Comment 8 gja822 2021-07-27 17:50:12 UTC
(In reply to Yuri Victorovich from comment #7)
The same errors in 12-STABLE (FreeBSD 12.2-STABLE r370123 amd64, it has
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)).
MIDI is OFF.
Is it a compiler-related error? Building with ports' llvm-devel (that is 13) or llvm-12 do not help.

In file included from /usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:6:
In file included from /usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/../../../ui/TimeShiftHandle.h:14:
In file included from /usr/include/c++/v1/functional:501:
/usr/include/c++/v1/type_traits:1419:59: error: incomplete type 'NoteTrack' used in type trait expression
    : public integral_constant<bool, __is_base_of(_Bp, _Dp)> {};
                                                          ^
/usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/../../../ui/../../AttachedVirtualFunction.h:198:15: note: in instantiation of template class 'std::is_base_of<Track, NoteTrack>' requested here
         std::is_base_of< typename Overridden::Object, Object >::value,
              ^
Comment 9 gja822 2021-07-28 02:08:15 UTC
(In reply to Yuri Victorovich from comment #7)
The same with clang-90 from ports, also with clang-10.


...
In file included from /usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:6:
In file included from /usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/../../../ui/TimeShiftHandle.h:14:
In file included from /usr/include/c++/v1/functional:501:
/usr/include/c++/v1/type_traits:1419:59: error: incomplete type 'NoteTrack' used in type trait expression
    : public integral_constant<bool, __is_base_of(_Bp, _Dp)> {};
                                                          ^
/usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/../../../ui/../../AttachedVirtualFunction.h:198:15: note: in instantiation of template class 'std::__1::is_base_of<Track, NoteTrack>' requested here
         std::is_base_of< typename Overridden::Object, Object >::value,
              ^
/usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:57:28: note: in instantiation of template class 'AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter> >, Track, AudacityProject &>::Override<NoteTrack, AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter> >, Track, AudacityProject &> >' requested here
template<> template<> auto MakeNoteTrackShifter::Implementation() -> Function {
                           ^
/usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/Track.h:41:7: note: forward declaration of 'NoteTrack'
class NoteTrack;
      ^
In file included from /usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:6:
In file included from /usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/../../../ui/TimeShiftHandle.h:17:
/usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/../../../ui/../../AttachedVirtualFunction.h:197:7: error: static_assert failed due to requirement 'std::is_base_of<Track, NoteTrack>::value' "overridden class must be a base of the overriding class"
      static_assert(
      ^
/usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:57:28: note: in instantiation of template class 'AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter> >, Track, AudacityProject &>::Override<NoteTrack, AttachedVirtualFunction<MakeTrackShifterTag, std::__1::unique_ptr<TrackShifter, std::__1::default_delete<TrackShifter> >, Track, AudacityProject &> >' requested here
template<> template<> auto MakeNoteTrackShifter::Implementation() -> Function {
                           ^
/usr/ports/audio/audacity/work/audacity-minsrc-3.0.2/src/tracks/playabletrack/notetrack/ui/NoteTrackShifter.cpp:57:70: error: unknown type name 'Function'
template<> template<> auto MakeNoteTrackShifter::Implementation() -> Function {
                                                                     ^
1 warning and 6 errors generated.
Comment 10 Yuri Victorovich freebsd_committer 2021-07-28 02:43:40 UTC
gja822@narod.ru,

This is most likely a bug in the upstream.

The best you can do is to add the cmake arguments string to the GitHub bug report so that they would be able to reproduce it.

Otherwise they think that this is a distro bug.


Yuri
Comment 11 Jack 2021-09-12 22:56:40 UTC
This update should fix the error (making it required)

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258107