libllvm18:i386 conflicts with libllvm18

Bug #2063207 reported by Guilhem Lettron
82
This bug affects 17 people
Affects Status Importance Assigned to Milestone
llvm-toolchain-18 (Debian)
New
Unknown
llvm-toolchain-18 (Ubuntu)
Status tracked in Oracular
Noble
Confirmed
Undecided
Unassigned
Oracular
Confirmed
Undecided
Unassigned

Bug Description

libllvm18:i386 conflict with libllvm18, but isn't mark like so.

```
Unpacking libllvm18:i386 (1:18.1.3-1) ...
dpkg: error processing archive /var/cache/apt/archives/libllvm18_1%3a18.1.3-1_i386.deb (--unpack):
 trying to overwrite shared '/usr/lib/llvm-18/lib/libLLVM.so.1', which is different from other instances of package libllvm18:i386
```

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in llvm-toolchain-18 (Ubuntu):
status: New → Confirmed
Revision history for this message
Andi Chandler (bing) wrote :

FYI this appears to be a Steam dependancy.

Revision history for this message
q4a (q4a) wrote :

BTW, there is same problem on ARM systems: libllvm18:armhf conflicts with libllvm18:arm64
dpkg: error processing archive /var/cache/apt/archives/libllvm18_1%3a18.1.3-1_armhf.deb (--unpack):
 trying to overwrite shared '/usr/lib/llvm-18/lib/libLLVM.so.1', which is different from other instances of package libllvm18:armhf
Errors were encountered while processing:
 /var/cache/apt/archives/libllvm18_1%3a18.1.3-1_armhf.deb

Revision history for this message
Talorin (talorin) wrote :

Quick Solution: sudo mv /usr/lib/llvm-18/lib/libLLVM.so.1 /usr/lib/llvm-18/lib/libLLVM.so.1_backup
Install again.

Revision history for this message
Fox (trifonovsv) wrote :

steam-libs -> mesa -> libllvm17t64 -> /usr/lib/x86_64-linux-gnu/libLLVM-17.so.1
steam-libs:i386 -> mesa:i386 -> libllvm17t64:i386 -> /usr/lib/i386-linux-gnu/libLLVM-17.so.1

sudo add-apt-repository ppa:oibaf/graphics-drivers

steam-libs -> mesa -> libllvm18 -> /usr/lib/llvm-18/lib/libLLVM.so.1
steam-libs:i386 -> mesa:i386 -> libllvm18:i386 -> /usr/lib/llvm-18/lib/libLLVM.so.1

Revision history for this message
oyvindln (oyvindln) wrote :

Doing the "quick solution" in comment #5 is a very bad idea - especially if you are running into the issue when using a ppa for updated graphics drivers. It will cause anything that is linking to llvm-18 to fail to run, and if that includes the graphics drivers that will include causing a boot failure.

If you want to "work around" it you have to also put it back again afterwards while keeping the i386 version around and fixing the symlink that is supposed to point to it so it actually works as intended.

Revision history for this message
Guilhem Lettron (guilhem-fr) wrote (last edit ):

Problem is more deep.
Both package are not properly done, using both a non-standard path for libraries: "/usr/lib/llvm-18/lib/"
So it makes import failing and conflict between i386 and amd64 packages.

I had to:
sudo cp /usr/lib/llvm-18/lib/libLLVM.so.18.1 /usr/lib/x86_64-linux-gnu/
sudo ln -s /usr/lib/x86_64-linux-gnu/libLLVM.so.18.1 /usr/lib/x86_64-linux-gnu/libLLVM.so.1

(the same for i386 after some packaging hacking to bypass overwrite like in #5)

Revision history for this message
Guilhem Lettron (guilhem-fr) wrote :
Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

I will have a look

Revision history for this message
Oibaf (oibaf) wrote :

ppa:oibaf/graphics-drivers -> I just reverted to building mesa with llvm17 until this get fixed.

Changed in llvm-toolchain-18 (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in llvm-toolchain-18 (Ubuntu Noble):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.