Skip to content

Definition of ssize_t in headers\carma\include\carma(28) causes CI issue on Windows #123

Description

@Adarsh321123

Thanks so much for the awesome package!

I am trying to create a GitHub Action that builds the BanditPAM wheels on Windows. Here is the workflow file for reference. However, the build job fails with this exception:

headers\carma\include\carma(28): error C2371: 'ssize_t': redefinition; different basic types
C:\Users\runneradmin\AppData\Local\pypa\cibuildwheel\Cache\nuget-cpython\pythonx86.3.6.8\tools\include\pyconfig.h(174): note: see declaration of 'ssize_t' 

It seems that carma and CPython3.6 from NuGet both define ssize_t, leading to the exception. Can anyone please offer some assistance so I can ship this Action in a future release of BanditPAM?

Activity

  1. Adarsh321123 commented on Jun 29, 2023

    @Adarsh321123
    Author

    Just wanted to follow up on this @RUrlus!

  2. RUrlus commented on Jun 29, 2023

    @RUrlus
    Owner

    Just wanted to follow up on this @RUrlus!

    I'm on holiday, you'll have to be a bit more patient.

  3. Adarsh321123 commented on Jun 29, 2023

    @Adarsh321123
    Author

    Sorry! I'll wait for your response.

  4. tynanseltzer commented on Jul 1, 2023

    @tynanseltzer

    Unsure if these are the same bug but figured I'd offer if useful:

    I ran into similar issues trying to build a python project that relies on Carma on Windows, specifically these two errors
    c4430 missing type specifier int assumed
    C3646 tsize unknown override specifier
    both at line 38 of https://github.com/RUrlus/carma/blob/stable/include/carma_bits/arraystore.h
    Based on pytorch/pytorch#69948
    I reverted to VS2019 and python 3.9, and it then built without error. Trying either VS2022 or python 3.10 would error. Unsure the root cause of the issue, but figured this might help in debugging/fixing.

    Enjoy your holiday!

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions