Build failing on Ubuntu after update to 8.2-57-gd01bb73548

I have not typically had any problems compiling Ardour on my system, but after a git pull last week, I can no longer successfully build

n file included from ../libs/evoral/evoral/Event.h:30,
                 from ../libs/evoral/evoral/PatchChange.h:27,
                 from ../libs/ardour/ardour/midi_scene_change.h:22,
                 from ../libs/ardour/scene_change.cc:19:
/usr/include/c++/11/sstream:335:15: internal compiler error: Segmentation fault
  335 |       virtual streamsize
      |               ^~~~~~~~~~
0x7effb024251f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7effb0229d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7effb0229e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
In file included from ../libs/ardour/mute_master.cc:28:
../libs/ardour/ardour/session.h:252:94: internal compiler error: Segmentation fault
  252 |         bool dirty () const                            { return _state_of_the_state & Dirty; }
      |                                                                                              ^
0x7f166984251f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f1669829d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f1669829e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.

In file included from /usr/include/c++/11/vector:67,
                 from ../libs/ardour/plugin.cc:30:
/usr/include/c++/11/bits/stl_vector.h: In instantiation of ‘class std::vector<ARDOUR::Trigger*>’:
../libs/ardour/ardour/triggerbox.h:870:18:   required from here
/usr/include/c++/11/bits/stl_vector.h:607:7: internal compiler error: Segmentation fault
  607 |       vector(vector&& __rv, const allocator_type& __m)
      |       ^~~~~~
0x7f97fd24251f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f97fd229d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f97fd229e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.

n file included from ../libs/ardour/automation_watch.cc:35:
../libs/ardour/ardour/session.h:237:50: internal compiler error: Segmentation fault
  237 |         std::string path() const { return _path; }
      |                                                  ^
0x7f05c464251f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f05c4629d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f05c4629e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.

In file included from ../libs/ardour/ardour/session.h:95,
                 from ../libs/ardour/ardour/lua_api.h:37,
                 from ../libs/ardour/ardour/luaproc.h:46,
                 from ../libs/ardour/plug_insert_base.cc:22:
../libs/ardour/ardour/triggerbox.h:772:75: internal compiler error: Segmentation fault
  772 |         TriggerPtr currently_playing() const { return _currently_playing; }
      |                                                                           ^
0x7f6fe144251f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f6fe1429d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f6fe1429e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
In file included from ../libs/ardour/slavable_automation_control.cc:34:
../libs/ardour/ardour/session.h:237:50: internal compiler error: Segmentation fault
  237 |         std::string path() const { return _path; }
      |                                                  ^
0x7f5da904251f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f5da9029d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f5da9029e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
Build failed
 -> task in 'libardour' failed with exit status 1: 
	{task 140443336410192: cxx midi_clock_slave.cc -> midi_clock_slave.cc.1.o}
['/usr/bin/g++', '-I/home/Ardour/Ardour8', '-DHAVE_RF64_RIFF', '-DCOMPILER_INT128_SUPPORT', '-DWAF_BUILD', '-g', '-fshow-column', '-DARCH_X86', '-mmmx', '-msse', '-mfpmath=sse', '-DUSE_XMMINTRIN', '-DBUILD_SSE_OPTIMIZATIONS', '-DLXVST_64BIT', '-Wall', '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '-Wno-unused-parameter', '-DBOOST_SYSTEM_NO_DEPRECATED', '-DBOOST_BIND_GLOBAL_PLACEHOLDERS', '-D_ISOC9X_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-DPROGRAM_NAME="Ardour"', '-DPROGRAM_VERSION="8"', '-Woverloaded-virtual', '-Wno-unused-local-typedefs', '-D__STDC_LIMIT_MACROS', '-D__STDC_FORMAT_MACROS', '-DCANVAS_DEBUG', '-DBOOST_ERROR_CODE_HEADER_ONLY', '-fPIC', '-fPIC', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-Ilibs/ardour', '-I../libs/ardour', '-Ilibs/vst3', '-I../libs/vst3', '-Ilibs/ctrl-interface/control_protocol', '-I../libs/ctrl-interface/control_protocol', '-Ilibs', '-I../libs', '-Ilibs/midi++2', '-I../libs/midi++2', '-Ilibs/evoral', '-I../libs/evoral', '-Ilibs/temporal', '-I../libs/temporal', '-Ilibs/audiographer', '-I../libs/audiographer', '-Ilibs/audiographer/src', '-I../libs/audiographer/src', '-Ilibs/ptformat', '-I../libs/ptformat', '-Ilibs/pbd', '-I../libs/pbd', '-Ilibs/lua', '-I../libs/lua', '-Ilibs/zita-resampler', '-I../libs/zita-resampler', '-Ilibs/zita-convolver', '-I../libs/zita-convolver', '-Ilibs/libltc/ltc', '-I../libs/libltc/ltc', '-Ilibs/fluidsynth/fluidsynth', '-I../libs/fluidsynth/fluidsynth', '-Ilibs/tk/suil', '-I../libs/tk/suil', '-I/usr/include/glibmm-2.4', '-I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/sigc++-2.0', '-I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include', '-I/usr/include/libxml2', '-I/usr/include/libusb-1.0', '-I/usr/include/opus', '-I/usr/include/raptor2', '-I/usr/include/giomm-2.4', '-I/usr/lib/x86_64-linux-gnu/giomm-2.4/include', '-I/usr/include/libmount', '-I/usr/include/blkid', '-I/usr/include/x86_64-linux-gnu', '-I/usr/include/taglib', '-I/usr/include/lilv-0', '-I/usr/include/sratom-0', '-I/usr/include/sord-0', '-I/usr/include/serd-0', '-I/home/Ardour/Ardour8/build', '-DINTERNAL_SHARED_LIBS=1', '-DYTK=1', '-DHAVE_SUIL=1', '-DHAVE_ALSA=1', '-DHAVE_PULSEAUDIO=1', '-DHAVE_GLIB=1', '-DHAVE_GTHREAD=1', '-DHAVE_GLIBMM=1', '-DHAVE_SNDFILE=1', '-DHAVE_GIOMM=1', '-DHAVE_CURL=1', '-DHAVE_ARCHIVE=1', '-DHAVE_LO=1', '-DHAVE_TAGLIB=1', '-DHAVE_VAMPSDK=1', '-DHAVE_VAMPHOSTSDK=1', '-DHAVE_RUBBERBAND=1', '-DHAVE_USB=1', '-DEXPORT_VISIBILITY_HIDDEN=0', '-DPHONE_HOME=1', '-DENABLE_NLS=1', '-DLXVST_SUPPORT=1', '-DVST3_SUPPORT=1', '-DUSE_FUTEX_SEMAPHORE=1', '-DHAVE_JACK=1', '-DFPU_AVX512F_SUPPORT=1', '-DFPU_AVX_FMA_SUPPORT=1', '-DCONFIG_ARCH="x86_64"', '-DHAVE_TOOLS_SANITY_CHECK=1', '-DHAVE_FFTW3F=1', '-DHAVE_UDEV=1', '-DHAVE_HIDAPI=1', '-DHAVE_AUBIO=1', '-DHAVE_AUBIO4=1', '-DHAVE_GOBJECT=1', '-DHAVE_GIO=1', '-DHAVE_LIBPNG=1', '-DHAVE_PANGO=1', '-DHAVE_CAIRO=1', '-DHAVE_PANGOCAIRO=1', '-DHAVE_GIO_UNIX=1', '-DHAVE_RANDR=1', '-DHAVE_RANDR15=1', '-DHAVE_XFREE_XINERAMA=1', '-DHAVE_GMODULE=1', '-DHAVE_X11=1', '-DHAVE_XEXT=1', '-DHAVE_SIGCPP=1', '-DHAVE_CAIROMM=1', '-DHAVE_PANGOMM=1', '-DHAVE_LV2_1_16_0=1', '-DHAVE_XML=1', '-DHAVE_EXECINFO=1', '-DHAVE_POSIX_MEMALIGN=1', '-DHAVE_GETMNTENT=1', '-DHAVE_LOCALTIME_R=1', '-DHAVE_CPPUNIT=1', '-DHAVE_CONTROL_PROTOCOL=1', '-DHAVE_MIDI_SURFACE=1', '-DHAVE_WEBSOCKETS=1', '-DHAVE_JACK_METADATA=1', '-DHAVE_JACK_PORT_RENAME=1', '-DHAVE_LRDF=1', '-DHAVE_SAMPLERATE=1', '-DHAVE_LV2=1', '-DHAVE_LV2_1_10_0=1', '-DHAVE_LV2_1_17_2=1', '-DHAVE_SERD=1', '-DHAVE_SORD=1', '-DHAVE_SRATOM=1', '-DHAVE_LILV=1', '-DLV2_SUPPORT=1', '-DLV2_EXTENDED=1', '-DHAVE_OGG=1', '-DHAVE_FLAC=1', '-DHAVE_FFTW35F=1', '-DUSE_RUBBERBAND=1', '-DCURRENT_SESSION_FILE_VERSION=7002', '-DHAVE_SYS_VFS_H=1', '-DHAVE_SYS_STATVFS_H=1', '-DHAVE_UNISTD=1', '-DHAVE_BOOST_SCOPED_PTR_HPP=1', '-DHAVE_BOOST_PTR_CONTAINER_PTR_LIST_HPP=1', '-DHAVE_BOOST_SHARED_PTR_HPP=1', '-DHAVE_BOOST_FORMAT_HPP=1', '-DHAVE_LV2_1_0_0=1', '-DHAVE_PANGOFT2=1', '-DHAVE_FONTCONFIG=1', '-DHAVE_READLINE=1', '-DHAVE_DBUS=1', '-DLIBARDOUR_DLL_EXPORTS=1', '-DPACKAGE="ardour8"', '-DDATA_DIR="/usr/local/share/ardour8"', '-DCONFIG_DIR="/usr/local/etc"', '-DLOCALEDIR="/usr/local/share/ardour8/locale"', '-DLIBARDOUR="ardour8"', '-DLXVST_SUPPORT', '-DVST3_SUPPORT', '-DFPU_AVX_FMA_SUPPORT', '-DFPU_AVX512F_SUPPORT', '../libs/ardour/midi_clock_slave.cc', '-c', '-o/home/Ardour/Ardour8/build/libs/ardour/midi_clock_slave.cc.1.o']

Is this likely something to do with my environment or has something changed in the codebase?

This is your system, not our source code. Sorry.

Thanks!

I’ll try to track down the issue.

Interestingly, rolling back my BIOS firmware solved the issue.

I noticed some instability after a recent update. This suggests a possible bug in the BIOS firmware.

Thanks again!