Skip to content

Instantly share code, notes, and snippets.

@epifanio
Created February 13, 2018 15:52
Show Gist options
  • Save epifanio/76e8a0691b9894217f06b6857522a769 to your computer and use it in GitHub Desktop.
Save epifanio/76e8a0691b9894217f06b6857522a769 to your computer and use it in GitHub Desktop.
epinux@Ubuntu-1604-xenial-64-minimal:~/dev/src/geopandas$ python3.6 setup.py build_ext --inplace --with-cython -l geos_c
Compiling geopandas/vectorized.pyx because it changed.
[1/1] Cythonizing geopandas/vectorized.pyx
warning: geopandas/vectorized.pyx:1596:24: Use boundscheck(False) for faster access
warning: geopandas/vectorized.pyx:1597:25: Use boundscheck(False) for faster access
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:355: UserWarning: Normalizing '1.0.0.dev+117.g455e396' to '1.0.0.dev0+117.g455e396'
normalized_version,
running build_ext
building 'geopandas.vectorized' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/geopandas
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Igeopandas -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/include -I/usr/include/python3.6m -c geopandas/vectorized.c -o build/temp.linux-x86_64-3.6/geopandas/vectorized.o
In file included from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from geopandas/vectorized.c:556:
/usr/local/lib/python3.6/dist-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 " \
^
geopandas/vectorized.c: In function ‘__pyx_f_9geopandas_10vectorized_prepared_binary_predicate’:
geopandas/vectorized.c:6089:33: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
__pyx_v_prepared_geom = GEOSPrepare_r(__pyx_v_handle, __pyx_v_other_geom);
^
geopandas/vectorized.c: In function ‘__pyx_f_9geopandas_10vectorized_geo_unary_op’:
geopandas/vectorized.c:12862:18: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_v_func = GEOSGetExteriorRing_r;
^
geopandas/vectorized.c: In function ‘__pyx_f_9geopandas_10vectorized_get_coordinate_point’:
geopandas/vectorized.c:15130:18: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_v_func = GEOSCoordSeq_getX_r;
^
geopandas/vectorized.c:15157:18: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_v_func = GEOSCoordSeq_getY_r;
^
geopandas/vectorized.c:15184:18: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_v_func = GEOSCoordSeq_getZ_r;
^
geopandas/vectorized.c:15285:38: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
__pyx_v_sequence = GEOSGeom_getCoordSeq_r(__pyx_v_handle, __pyx_v_geom);
^
geopandas/vectorized.c: In function ‘__pyx_f_9geopandas_10vectorized_coords’:
geopandas/vectorized.c:17453:30: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
__pyx_v_sequence = GEOSGeom_getCoordSeq_r(__pyx_v_handle, __pyx_v_geom);
^
geopandas/vectorized.c: In function ‘__pyx_f_9geopandas_10vectorized_cysjoin’:
geopandas/vectorized.c:25127:71: warning: passing argument 3 of ‘sjoin’ from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_v_sv = sjoin(__pyx_v_handle, __pyx_v_predicate, ((GEOSGeometry *)__pyx_v_left->data), __pyx_v_left_size, ((GEOSG
^
In file included from geopandas/vectorized.c:560:0:
geopandas/algos.h:21:13: note: expected ‘GEOSGeometry ** {aka struct GEOSGeom_t **}’ but argument is of type ‘GEOSGeometry * {aka struct GEOSGeom_t *}’
size_vector sjoin(GEOSContextHandle_t handle,
^
geopandas/vectorized.c:25127:128: warning: passing argument 5 of ‘sjoin’ from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_v_sv = sjoin(__pyx_v_handle, __pyx_v_predicate, ((GEOSGeometry *)__pyx_v_left->data), __pyx_v_left_size, ((GEOSGeome
^
In file included from geopandas/vectorized.c:560:0:
geopandas/algos.h:21:13: note: expected ‘GEOSGeometry ** {aka struct GEOSGeom_t **}’ but argument is of type ‘GEOSGeometry * {aka struct GEOSGeom_t *}’
size_vector sjoin(GEOSContextHandle_t handle,
^
geopandas/vectorized.c: At top level:
geopandas/vectorized.c:2806:30: warning: ‘__pyx_f_9geopandas_10vectorized_geos_from_prepared’ defined but not used [-Wunused-function]
static GEOSPreparedGeometry *__pyx_f_9geopandas_10vectorized_geos_from_prepared(PyObject *__pyx_v_shapely_geom) {
^
geopandas/vectorized.c:15005:18: warning: ‘__pyx_f_9geopandas_10vectorized_get_coordinate_point’ defined but not used [-Wunused-function]
static PyObject *__pyx_f_9geopandas_10vectorized_get_coordinate_point(PyArrayObject *__pyx_v_geoms, int __pyx_v_coordinate) {
^
geopandas/vectorized.c: In function ‘__pyx_pw_9geopandas_10vectorized_13GeometryArray_3__getitem__’:
geopandas/vectorized.c:3084:15: warning: ‘__pyx_v_geom’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_1 = __Pyx_PyInt_FromSize_t(((__pyx_t_5numpy_uintp_t)__pyx_v_geom)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_erro
^
geopandas/vectorized.c:2861:17: note: ‘__pyx_v_geom’ was declared here
GEOSGeometry *__pyx_v_geom;
^
geopandas/vectorized.c: In function ‘__pyx_pw_9geopandas_10vectorized_13GeometryArray_107unary_union’:
geopandas/vectorized.c:17196:15: warning: ‘__pyx_v_out’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_8 = __Pyx_PyInt_FromSize_t(((__pyx_t_5numpy_uintp_t)__pyx_v_out)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1149, __pyx_L1_err
^
geopandas/vectorized.c:16948:17: note: ‘__pyx_v_out’ was declared here
GEOSGeometry *__pyx_v_out;
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Igeopandas -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/include -I/usr/include/python3.6m -c geopandas/algos.c -o build/temp.linux-x86_64-3.6/geopandas/algos.o
geopandas/algos.c: In function ‘create_index’:
geopandas/algos.c:31:58: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
GEOSSTRtree_insert_r(handle, tree, geoms[i], (void*) i);
^
geopandas/algos.c: In function ‘sjoin’:
geopandas/algos.c:87:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
prepared = GEOSPrepare_r(handle, left[l]);
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/geopandas/vectorized.o build/temp.linux-x86_64-3.6/geopandas/algos.o -lgeos_c -lgeos_c -o /home/epinux/dev/src/geopandas/geopandas/vectorized.cpython-36m-x86_64-linux-gnu.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment