Build steps
tar -zxvf matplotlib-3.1.2.tar.gz cd matplotlib-3.1.2 python setup.py build
Error detail
BUILDING MATPLOTLIB matplotlib: yes [3.1.2] python: yes [3.6.3 (default, Nov 23 2020, 09:56:24) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]] platform: yes [linux] OPTIONAL SUBPACKAGES sample_data: yes [installing] tests: no [skipping due to configuration] OPTIONAL BACKEND EXTENSIONS agg: yes [installing] tkagg: yes [installing; run-time loading from Python Tcl/Tk] macosx: no [Mac OS-X only] OPTIONAL PACKAGE DATA dlls: no [skipping due to configuration] /usr/local/python3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls' warnings.warn(msg) running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-aarch64-3.6/matplotlib/mpl-data UPDATING build/lib.linux-aarch64-3.6/matplotlib/_version.py set build/lib.linux-aarch64-3.6/matplotlib/_version.py to '3.1.2' running build_ext building 'matplotlib._png' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__png_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/checkdep_libpng.c -o build/temp.linux-aarch64-3.6/src/checkdep_libpng.o -I/usr/include/libpng15 src/checkdep_libpng.c:2:9: note: #pragma message: Compiling with libpng version 1.5.13. #pragma message("Compiling with libpng version " PNG_LIBPNG_VER_STRING ".") ^ gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__png_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/_png.cpp -o build/temp.linux-aarch64-3.6/src/_png.o -I/usr/include/libpng15 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__png_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/mplutils.cpp -o build/temp.linux-aarch64-3.6/src/mplutils.o -I/usr/include/libpng15 g++ -pthread -shared build/temp.linux-aarch64-3.6/src/checkdep_libpng.o build/temp.linux-aarch64-3.6/src/_png.o build/temp.linux-aarch64-3.6/src/mplutils.o -L/usr/local/python3.6/lib -lpython3.6m -o build/lib.linux-aarch64-3.6/matplotlib/_png.cpython-36m-aarch64-linux-gnu.so -lpng15 collect2: error: ld terminated with signal 9 [Killed] error: command 'g++' failed with exit status 1
I've tried to expand virtual memory,it didn't work.
Matplotlib version
Try a newer version?
Also failed in version 3.3.3, got the following error
BUILDING MATPLOTLIB matplotlib: yes [3.3.3] python: yes [3.6.3 (default, Nov 23 2020, 09:56:24) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]] platform: yes [linux] sample_data: yes [installing] tests: no [skipping due to configuration] macosx: no [Mac OS-X only] /usr/local/python3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls' warnings.warn(msg) /usr/local/python3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-aarch64-3.6/matplotlib/mpl-data UPDATING build/lib.linux-aarch64-3.6/matplotlib/_version.py set build/lib.linux-aarch64-3.6/matplotlib/_version.py to '3.3.3' running build_ext gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c /tmp/tmpfivdp3xz.cpp -o tmp/tmpfivdp3xz.o -fvisibility=hidden gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c /tmp/tmpro9uhhjw.cpp -o tmp/tmpro9uhhjw.o -fvisibility-inlines-hidden gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c /tmp/tmp62mkdrxe.cpp -o tmp/tmp62mkdrxe.o -flto building 'matplotlib._contour' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__contour_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/_contour.cpp -o build/temp.linux-aarch64-3.6/src/_contour.o -fvisibility=hidden -flto gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__contour_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/_contour_wrapper.cpp -o build/temp.linux-aarch64-3.6/src/_contour_wrapper.o -fvisibility=hidden -flto gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__contour_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/py_converters.cpp -o build/temp.linux-aarch64-3.6/src/py_converters.o -fvisibility=hidden -flto g++ -pthread -shared build/temp.linux-aarch64-3.6/src/_contour.o build/temp.linux-aarch64-3.6/src/_contour_wrapper.o build/temp.linux-aarch64-3.6/src/py_converters.o -L/usr/local/python3.6/lib -lpython3.6m -o build/lib.linux-aarch64-3.6/matplotlib/_contour.cpython-36m-aarch64-linux-gnu.so collect2: error: ld terminated with signal 9 [Killed] error: command 'g++' failed with exit status 1
Well, the process is getting killed; that's not something that Matplotlib's setup is doing. You'll have to figure out why that is happening.
Closing, because this is a compiler crashing, not Matplotlib, but also, we now have aarch64 wheels that can be installed without compiling at all.
Activity
QuLogic commented on Nov 27, 2020
Try a newer version?
wanganhong commented on Nov 30, 2020
Also failed in version 3.3.3, got the following error
BUILDING MATPLOTLIB matplotlib: yes [3.3.3] python: yes [3.6.3 (default, Nov 23 2020, 09:56:24) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]] platform: yes [linux] sample_data: yes [installing] tests: no [skipping due to configuration] macosx: no [Mac OS-X only] /usr/local/python3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls' warnings.warn(msg) /usr/local/python3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-aarch64-3.6/matplotlib/mpl-data UPDATING build/lib.linux-aarch64-3.6/matplotlib/_version.py set build/lib.linux-aarch64-3.6/matplotlib/_version.py to '3.3.3' running build_ext gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c /tmp/tmpfivdp3xz.cpp -o tmp/tmpfivdp3xz.o -fvisibility=hidden gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c /tmp/tmpro9uhhjw.cpp -o tmp/tmpro9uhhjw.o -fvisibility-inlines-hidden gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c /tmp/tmp62mkdrxe.cpp -o tmp/tmp62mkdrxe.o -flto building 'matplotlib._contour' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__contour_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/_contour.cpp -o build/temp.linux-aarch64-3.6/src/_contour.o -fvisibility=hidden -flto gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__contour_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/_contour_wrapper.cpp -o build/temp.linux-aarch64-3.6/src/_contour_wrapper.o -fvisibility=hidden -flto gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__contour_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/wah/venv/lib/python3.6/site-packages/numpy/core/include -I/home/wah/venv/include -I/usr/local/python3.6/include/python3.6m -c src/py_converters.cpp -o build/temp.linux-aarch64-3.6/src/py_converters.o -fvisibility=hidden -flto g++ -pthread -shared build/temp.linux-aarch64-3.6/src/_contour.o build/temp.linux-aarch64-3.6/src/_contour_wrapper.o build/temp.linux-aarch64-3.6/src/py_converters.o -L/usr/local/python3.6/lib -lpython3.6m -o build/lib.linux-aarch64-3.6/matplotlib/_contour.cpython-36m-aarch64-linux-gnu.so collect2: error: ld terminated with signal 9 [Killed] error: command 'g++' failed with exit status 1QuLogic commented on Nov 30, 2020
Well, the process is getting killed; that's not something that Matplotlib's setup is doing. You'll have to figure out why that is happening.
QuLogic commented on Apr 5, 2021
Closing, because this is a compiler crashing, not Matplotlib, but also, we now have aarch64 wheels that can be installed without compiling at all.