Issue280

Title Windows: General compile issue compiling hello_world.py
Priority bug Status resolved
Superseder Nosy List kayhayen, rcbyron
Assigned To kayhayen Keywords windows

Created on 2016-01-09.18:12:22 by rcbyron, last changed by kayhayen.

Files
File name Uploaded Type Edit Remove
test.py rcbyron, 2016-01-09.18:12:22 text/plain
Messages
msg2320 (view) Author: kayhayen Date: 2018-03-14.13:33:16
Checks have been implemented, should be good now.
msg1802 (view) Author: kayhayen Date: 2016-02-11.08:55:15
Nuitka is supposed to find Visual Studio 2015 automatically indeed. The errors 
suggest that you mix 32 bits and 64 bits though. For me, Nuitka works just fine, 
using Python3 with 32 bits and 64 bits with my MSVC 2015 installation. Maybe you 
chose to not have both arch support installed?

Nuitka doesn't yet check this arch issue properly, and I am uncertain how to 
check the arch if the found compiler vs. the given Python lheader arch. Any 
suggestions welcome how to do that. This kind of issue hits a lot of beginners, 
who often have no idea what a C++ compiler, let alone these batch files could be 
for.

Yours,
Kay
msg1797 (view) Author: bitwisecook Date: 2016-02-03.15:54:46
Are you running a developer command prompt? Have you run vcvarsall.bat amd64 from 
inside that?
msg1766 (view) Author: rcbyron Date: 2016-01-09.18:12:22
I just installed Nuitka. I have Visual Studio 2015 already installed. Does 
Nuitka automatically find that?

I installed Python 2 as well, but I intend to use Python 3.

I also couldn't find the interpreter .exe

Error output shown below.

ng_AsUnsignedLongLong'
 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *);
                                   ^
C:\Python34\include/longobject.h:92:35: error: expected initializer before 
'PyLong_AsUnsignedLongLongMask'
 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);
                                   ^
In file included from C:\Python34\include/Python.h:50:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFunctionType.cpp:19:
C:\Python34\include/pyconfig.h:301:23: error: '__int64' does not name a type
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyport.h:771:34: note: in definition of macro 'PyAPI_FUNC'
 #       define PyAPI_FUNC(RTYPE) RTYPE
                                  ^
C:\Python34\include/longobject.h:93:12: note: in expansion of macro 
'PY_LONG_LONG'
 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLongAndOverflow(PyObject *, int *);
            ^
In file included from C:\Python34\include/Python.h:50:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyport.h:814:2: error: #error "LONG_BIT definition appears 
wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc 
config?)."
  ^
In file included from C:\Python34\include/Python.h:8:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyconfig.h:301:23: error: expected ';' at end of member 
declaration
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:65:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k0;
         ^
In file included from C:\Python34\include/Python.h:71:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyhash.h:65:21: error: 'k0' does not name a type
         PY_UINT64_T k0;
                     ^
In file included from C:\Python34\include/Python.h:8:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyconfig.h:301:23: error: expected ';' at end of member 
declaration
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:66:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k1;
         ^
C:\Python34\include/pyconfig.h:301:23: error: redeclaration of 'unsigned int 
<anonymous union>::<anonymous struct>::__int64'
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:66:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k1;
         ^
C:\Python34\include/pyconfig.h:301:23: note: previous declaration 'unsigned 
int <anonymous union>::<anonymous struct>::__int64'
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:65:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k0;
         ^
In file included from C:\Python34\include/Python.h:71:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyhash.h:66:21: error: 'k1' does not name a type
         PY_UINT64_T k1;
                     ^
In file included from C:\Python34\include/Python.h:8:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyconfig.h:301:23: error: '__int64' was not declared in 
this scope
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/longobject.h:88:44: note: in expansion of macro 
'PY_LONG_LONG'
 PyAPI_FUNC(PyObject *) PyLong_FromLongLong(PY_LONG_LONG);
                                            ^
In file included from C:\Python34\include/Pystcons: *** 
[test.build\static\CompiledFunctionType.o] Error 1
hon.h:50:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyconfig.h:301:23: error: '__int64' does not name a type
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyport.h:771:34: note: in definition of macro 'PyAPI_FUNC'
 #       define PyAPI_FUNC(RTYPE) RTYPE
                                  ^
C:\Python34\include/longobject.h:90:12: note: in expansion of macro 
'PY_LONG_LONG'
 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLong(PyObject *);
            ^
In file included from C:\Python34\include/Python.h:78:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/longobject.h:91:35: error: expected initializer before 
'PyLong_AsUnsignedLongLong'
 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *);
                                   ^
C:\Python34\include/longobject.h:92:35: error: expected initializer before 
'PyLong_AsUnsignedLongLongMask'
 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);
                                   ^
In file included from C:\Python34\include/Python.h:50:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledFrameType.cpp:18:
C:\Python34\include/pyconfig.h:301:23: error: '__int64' does not name a type
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyport.h:771:34: note: in definition of macro 'PyAPI_FUNC'
 #       define PyAPI_FUNC(RTYPE) RTYPE
                                  ^
C:\Python34\include/longobject.h:93:12: note: in expansion of macro 
'PY_LONG_LONG'
 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLongAndOverflow(PyObject *, int *);
            ^
In file included from C:\Python34\include/Python.h:50:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyport.h:814:2: error: #error "LONG_BIT definition appears 
wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc 
config?)."
  ^
In file included from C:\Python34\include/Python.h:8:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyconfig.h:301:23: error: expected ';' at end of member 
declaration
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:65:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k0;
         ^
In file included from C:\Python34\include/Python.h:71:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyhash.h:65:21: error: 'k0' does not name a type
         PY_UINT64_T k0;
                     ^
In file included from C:\Python34\include/Python.h:8:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyconfig.h:301:23: error: expected ';' at end of member 
declaration
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:66:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k1;
         ^
C:\Python34\include/pyconfig.h:301:23: error: redeclaration of 'unsigned int 
<anonymous union>::<anonymous struct>::__int64'
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:66:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k1;
         ^
C:\Python34\include/pyconfig.h:301:23: note: previous declaration 'unsigned 
int <anonymous union>::<anonymous struct>::__int64'
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyconfig.h:413:30: note: in expansion of macro 
'PY_LONG_LONG'
 #define PY_UINT64_T unsigned PY_LONG_LONG
                              ^
C:\Python34\include/pyhash.h:65:9: note: in expansion of macro 'PY_UINT64_T'
         PY_UINT64_T k0;
         ^
In file included from C:\Python34\include/Python.h:71:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyhash.h:66:21: error: 'k1' does not name a type
         PY_UINT64_T k1;
                     ^
In file included from C:\Python34\include/Python.h:8:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyconfig.h:301:23: error: '__int64' was not declared in 
this scope
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/longobject.h:88:44: note: in expansion of macro 
'PY_LONG_LONG'
 PyAPI_FUNC(PyObject *) PyLong_FromLongLong(PY_LONG_LONG);
                                            ^
In file included frosmcons: *** [test.build\static\CompiledFrameType.o] Error 
1
 C:\Python34\include/Python.h:50:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyconfig.h:301:23: error: '__int64' does not name a type
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyport.h:771:34: note: in definition of macro 'PyAPI_FUNC'
 #       define PyAPI_FUNC(RTYPE) RTYPE
                                  ^
C:\Python34\include/longobject.h:90:12: note: in expansion of macro 
'PY_LONG_LONG'
 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLong(PyObject *);
            ^
In file included from C:\Python34\include/Python.h:78:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/longobject.h:91:35: error: expected initializer before 
'PyLong_AsUnsignedLongLong'
 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *);
                                   ^
C:\Python34\include/longobject.h:92:35: error: expected initializer before 
'PyLong_AsUnsignedLongLongMask'
 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);
                                   ^
In file included from C:\Python34\include/Python.h:50:0,
                 from C:\Python34\Lib\site-
packages\nuitka\build\include/nuitka/prelude.hpp:39,
                 from C:\Python34\Lib\site-
packages\nuitka\build\static_src\CompiledGeneratorType.cpp:19:
C:\Python34\include/pyconfig.h:301:23: error: '__int64' does not name a type
 # define PY_LONG_LONG __int64
                       ^
C:\Python34\include/pyport.h:771:34: note: in definition of macro 'PyAPI_FUNC'
 #       define PyAPI_FUNC(RTYPE) RTYPE
                                  ^
C:\Python34\include/longobject.h:93:12: note: in expansion of macro 
'PY_LONG_LONG'
 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLongAndOverflow(PyObject *, int *);
            ^
scons: *** [test.build\static\CompiledGeneratorType.o] Error 1
History
Date User Action Args
2018-03-14 13:33:21kayhayensetstatus: chatting -> resolved
2018-03-14 13:33:16kayhayensetassignedto: kayhayen
messages: + msg2320
nosy: + kayhayen
2016-02-11 08:55:15kayhayensetmessages: + msg1802
keyword: + windows
title: General compile issue compiling hello_world.py -> Windows: General compile issue compiling hello_world.py
2016-02-03 15:54:46bitwisecooksetstatus: unread -> chatting
messages: + msg1797
2016-01-09 18:12:22rcbyroncreate