Building Ice 3.7 on Raspbian Linux fails with internal compiler error
Ice 3.6.3 is included as a package in Linux Raspbian Stretch, but I need Ice 3.7. So I've tried compiling, but have hit a roadblock.
I'm running into an internal compiler error. This is doing a compile ON the Pi, not cross-compiling. It's a Pi Zero W (ARMv6 CPU with hard float support).
First, I check out Ice from Github source, then edit config/Make.rules.Linux, replacing 'ubuntu' with 'ubuntu raspbian', so that the config works OK. Then I attempt to build.
git clone -b 3.7 https://github.com/zeroc-ice/ice.git && cd ice sed -E -i ".bak" 's/ubuntu/ubuntu raspbian/' config/Make.rules.Linux dpkg --print-architecture armhf cd cpp make print V=supported-configs ../config/Make.project.rules:1169: supported-configs = shared static cpp11-shared cpp11-static make print V=supported-platforms ../config/Make.project.rules:1169: supported-platforms = armhf make CONFIGS=cpp11-static Compiling [armhf-static] src/Slice/Grammar.cpp src/Slice/Grammar.cpp: In function ‘int slice_parse()’: src/Slice/Grammar.cpp:4801:1: internal compiler error: Illegal instruction } ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions. Makefile:30: recipe for target 'src/Slice/build/arm-linux-gnueabihf/static/Grammar.o' failed make: *** [src/Slice/build/arm-linux-gnueabihf/static/Grammar.o] Error 1