Skip to content

Error through MSYS2 #911

Closed
Closed

Description

@revantTNK

[Errno 22] Invalid argument: '\\?\\home\revan\emsdk\node\unzip_temp'

What is this? Can you help me on this? Running on Windows 10, MSYS2 MINGw64

Activity

  1. sbc100 commented on Oct 14, 2021

    @sbc100
    Collaborator

    @juj are you familiar with this?

  2. revantTNK commented on Oct 14, 2021

    @revantTNK
    Author

    No, I only needed this for one thing, and I am not familiar with this

  3. juj commented on Oct 28, 2021

    @juj
    Collaborator

    I am not very familiar with MINGW, MSYS2 (or WSL) too much at all, my experience with these dates back some decade ago or more.

    Looking at the error, it seems that

    emsdk/emsdk.py

    Line 552 in 2b3e0b9

    def fix_potentially_long_windows_pathname(pathname):
    is incorrectly getting triggered on Windows when running under MSYS2. That function should probably be gated out when Unix paths are present.

    @MilkMan1093 can you try changing

    emsdk/emsdk.py

    Line 553 in 2b3e0b9

    if not WINDOWS:

    to

    if MSYS or not WINDOWS:
      return

    Though reading this line

    emsdk/emsdk.py

    Line 561 in 2b3e0b9

    if MINGW:
    suggests that there may be some specific stuff needed to fix long MINGW/MSYS path names as well. So if the above does not work, then can try to change that to

    if MINGW or MSYS2:

    If some of that works, patches are welcome. (MSYS2/MinGW/WSL subsystems do not currently have a maintainer and are not on the list of "officially" supported targets)

  4. revantTNK commented on Nov 7, 2021

    @revantTNK
    Author

    None of those 2 worked, sadly..

  5. farvelocity commented on Jun 4, 2022

    @farvelocity

    if MSYS2/MinGW or other subsystems, the function fix_potentially_long_windows_pathname in emsdk.py mabye do config ,return the normalized paths with backslashes,but the "//?/" returned .
    maybe return path directly donothing ,can resolve the error,like this
    return pathname

  6. added a commit that references this issue on Feb 7, 2023
    f55ecf5
  7. added a commit that references this issue on Jun 28, 2024
    5ad3ff0
  8. added a commit that references this issue on Feb 3, 2026
    ce67896
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions