[petsc-users] petsc4py Build Problem
Mikhail Khodak
mkhodak at princeton.edu
Sun Jun 7 18:50:55 CDT 2015
Hello, I am trying to build petsc4py-3.5.1 using Cygwin on 64-bit Windows
7. I have built PETSc 3.5.4 with shared and dynamic libraries using
mpich2-1.2.1 and successfully ran the installation tests. I am using Python
2.7 and NumPy 1.9.2 and have installed mpi4py. However, when I attempt to
install petsc4py (both with pip and distutils) I get a mpicc compiler error
due to undefined references/symbols. I have attached the output of running
pip install petsc petsc4py --allow-external petsc --allow-external petsc4py
Thank you in advance for any help,
Mikhail Khodak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150607/b7ca9612/attachment-0001.html>
-------------- next part --------------
Requirement already satisfied (use --upgrade to upgrade): petsc in /usr/lib/python2.7/site-packages
Collecting petsc4py
Downloading https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.5.1.tar.gz (1.5MB)
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/site-packages (from petsc4py)
Building wheels for collected packages: petsc4py
Running setup.py bdist_wheel for petsc4py
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-6RsUSP/petsc4py/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmptNVF2lpip-wheel-:
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.cygwin-2.0.3-x86_64-2.7
creating build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py
copying src/help.py -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py
copying src/PETSc.py -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py
copying src/__init__.py -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py
copying src/__main__.py -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py
creating build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/lib
copying src/lib/__init__.py -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/lib
creating build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include
creating build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/numpy.h -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.h -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.PETSc.h -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.PETSc_api.h -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/petsc4py.i -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/PETSc.pxd -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/__init__.pxd -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/include/petsc4py/__init__.pyx -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/include/petsc4py
copying src/lib/petsc.cfg -> build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/lib
running build_ext
PETSC_DIR: /cygdrive/c/cygwin64/petsc-3.5.4
PETSC_ARCH: cygwin-2.0.3-x86_64-python
version: 3.5.4 release
scalar-type: real
precision: double
language: CONLY
compiler: /cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc
linker: /cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc
building 'PETSc' extension
creating build/temp.cygwin-2.0.3-x86_64-2.7
creating build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python
creating build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src
/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/build=/usr/src/debug/python-2.7.10-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/src/Python-2.7.10=/usr/src/debug/python-2.7.10-1 -DNDEBUG -g -fwrapv -O3 -Wall -DPETSC_DIR=/cygdrive/c/cygwin64/petsc-3.5.4 -I/cygdrive/c/cygwin64/mpich2-1.2.1/src/include -I/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/include -I/cygdrive/c/cygwin64/petsc-3.5.4/include -Isrc/include -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c src/PETSc.c -o build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o
In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/include/petsc4py/numpy.h:11,
from src/petsc4py.PETSc.c:353,
from src/PETSc.c:3:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/build=/usr/src/debug/python-2.7.10-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/src/Python-2.7.10=/usr/src/debug/python-2.7.10-1 -DNDEBUG -g -fwrapv -O3 -Wall -DPETSC_DIR=/cygdrive/c/cygwin64/petsc-3.5.4 -I/cygdrive/c/cygwin64/mpich2-1.2.1/src/include -I/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/include -I/cygdrive/c/cygwin64/petsc-3.5.4/include -Isrc/include -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c src/libpetsc4py.c -o build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/libpetsc4py.o
creating build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/lib/cygwin-2.0.3-x86_64-python
/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -shared -Wl,--enable-auto-image-base -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/build=/usr/src/debug/python-2.7.10-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/src/Python-2.7.10=/usr/src/debug/python-2.7.10-1 -DNDEBUG -g -fwrapv -O3 -Wall -L. build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/libpetsc4py.o -L/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/lib -L/usr/lib/python2.7/config -L/usr/lib -Wl,-R/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/lib -lpetsc -lpython2.7 -o build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/lib/cygwin-2.0.3-x86_64-python/PETSc.dll
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2TS_152setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165922: undefined reference to `__imp_TSPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165922:(.text+0x533d9): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_TSPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2PC_46setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127910: undefined reference to `__imp_PCPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127910:(.text+0x53669): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_PCPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3KSP_120setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141013: undefined reference to `__imp_KSPPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141013:(.text+0x538f9): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_KSPPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_4SNES_150setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153495: undefined reference to `__imp_SNESPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153495:(.text+0x53b89): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_SNESPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3Mat_78setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104355: undefined reference to `__imp_MatPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104355:(.text+0x53e19): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_MatPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_f_8petsc4py_5PETSc_register':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212385: undefined reference to `__imp_import_libpetsc4py'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212385:(.text+0x6311d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_import_libpetsc4py'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212394: undefined reference to `__imp_PetscPythonRegisterAll'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212394:(.text+0x6312c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_PetscPythonRegisterAll'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3Mat_76createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104246: undefined reference to `__imp_MatPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104246:(.text+0xa4d22): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_MatPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3Mat_80getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104429: undefined reference to `__imp_MatPythonGetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104429:(.text+0xa6c07): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_MatPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3KSP_122getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141087: undefined reference to `__imp_KSPPythonGetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141087:(.text+0xa6de7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_KSPPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2PC_48getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127984: undefined reference to `__imp_PCPythonGetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127984:(.text+0xa6fc7): additional relocation overflows omitted from the output
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_4SNES_152getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153569: undefined reference to `__imp_SNESPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2TS_154getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165996: undefined reference to `__imp_TSPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_4SNES_148createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153386: undefined reference to `__imp_SNESPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3KSP_118createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:140904: undefined reference to `__imp_KSPPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2PC_44createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127801: undefined reference to `__imp_PCPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2TS_150createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165813: undefined reference to `__imp_TSPythonSetContext'
collect2: error: ld returned 1 exit status
error: command '/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc' failed with exit status 1
----------------------------------------
Failed to build petsc4py
Installing collected packages: petsc4py
Running setup.py install for petsc4py
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-6RsUSP/petsc4py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-paiwXa-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_src
running build_py
running build_ext
PETSC_DIR: /cygdrive/c/cygwin64/petsc-3.5.4
PETSC_ARCH: cygwin-2.0.3-x86_64-python
version: 3.5.4 release
scalar-type: real
precision: double
language: CONLY
compiler: /cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc
linker: /cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc
building 'PETSc' extension
/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/build=/usr/src/debug/python-2.7.10-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/src/Python-2.7.10=/usr/src/debug/python-2.7.10-1 -DNDEBUG -g -fwrapv -O3 -Wall -DPETSC_DIR=/cygdrive/c/cygwin64/petsc-3.5.4 -I/cygdrive/c/cygwin64/mpich2-1.2.1/src/include -I/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/include -I/cygdrive/c/cygwin64/petsc-3.5.4/include -Isrc/include -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c src/PETSc.c -o build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o
In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/include/petsc4py/numpy.h:11,
from src/petsc4py.PETSc.c:353,
from src/PETSc.c:3:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/build=/usr/src/debug/python-2.7.10-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/src/Python-2.7.10=/usr/src/debug/python-2.7.10-1 -DNDEBUG -g -fwrapv -O3 -Wall -DPETSC_DIR=/cygdrive/c/cygwin64/petsc-3.5.4 -I/cygdrive/c/cygwin64/mpich2-1.2.1/src/include -I/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/include -I/cygdrive/c/cygwin64/petsc-3.5.4/include -Isrc/include -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c src/libpetsc4py.c -o build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/libpetsc4py.o
/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -shared -Wl,--enable-auto-image-base -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/build=/usr/src/debug/python-2.7.10-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.x86_64/src/Python-2.7.10=/usr/src/debug/python-2.7.10-1 -DNDEBUG -g -fwrapv -O3 -Wall -L. build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/libpetsc4py.o -L/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/lib -L/usr/lib/python2.7/config -L/usr/lib -Wl,-R/cygdrive/c/cygwin64/petsc-3.5.4/cygwin-2.0.3-x86_64-python/lib -lpetsc -lpython2.7 -o build/lib.cygwin-2.0.3-x86_64-2.7/petsc4py/lib/cygwin-2.0.3-x86_64-python/PETSc.dll
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2TS_152setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165922: undefined reference to `__imp_TSPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165922:(.text+0x533d9): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_TSPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2PC_46setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127910: undefined reference to `__imp_PCPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127910:(.text+0x53669): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_PCPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3KSP_120setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141013: undefined reference to `__imp_KSPPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141013:(.text+0x538f9): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_KSPPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_4SNES_150setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153495: undefined reference to `__imp_SNESPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153495:(.text+0x53b89): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_SNESPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3Mat_78setPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104355: undefined reference to `__imp_MatPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104355:(.text+0x53e19): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_MatPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_f_8petsc4py_5PETSc_register':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212385: undefined reference to `__imp_import_libpetsc4py'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212385:(.text+0x6311d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_import_libpetsc4py'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212394: undefined reference to `__imp_PetscPythonRegisterAll'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:212394:(.text+0x6312c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_PetscPythonRegisterAll'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3Mat_76createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104246: undefined reference to `__imp_MatPythonSetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104246:(.text+0xa4d22): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_MatPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3Mat_80getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104429: undefined reference to `__imp_MatPythonGetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:104429:(.text+0xa6c07): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_MatPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3KSP_122getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141087: undefined reference to `__imp_KSPPythonGetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:141087:(.text+0xa6de7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_KSPPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2PC_48getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127984: undefined reference to `__imp_PCPythonGetContext'
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127984:(.text+0xa6fc7): additional relocation overflows omitted from the output
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_4SNES_152getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153569: undefined reference to `__imp_SNESPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2TS_154getPythonContext':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165996: undefined reference to `__imp_TSPythonGetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_4SNES_148createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:153386: undefined reference to `__imp_SNESPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_3KSP_118createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:140904: undefined reference to `__imp_KSPPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2PC_44createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:127801: undefined reference to `__imp_PCPythonSetContext'
build/temp.cygwin-2.0.3-x86_64-2.7/cygwin-2.0.3-x86_64-python/src/PETSc.o: In function `__pyx_pf_8petsc4py_5PETSc_2TS_150createPython':
/tmp/pip-build-6RsUSP/petsc4py/src/petsc4py.PETSc.c:165813: undefined reference to `__imp_TSPythonSetContext'
collect2: error: ld returned 1 exit status
error: command '/cygdrive/c/cygwin64/mpich2-1.2.1/bin/mpicc' failed with exit status 1
----------------------------------------
More information about the petsc-users
mailing list