[Mesa-dev] -fno-common build failures (default from upcoming gcc release 10)

Stefan Dirsch sndirsch at suse.de
Wed Jan 22 15:59:51 UTC 2020


On Tue, Jan 21, 2020 at 06:49:59PM +0100, Bas Nieuwenhuizen wrote:
> I think this ended up spawning a bunch of work in
> https://gitlab.freedesktop.org/mesa/mesa/issues/2385

Thanks a lot! These patches (already in master) fixed my build issues with
"-fno-common" compiler flag. :-)

Stefan

> On Mon, Jan 20, 2020 at 3:41 PM Stefan Dirsch <sndirsch at suse.de> wrote:
> >
> > Hi
> >
> > Starting from the upcoming GCC release 10, the default of -fcommon option will
> > change to -fno-common. Due to this we're going to see a lot of build failures
> > in Mesa drivers like
> >
> > multiple definition of `syncobj_handle'; src/amd/vulkan/9198681@@vulkan_radeon at sha/meson-generated_.._radv_entrypoints.c.o (symbol from plugin):(.text+0x0): first defined here
> > [  213s]
> > /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:
> > src/amd/vulkan/9198681@@vulkan_radeon at sha/radv_wsi_wayland.c.o (symbol from
> > plugin): in function `radv_GetPhysicalDeviceWaylandPresentationSupportKHR':
> >
> > I'm wondering if there is already anybody working on fixing these issues or is
> > it recommended to workaround it by setting -fcommon manually somehow? How can
> > the latter be done when using meson/ninja as build tool?

Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.)   SUSE Software Solutions Germany GmbH
Tel: 0911-740 53 0            Maxfeldstraße 5
FAX: 0911-740 53 479          D-90409 Nürnberg
http://www.suse.de            Germany 
----------------------------------------------------------------
(HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
----------------------------------------------------------------


More information about the mesa-dev mailing list