glib2.0 causing some build errors in Hirsute

Daniel van Vugt daniel.van.vugt at canonical.com
Thu Feb 25 09:09:05 UTC 2021


glib 2.67.4-1 is also blocked on https://bugs.launchpad.net/bugs/1916701 So the 
latest glib2.0 release without regressions was 2.67.2. Realistically it looks 
like we're stuck on 2.66 for hirsute, although 2.67.2 should work (fingers crossed).


On 23/2/21 10:55 pm, Christian Ehrhardt wrote:
> On Tue, Feb 23, 2021 at 3:38 PM Christian Ehrhardt
> <christian.ehrhardt at canonical.com> wrote:
>>
>> Hi,
>> this is an FYI in case other packages FTBFS as well (in my case qemu)
>> in Hirsute-proposed.
>> There is a change in libglib2.0-dev 2.66.4-1 to 2.67.4-1 which makes
>> it break build if it is included in an "extern C" context.
>>
>> That is discussed upstream  https://gitlab.gnome.org/GNOME/glib/-/issues/233
> 
> Works even better if I'd have copy-pasta'd the full link which is:
>    https://gitlab.gnome.org/GNOME/glib/-/issues/2331
> 
>> The TL;DR is no mitigation will be applied, but in turn that means we
>> need to fix all problematic packages in Hirsute to avoid becoming an
>> FTBFS.
>>
>> Remember this case if you see build issues like:
>>
>> ../../disas/arm-a64.cc
>> In file included from /usr/include/glib-2.0/glib/gmacros.h:241,
>>                   from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9,
>>                   from /usr/include/glib-2.0/glib/gtypes.h:32,
>>                   from /usr/include/glib-2.0/glib/galloca.h:32,
>>                   from /usr/include/glib-2.0/glib.h:30,
>>                   from /<<BUILDDIR>>/qemu-5.2+dfsg/include/glib-compat.h:32,
>>                   from /<<BUILDDIR>>/qemu-5.2+dfsg/include/qemu/osdep.h:126,
>>                   from ../../disas/arm-a64.cc:21:
>> /usr/include/c++/10/type_traits:56:3: error: template with C linkage
>>     56 |   template<typename _Tp, _Tp __v>
>>        |   ^~~~~~~~
>> ../../disas/arm-a64.cc:20:1: note: ‘extern "C"’ linkage started here
>>     20 | extern "C" {
>>        | ^~~~~~~~~~
>>
>> Thanks Doko for debugging with me and Laney to point to the upstream issue.
>>
>> --
>> Christian Ehrhardt
>> Staff Engineer, Ubuntu Server
>> Canonical Ltd
> 
> 
> 



More information about the ubuntu-devel mailing list