« first day (1713 days earlier)      last day (1628 days later) » 

user11867329
6:42 PM
 
1 message moved from Python
 
user11867329
 
1 message moved from Python
 
 
5 hours later…
11:32 PM
I'm trying to compile python on an hpc cluster...
./Programs/python.c: In function ‘main’:
./Programs/python.c:15:12: error: implicit declaration of function ‘_Py_UnixMain’; did you mean ‘Py_Main’? [-Werror=implicit-function-declaration]
     return _Py_UnixMain(argc, argv);
            ^~~~~~~~~~~~
            Py_Main
that can't be good
it seems it's a macro that's only defined #ifdef Py_BUILD_CORE. Hmm.
so... python.c includes Python.h which includes pylifecycle.h which defines _Py_UnixMain assuming #ifdef Py_BUILD_CORE, and I have
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/nce/packages/global/barthaf/tools/gcc/8.2.0/include -I/opt/nce/packages/global/python/2.7.5/include/python2.7 -I/opt/nce/packages/global/barthaf/tools/gcc/8.2.0/include -I/opt/nce/packages/global/python/2.7.5/include/python2.7 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wno-cast-function-type -Werror=implicit-function-declaration -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
ah, it's not a macro, but it's conditionally declared
Even if I remove the #ifdef it doesn't find the declaration...ugh
I'm stumped
9 messages moved from Python
 

« first day (1713 days earlier)      last day (1628 days later) »