linux - Internal compiler error: Segmentation fault while installing a python library -
i have ubuntu 14.04. trying install python library (deepdish) when execute command sudo python setup.py install
following errors.
x86_64-linux-gnu-gcc: internal compiler error: segmentation fault (program collect2)
i facing similar type of 'internal compiler error' while trying install or make other things. think there problem has occurred in system. seems have gotten corrupted. cant figure out reason. has got gcc or build-essential.
following detailed output :
$ sudo python setup.py install running install running bdist_egg running egg_info writing requirements deepdish.egg-info/requires.txt writing deepdish.egg-info/pkg-info writing top-level names deepdish.egg-info/top_level.txt writing dependency_links deepdish.egg-info/dependency_links.txt reading manifest file 'deepdish.egg-info/sources.txt' reading manifest template 'manifest.in' writing manifest file 'deepdish.egg-info/sources.txt' installing library code build/bdist.linux-x86_64/egg running install_lib running build_py running build_ext building 'deepdish.plot.resample' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fpic -i/usr/lib/python2.7/dist-packages/numpy/core/include -i/usr/include/python2.7 -c deepdish/plot/resample.c -o build/temp.linux-x86_64-2.7/deepdish/plot/resample.o in file included /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0, /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17, /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4, deepdish/plot/resample.c:258: /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "using deprecated numpy api, disable " "#defining npy_no_deprecated_api npy_1_7_api_version" [-wcpp] #warning "using deprecated numpy api, disable " \ ^ in file included /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0, /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4, deepdish/plot/resample.c:258: /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1629:1: warning: ‘_import_array’ defined not used [-wunused-function] _import_array(void) ^ in file included /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:327:0, deepdish/plot/resample.c:259: /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: ‘_import_umath’ defined not used [-wunused-function] _import_umath(void) ^ x86_64-linux-gnu-gcc -pthread -shared -wl,-o1 -wl,-bsymbolic-functions -wl,-bsymbolic-functions -wl,-z,relro -fno-strict-aliasing -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -d_fortify_source=2 -g -fstack-protector --param=ssp-buffer-size=4 -wformat -werror=format-security build/temp.linux-x86_64-2.7/deepdish/plot/resample.o -o build/lib.linux-x86_64-2.7/deepdish/plot/resample.so x86_64-linux-gnu-gcc: internal compiler error: segmentation fault (program collect2) please submit full bug report, preprocessed source if appropriate. see <file:///usr/share/doc/gcc-4.8/readme.bugs> instructions. error: command 'x86_64-linux-gnu-gcc' failed exit status 4
edit
i tried following things :
$ ldd /usr/bin/gcc linux-vdso.so.1 => (0x00007fff5d7fe000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2c8ba69000) /lib64/ld-linux-x86-64.so.2 (0x00007f2c8be74000) $ catchsegv usr/bin/gcc /usr/bin/catchsegv: 58: /usr/bin/catchsegv: usr/bin/gcc: not found $ ls -lah /usr/bin/gcc* lrwxrwxrwx 1 root root 7 apr 8 2014 /usr/bin/gcc -> gcc-4.8 -rwxr-xr-x 1 root root 566k mar 20 2014 /usr/bin/gcc-4.7 -rwxr-xr-x 1 root root 758k may 15 00:24 /usr/bin/gcc-4.8 lrwxrwxrwx 1 root root 10 apr 8 2014 /usr/bin/gcc-ar -> gcc-ar-4.8 -rwxr-xr-x 1 root root 23k mar 20 2014 /usr/bin/gcc-ar-4.7 -rwxr-xr-x 1 root root 27k may 15 00:24 /usr/bin/gcc-ar-4.8 lrwxrwxrwx 1 root root 10 apr 8 2014 /usr/bin/gcc-nm -> gcc-nm-4.8 -rwxr-xr-x 1 root root 23k mar 20 2014 /usr/bin/gcc-nm-4.7 -rwxr-xr-x 1 root root 27k may 15 00:24 /usr/bin/gcc-nm-4.8 lrwxrwxrwx 1 root root 14 apr 8 2014 /usr/bin/gcc-ranlib -> gcc-ranlib-4.8 -rwxr-xr-x 1 root root 23k mar 20 2014 /usr/bin/gcc-ranlib-4.7 -rwxr-xr-x 1 root root 27k may 15 00:24 /usr/bin/gcc-ranlib-4.8
Comments
Post a Comment