Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py build fails #160

Open
asgeirom opened this issue Oct 23, 2018 · 0 comments
Open

setup.py build fails #160

asgeirom opened this issue Oct 23, 2018 · 0 comments

Comments

@asgeirom
Copy link

..../gippy# python setup.py build

running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/gippy
copying gippy/version.py -> build/lib.linux-x86_64-2.7/gippy
copying gippy/test.py -> build/lib.linux-x86_64-2.7/gippy
copying gippy/init.py -> build/lib.linux-x86_64-2.7/gippy
running build_ext
DEBUG:setup.py:_build_ext run
building 'gippy/libgip' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/GIP
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -IGIP -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c GIP/GeoAlgorithms.cpp -o build/temp.linux-x86_64-2.7/GIP/GeoAlgorithms.o -fPIC -O3 -std=c++11 -D GDAL2 -Wno-maybe-uninitialized
In file included from GIP/gip/gip.h:38:0,
from GIP/gip/GeoResource.h:29,
from GIP/gip/GeoImage.h:26,
from GIP/gip/GeoAlgorithms.h:25,
from GIP/GeoAlgorithms.cpp:26:
GIP/cimg/CImg.h:5191:55: warning: macro "DATE" might prevent reproducible builds [-Wdate-time]
std::fprintf(cimg::output()," (%s, %s)\n\n",DATE,TIME);
^
GIP/cimg/CImg.h:5191:64: warning: macro "TIME" might prevent reproducible builds [-Wdate-time]
std::fprintf(cimg::output()," (%s, %s)\n\n",DATE,TIME);
^
GIP/cimg/CImg.h:5271:35: warning: macro "DATE" might prevent reproducible builds [-Wdate-time]
cimg::t_normal,DATE,TIME);
^
GIP/cimg/CImg.h:5271:44: warning: macro "TIME" might prevent reproducible builds [-Wdate-time]
cimg::t_normal,DATE,TIME);
^
x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-5/README.Bugs for instructions.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

..../gippy# CFLAGS="-Wno-error=date-time -DDEBUG" python setup.py build

running build
running build_py
running build_ext
DEBUG:setup.py:_build_ext run
building 'gippy/libgip' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -fno-strict-aliasing -Wno-error=date-time -DDEBUG -fPIC -IGIP -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c GIP/GeoAlgorithms.cpp -o build/temp.linux-x86_64-2.7/GIP/GeoAlgorithms.o -fPIC -O3 -std=c++11 -D GDAL2 -Wno-maybe-uninitialized
In file included from GIP/gip/GeoResource.h:31:0,
from GIP/gip/GeoImage.h:26,
from GIP/gip/GeoAlgorithms.h:25,
from GIP/GeoAlgorithms.cpp:26:
GIP/gip/geometry.h: In member function ‘gip::Point gip::Point::transform(std::__cxx11::string, std::__cxx11::string)’:
GIP/gip/geometry.h:71:53: error: cannot convert ‘OGRCoordinateTransformation*’ to ‘OGRCoordinateTransformationH {aka OGRCoordinateTransformationHS*}’ for argument ‘1’ to ‘void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)’
OCTDestroyCoordinateTransformation(trans);
^
x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-5/README.Bugs for instructions.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

..../gippy# git status

On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant