Bug 71735

Summary: arm-linux-gnueabihf-gcc: internal compiler error (cc1plus)
Product: gcc Reporter: Florian <girard.florian>
Component: middle-endAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED INVALID    
Severity: normal Keywords: memory-hog
Priority: P3    
Version: 4.9.2   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description Florian 2016-07-02 07:56:56 UTC
hello all,

I'm trying to install pi-switch-python on my RPI 1 with the last version of osmc
https://osmc.tv/download/

https://github.com/lexruee/pi-switch-python
But i got this error:

osmc@osmc:~$ cd pi-switch-python
osmc@osmc:~/pi-switch-python$ sudo python setup.py install
running install
running build
running build_py
running build_ext
building '_pi_switch' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c pi_switch/wrapper/pi_switch.cpp -o build/temp.linux-armv6l-2.7/pi_switch/wrapper/pi_switch.o -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
arm-linux-gnueabihf-gcc: internal compiler error: Processus arrêté (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 4
osmc@osmc:~/pi-switch-python$ 


GCC -V

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10) 

Let me know if you wanted me to try or do anything else

Thank's you

Florian
Comment 1 Andrew Pinski 2016-07-02 08:01:11 UTC
This is most likely out of memory.
The process is killed by the kernel.
Comment 2 Florian 2016-07-02 08:07:19 UTC
(In reply to Andrew Pinski from comment #1)
> This is most likely out of memory.
> The process is killed by the kernel.

Hi Andrew,

Many thanks

It's more than likely

free -m
             total       used       free     shared    buffers     cached
Mem:           353        335         18          9          0         17
-/+ buffers/cache:        317         35
Swap:            0          0          0
osmc@osmc:~$ free -m (then stop)
^[[A
             total       used       free     shared    buffers     cached
Mem:           353        171        182          9          1         44
-/+ buffers/cache:        126        227
Swap:            0          0          0

I'll try to free some memory for the install
Comment 3 Florian 2016-07-02 08:24:10 UTC
Tanks you for your help

I've added a swap file and it works.

You've made my day :)

Florian