Version `GLIBC_2.34' not found

I’m trying to snap snapd but I get this error. What could the reason be?

$ snapcraft --debug --use-lxd
/snap/snapcraft/6512/usr/bin/python3: /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /lib/x86_64-linux-gnu/libgtk3-nocsd.so.0)
$ readlink -e /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
/snap/core18/2714/lib/x86_64-linux-gnu/libc-2.27.so

$ snap info snapcraft
name:      snapcraft
summary:   easily create snaps
publisher: Canonical**
store-url: https://snapcraft.io/snapcraft
contact:   https://forum.snapcraft.io/c/snapcraft
license:   GPL-3.0
description: |
  Package, distribute, and update any app for Linux and IoT.
  
  Snaps are containerised software packages that are simple to create and
  install. They auto-update and are safe to run. And because they bundle
  their dependencies, they work on all major Linux systems without
  modification.
commands:
  - snapcraft
snap-id:      vMTKRaLjnOJQetI78HjntT37VuoyssFE
tracking:     4.x/stable
refresh-date: today at 11:32 -03
channels:
  latest/stable:    7.3.1                    2023-03-10 (8931) 66MB classic
  latest/candidate: 7.3.1                    2023-03-09 (8931) 66MB classic
  latest/beta:      ^                                               
  latest/edge:      7.3.1.post30+git71ed1a36 2023-03-24 (9015) 66MB classic
  7.x/stable:       7.3.1                    2023-03-10 (8931) 66MB classic
  7.x/candidate:    7.3.1                    2023-03-09 (8931) 66MB classic
  7.x/beta:         ^                                               
  7.x/edge:         ^                                               
  6.x/stable:       6.1                      2022-06-15 (7201) 54MB classic
  6.x/candidate:    ^                                               
  6.x/beta:         ^                                               
  6.x/edge:         ^                                               
  5.x/stable:       5.0                      2021-08-09 (6751) 58MB classic
  5.x/candidate:    ^                                               
  5.x/beta:         ^                                               
  5.x/edge:         ^                                               
  4.x/stable:       4.8                      2021-06-03 (6512) 74MB classic
  4.x/candidate:    ^                                               
  4.x/beta:         ^                                               
  4.x/edge:         ^                                               
installed:          4.8                                 (6512) 74MB classic

snapcraft cleanbuild gives the same error.

I’m curious why you would try such a thing.

libgtk3-nocsd0 depends on libc6 (>= 2.34) if installed from the Ubuntu 22.04 repository, but I can see a reference to core18 in the error you pasted so something is not adding up.

I will propose a new interface to snapd and would like to test it, so I was following the building instructions.

I don’t understand how libgtk3-nocsd0 (“used to disable the client side decorations”) relates to snapd?