Created
November 2, 2017 17:21
-
-
Save jafetmorales/7e9987e3ad1f89c46f2ab15f31dde761 to your computer and use it in GitHub Desktop.
Unable to pip install btef C extension in MSYS2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collecting btef | |
Using cached btef-0.1.tar.gz | |
Building wheels for collected packages: btef | |
Running setup.py bdist_wheel for btef: started | |
Running setup.py bdist_wheel for btef: finished with status 'error' | |
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-le6ys8sd/btef/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpa4fkl9c3pip-wheel- --python-tag cp36: | |
running bdist_wheel | |
running build | |
running build_ext | |
building 'btef' extension | |
creating build | |
creating build/temp.mingw64_nt-6.1-2.9.0(0.318 | |
creating build/temp.mingw64_nt-6.1-2.9.0(0.318/5 | |
creating build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6 | |
creating build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src | |
x86_64-pc-msys-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -I/usr/include/python3.6m -c src/btefmodule.c -o build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o | |
src/btefmodule.c: In function ‘set_encoding’: | |
src/btefmodule.c:11:10: warning: implicit declaration of function ‘PyFile_Check’ [-Wimplicit-function-declaration] | |
if (!PyFile_Check(f)) { | |
^~~~~~~~~~~~ | |
src/btefmodule.c:16:5: warning: implicit declaration of function ‘PyFile_SetEncoding’ [-Wimplicit-function-declaration] | |
PyFile_SetEncoding(f, encoding); | |
^~~~~~~~~~~~~~~~~~ | |
src/btefmodule.c: In function ‘initbtef’: | |
src/btefmodule.c:37:12: warning: implicit declaration of function ‘Py_InitModule3’ [-Wimplicit-function-declaration] | |
(void) Py_InitModule3("btef", BtefMethods, btef_module_doc); | |
^~~~~~~~~~~~~~ | |
src/btefmodule.c:38:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
creating build/lib.mingw64_nt-6.1-2.9.0(0.318 | |
creating build/lib.mingw64_nt-6.1-2.9.0(0.318/5 | |
creating build/lib.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6 | |
gcc -shared -Wl,--enable-auto-image-base -pipe -L. build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o -L/usr/lib/python3.6/config -L/usr/lib -lpython3.6m -o build/lib.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/btef.cpython-36m.dll | |
build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o: In function `set_encoding': | |
/tmp/pip-build-le6ys8sd/btef/src/btefmodule.c:11: undefined reference to `PyFile_Check' | |
/tmp/pip-build-le6ys8sd/btef/src/btefmodule.c:16: undefined reference to `PyFile_SetEncoding' | |
build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o: In function `initbtef': | |
/tmp/pip-build-le6ys8sd/btef/src/btefmodule.c:37: undefined reference to `Py_InitModule3' | |
collect2.exe: error: ld returned 1 exit status | |
error: command 'gcc' failed with exit status 1 | |
---------------------------------------- | |
Failed building wheel for btef | |
Running setup.py clean for btef | |
Failed to build btef | |
Installing collected packages: btef | |
Running setup.py install for btef: started | |
Running setup.py install for btef: finished with status 'error' | |
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-le6ys8sd/btef/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-i0x10smp-record/install-record.txt --single-version-externally-managed --compile: | |
running install | |
running build | |
running build_ext | |
building 'btef' extension | |
creating build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6 | |
creating build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src | |
x86_64-pc-msys-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -I/usr/include/python3.6m -c src/btefmodule.c -o build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o | |
src/btefmodule.c: In function ‘set_encoding’: | |
src/btefmodule.c:11:10: warning: implicit declaration of function ‘PyFile_Check’ [-Wimplicit-function-declaration] | |
if (!PyFile_Check(f)) { | |
^~~~~~~~~~~~ | |
src/btefmodule.c:16:5: warning: implicit declaration of function ‘PyFile_SetEncoding’ [-Wimplicit-function-declaration] | |
PyFile_SetEncoding(f, encoding); | |
^~~~~~~~~~~~~~~~~~ | |
src/btefmodule.c: In function ‘initbtef’: | |
src/btefmodule.c:37:12: warning: implicit declaration of function ‘Py_InitModule3’ [-Wimplicit-function-declaration] | |
(void) Py_InitModule3("btef", BtefMethods, btef_module_doc); | |
^~~~~~~~~~~~~~ | |
src/btefmodule.c:38:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
creating build/lib.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6 | |
gcc -shared -Wl,--enable-auto-image-base -pipe -L. build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o -L/usr/lib/python3.6/config -L/usr/lib -lpython3.6m -o build/lib.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/btef.cpython-36m.dll | |
build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o: In function `set_encoding': | |
/tmp/pip-build-le6ys8sd/btef/src/btefmodule.c:11: undefined reference to `PyFile_Check' | |
/tmp/pip-build-le6ys8sd/btef/src/btefmodule.c:16: undefined reference to `PyFile_SetEncoding' | |
build/temp.mingw64_nt-6.1-2.9.0(0.318/5/3)-x86_64-3.6/src/btefmodule.o: In function `initbtef': | |
/tmp/pip-build-le6ys8sd/btef/src/btefmodule.c:37: undefined reference to `Py_InitModule3' | |
collect2.exe: error: ld returned 1 exit status | |
error: command 'gcc' failed with exit status 1 | |
---------------------------------------- | |
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-le6ys8sd/btef/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-i0x10smp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-le6ys8sd/btef/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment