Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid package cache - file '...\bugpoint.exe' is missing on win-64 #158

Open
1 task done
stellarpower opened this issue May 24, 2022 · 6 comments
Open
1 task done
Labels

Comments

@stellarpower
Copy link

stellarpower commented May 24, 2022

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

My project apparently won't build on Windows without llvm-rc installed, so I have arrived at this package for that reason.

To reproduce:

PS C:\Users\User> micromamba create -n Bug -c conda-forge

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

Empty environment created at prefix: C:\Users\User\MicromambaRoot\envs\Bug
PS C:\Users\User> micromamba activate Bug
(Bug) PS C:\Users\User> micromamba install -c conda-forge llvm-tools
                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache

Transaction

  Prefix: C:\Users\User\MicromambaRoot\envs\Bug

  Updating specs:

   - llvm-tools


warning  libmamba Invalid package cache, file 'C:\Users\User\MicromambaRoot\pkgs\llvm-tools-14.0.3-hf00eed6_0\Library\bin\bugpoint.exe' is missing
  Package                Version  Build          Channel                  Size
--------------------------------------------------------------------------------
  Install:
--------------------------------------------------------------------------------

  + libiconv                1.16  he774522_0     conda-forge/win-64     Cached
  + libllvm14             14.0.3  h97333cc_0     conda-forge/win-64     Cached
  + libxml2               2.9.14  hf5bbc77_0     conda-forge/win-64     Cached
  + libzlib               1.2.11  h8ffe710_1014  conda-forge/win-64     Cached
  + llvm-tools            14.0.3  hf00eed6_0     conda-forge/win-64     Cached
  + ucrt            10.0.20348.0  h57928b3_0     conda-forge/win-64     Cached
  + vc                      14.2  hb210afc_6     conda-forge/win-64     Cached
  + vs2015_runtime   14.29.30037  h902a5da_6     conda-forge/win-64     Cached
  + zlib                  1.2.11  h8ffe710_1014  conda-forge/win-64     Cached

  Summary:

  Install: 9 packages

  Total download: 0 B

--------------------------------------------------------------------------------

Confirm changes: [Y/n] y

Transaction starting
[+] 0.5s
Extracting   (1) ----------------------------------------------------------------------------------------------------------------------------------   0 /   1 llvm-tools                 0.5sLinking ucrt-10.0.20348.0-h57928b3_0
Linking vs2015_runtime-14.29.30037-h902a5da_6
Linking vc-14.2-hb210afc_6
Linking libzlib-1.2.11-h8ffe710_1014
Linking libiconv-1.16-he774522_0
Linking zlib-1.2.11-h8ffe710_1014
Linking libllvm14-14.0.3-h97333cc_0
Linking libxml2-2.9.14-hf5bbc77_0
Linking llvm-tools-14.0.3-hf00eed6_0
warning  libmamba Invalid package cache, file 'C:\Users\User\MicromambaRoot\pkgs\llvm-tools-14.0.3-hf00eed6_0\Library\bin\bugpoint.exe' is missing
error    libmamba Cannot find a valid extracted directory cache for 'llvm-tools-14.0.3-hf00eed6_0.tar.bz2'
critical libmamba Package cache error.
(Bug) PS C:\Users\User>

Affected versions are at least: 14.0.0 hf00eed6_0 to 14.0.0 hf00eed6_0 ; 13.0.1 ha327e53_2

Installed packages

None extra required to reproduce

Environment info

(Bug) PS C:\Users\User> micromamba info

                                           
            __   __ __   / /  __ 
         / / / /  ` /  `/  __ \/ __ \/ __ /
        / // / / / / / / // / / / / / / // / // /
       / .__// // //_,// // //.__/_,/
      /_/


            environment : Bug (active)
           env location : C:\Users\User\MicromambaRoot\envs\Bug
      user config files : C:\Users\User.mambarc
 populated config files :
       libmamba version : 0.23.1
     micromamba version : 0.23.2
           curl version : libcurl/7.83.0-DEV Schannel zlib/1.2.12
     libarchive version : libarchive 3.5.2 zlib/1.2.12 liblzma/5.2.5 bz2lib/1.0.8 liblz4/1.9.3 libzstd/1.5.2
       virtual packages : win=0=0
                          archspec=1=x86_64
               channels :
       base environment : C:\Users\User\MicromambaRoot
               platform : win-64
@isuruf
Copy link
Member

isuruf commented May 24, 2022

That seems like a micromamba error.

@isuruf isuruf closed this as completed May 24, 2022
@h-vetinari
Copy link
Member

You can try upgrading your mamba version, and if the problem persists, raise an issue in https://github.com/mamba-org/mamba

@stellarpower
Copy link
Author

mamba-org/mamba#170

This looks to be an issue with lack of symlink support on Windows.

@wolfv
Copy link
Member

wolfv commented May 25, 2022

@stellarpower symbolic links generally require admin privileges on Windows. I think packages should - in general - avoid symbolic links on Windows.

You can turn on developer mode or run the terminal in admin mode: https://stackoverflow.com/a/58048888

@wolfv
Copy link
Member

wolfv commented May 25, 2022

It looks like this package contains a couple of symbolic links, e.g.

    {
      "_path": "Library/bin/llvm-strip.exe",
      "path_type": "softlink",
      "sha256": "86e1709c98deeb65768678a89960bb559d85f9dd157d4438659bd527b6c9bec3",
      "size_in_bytes": 4131328
    },

I don't know where they are pointing, though, and how easy / hard it is to turn them into hard links.

@isuruf isuruf reopened this May 25, 2022
@wolfv
Copy link
Member

wolfv commented May 25, 2022

looks like these are the symbolic links:

la---           5/24/2022  2:36 PM              0 llvm-addr2line.exe -> llvm-symbolizer.exe
la---           5/24/2022  2:36 PM              0 llvm-bitcode-strip.exe -> llvm-objcopy.exe
la---           5/24/2022  2:36 PM              0 llvm-dlltool.exe -> llvm-ar.exe
la---           5/24/2022  2:36 PM              0 llvm-install-name-tool.exe -> llvm-objcopy.exe
la---           5/24/2022  2:36 PM              0 llvm-lib.exe -> llvm-ar.exe
la---           5/24/2022  2:36 PM              0 llvm-otool.exe -> llvm-objdump.exe
la---           5/24/2022  2:36 PM              0 llvm-ranlib.exe -> llvm-ar.exe
la---           5/24/2022  2:36 PM              0 llvm-readelf.exe -> llvm-readobj.exe
la---           5/24/2022  2:36 PM              0 llvm-strip.exe -> llvm-objcopy.exe
la---           5/24/2022  2:36 PM              0 llvm-windres.exe -> llvm-rc.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants