Cinnamon can't boot after upgrade to LLVM-17

Lately I's forced (so to say...) to use clang version 17, which was available in clang-git package. The package unfortunately removed old clang 15 which, as I discovered after reboot, caused Cinnamon unable to boot.

After some trouble I's able to copy old libLLVM-15.so into /usr/lib from old package. This solved the problem. However... I want to be sure no update will remove or overwrite this file with a link to version 17 of the library.

System:
  Kernel: 6.4.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=6a135e81-5d37-4390-8a10-a9eef293c0d9 rw rootflags=subvol=@
    quiet rd.udev.log_priority=3 vt.global_cursor_default=0
    systemd.unified_cgroup_hierarchy=1 loglevel=3 ibt=off
  Desktop: Cinnamon v: 5.8.4 tk: GTK v: 3.24.38 wm: muffin vt: 7 dm: LightDM
    v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Aspire A515-54G v: V1.24
    serial: <superuser required>
  Mobo: CML model: Doc_WC v: V1.24 serial: <superuser required> UEFI: Insyde
    v: 1.24 date: 07/07/2021
Battery:
  ID-1: BAT1 charge: 39.4 Wh (100.0%) condition: 39.4/48.9 Wh (80.5%)
    volts: 16.3 min: 15.2 model: LGC AC14B8K type: Li-ion serial: <filter>
    status: full
CPU:
  Info: model: Intel Core i5-10210U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 10 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF6
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1143 high: 2100 min/max: 400/4200 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 847 3: 2100 4: 896
    5: 801 6: 800 7: 800 8: 2100 bogomips: 33599
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Acer Incorporated ALI
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 0000:00:02.0
    chip-ID: 8086:9b41 class-ID: 0300
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Acer Incorporated ALI
    driver: nouveau v: kernel non-free: 535.xx+ status: current (as of 2023-07)
    arch: Pascal code: GP10x process: TSMC 16nm built: 2016-21
    bus-ID: 0000:02:00.0 chip-ID: 10de:1d13 class-ID: 0302
  Device-3: Quanta HD User Facing driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:3 chip-ID: 0408:a061
    class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: intel,nouveau
    unloaded: modesetting alternate: fbdev,nv,vesa dri: i965,nouveau gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: AU Optronics 0x61ed built: 2018
    res: 1920x1080 hz: 60 dpi: 143 gamma: 1.2 size: 340x190mm (13.39x7.48")
    diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.1.3 renderer: Mesa Intel UHD Graphics (CML GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
    bus-ID: 0000:00:1f.3 chip-ID: 8086:02c8 class-ID: 0403
  API: ALSA v: k6.4.4-zen1-1-zen status: kernel-api with: osspd status: off
    tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.74 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 0000:00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000
    bus-ID: 0000:03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode]
    driver: intel_nvme_remap v: N/A port: 5060 bus-ID: 0000:00:17.0
    chip-ID: 8086:282a rev: class-ID: 0104
Drives:
  Local Storage: total: 953.87 GiB used: 178.95 GiB (18.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKNW010T8
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B tech: SSD
    serial: <filter> fw-rev: 002C temp: 31.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.38 GiB size: 476.38 GiB (100.00%)
    used: 178.9 GiB (37.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 54.6 MiB (56.9%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 476.38 GiB size: 476.38 GiB (100.00%)
    used: 178.9 GiB (37.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-4: /var/log raw-size: 476.38 GiB size: 476.38 GiB (100.00%)
    used: 178.9 GiB (37.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-5: /var/tmp raw-size: 476.38 GiB size: 476.38 GiB (100.00%)
    used: 178.9 GiB (37.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 7.58 GiB used: 16.5 MiB (0.2%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 43.0 C pch: 46.0 C mobo: N/A gpu: nouveau
    temp: 41.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 271 Uptime: 14m wakeups: 1 Memory: total: 8 GiB
  available: 7.58 GiB used: 3.68 GiB (48.5%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 17.0.0
  Packages: pm: dpkg pkgs: 0 pm: pacman pkgs: 1996 libs: 507 tools: pamac,paru
  Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.28
Garuda (2.6.16-1):
  System install date:     2021-12-22
  Last full system update: 2023-07-21
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       Probably (Run as root to verify)
  Failed units: 

I am not sure if doing this would be okay but here…

sudo chattr +i <path-to-file>

What this does? Here, from chattr’s man page

A file with the 'i' attribute cannot be modified: it cannot be deleted or  renamed,  no  link
can  be  created  to this file, most of the file's metadata can not be modified, and the file
can not  be  opened  in  write  mode.   Only  the  superuser  or  a  process  possessing  the
CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

how to view a file’s current attributes?

lsattr <path-to-file>

lsattr works the same as ls just lsattr lists the file’s attributes.

How to remove this attribute in future?

sudo chattr -i <path-to-file>

Notice the subtle difference of +i and -i.

3 Likes

Nice trick, I'll put that to my shelve :smiley: Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.