Bug 255186 - audio/audacity: build error on 13-STABLE
Summary: audio/audacity: build error on 13-STABLE
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL: https://github.com/audacity/audacity/...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-18 14:27 UTC by iron.udjin
Modified: 2021-04-19 05:02 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (xxjack12xx)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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