Skip to content

Instantly share code, notes, and snippets.

@lubosz
Created May 13, 2014 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lubosz/d41142333decf433a2da to your computer and use it in GitHub Desktop.
Save lubosz/d41142333decf433a2da to your computer and use it in GitHub Desktop.
python 3 build error on mingw (windows)
$ make
x86_64-w64-mingw32-gcc -c -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wall -g -O2 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -Wall -g -O2 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
In file included from Include/Python.h:50:0,
from ./Modules/python.c:3:
Include/pyport.h:223:5: error: #error "Python doesn't support sizeof(pid_t) > sizeof(long)"
Include/pyport.h:258:9: error: #error "This platform's pyconfig.h needs to define PY_FORMAT_SIZE_T"
make: *** [Modules/python.o] Error 1
@eiqui
Copy link

eiqui commented Aug 16, 2018

How have you resolved this issue? I'm getting a similar error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment