PufferLib icon indicating copy to clipboard operation
PufferLib copied to clipboard

Compilation/installation issue

Open prasuchit opened this issue 5 months ago • 0 comments

Hi,

I'm trying to install PufferLib on a cloud desktop and when I run the pip install pufferlib --no-build-isolation command, I see the following errors:

In file included from pufferlib/ocean/checkers/binding.c:1:0: pufferlib/ocean/checkers/checkers.h: In function ‘c_render’: pufferlib/ocean/checkers/checkers.h:752:7: error: case label does not reduce to an integer constant case AGENT_PAWN: ^~~~ pufferlib/ocean/checkers/checkers.h:763:7: error: case label does not reduce to an integer constant case AGENT_KING: ^~~~ pufferlib/ocean/checkers/checkers.h:781:7: error: case label does not reduce to an integer constant case OPPONENT_PAWN: ^~~~ compilation terminated due to -fmax-errors=3. error: command '/usr/bin/cc' failed with exit code 1

My gcc version is (GCC) 13.2.0, my OS is Amazon Linux 2 and I have all the relevant dependencies correctly installed. Kindly help.

prasuchit avatar Aug 07 '25 21:08 prasuchit