Archived

This forum has been archived. Please start a new discussion on GitHub.

Building Ice 3.7 on Raspbian Linux fails with internal compiler error

philip_lamb
philip_lamb Christchurch, New Zealand

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

Comments

  • benoit
    benoit Rennes, France

    Hi,

    GCC often crashes when it runs out of memory. Did you try compiling with optimization turned off (using make OPTIMIZE=no CONFIGS=cpp11-static)? You could try add swap space otherwise but if it still fails you might have to look into building it on an ARM platform with more memory or cross compiling.

    Cheers,
    Benoit.

  • philip_lamb
    philip_lamb Christchurch, New Zealand

    Thanks for the response. I'll give it a go and let you know how I get on.

  • philip_lamb
    philip_lamb Christchurch, New Zealand

    FWIW, this error resolved itself after I completely uninstalled gcc and binutils, and reinstalled them.