ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.6k stars 970 forks source link

[Bug]: `lldb` from llvm package does not work #5489

Open blaztinn opened 9 months ago

blaztinn commented 9 months ago

Prerequisites

Package Name

llvm

Expected/Current Behaviour

After installing the llvm package I get the following errors when running lldb in various shells:

The problem is fixed after installing python310 package as described in Possible Solution section.

Steps to Reproduce

$ scoop install llvm
$ lldb # not sure if reopening the shell is needed before this step, but it doesn't help

Possible Solution

A workaround is to install python310 (scoop install python310) package and run C:\Users\BlazTomazic\scoop\apps\python310\current\install-pep-514.reg as it says after installing it. Afterwards lldb works normally.

Installing python package does not work because it doesn't have python310.dll. An ideal solution would be either:

Scoop and Buckets Version

$ scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
cb96c9041 (HEAD -> master, origin/master, origin/HEAD) spotify@1.2.29.605.g66a43ceb: Fix hash (Closes #12730)

'main' bucket:
0669933bb (HEAD -> master, origin/master, origin/HEAD) ttyper: Update to version 1.4.1

'nerd-fonts' bucket:
8adeb55 (HEAD -> master, origin/master, origin/HEAD) Victor-Mono@1.5.6: Fix hash (Closes #277)

'versions' bucket:
7b3ad6289 (HEAD -> master, origin/master, origin/HEAD) vlc-nightly: Update to version 20240202

Scoop Config

$ scoop config

last_update                       gh_token                                 scoop_branch scoop_repo
-----------                       --------                                 ------------ ----------
2024-02-02T13:25:12.4924618+01:00 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 master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

PS C:\Users\BlazTomazic> $PSVErsionTable

Name                           Value
----                           -----
PSVersion                      5.1.22621.2506
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2506
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

blaztinn commented 9 months ago

I guess this is an upstream packaging problem? https://github.com/llvm/llvm-project/issues/59524

A possible solution for scoop llvm package could be: https://github.com/llvm/llvm-project/issues/59524#issuecomment-1352100810 But I don't know how this change would affect other binaries inside the llvm package or even the other binaries on the system if python310.dll ends up in PATH.

g-berthiaume commented 8 months ago

I just had the same problem.

Not sure what's the role of scoop here. This seems like an upstream problem to me.