tomtaylor / valhalla-docker

Dockerfile for Mapzen's Valhalla router
1 stars 15 forks source link

mjolnir build fails #3

Closed strangerloops closed 8 years ago

strangerloops commented 8 years ago

make[1]: Entering directory '/valhalla/mjolnir' CXX src/proto/libvalhalla_mjolnir_la-fileformat.pb.lo CXX src/proto/libvalhalla_mjolnir_la-osmformat.pb.lo CXX src/mjolnir/libvalhalla_mjolnir_la-ferry_connections.lo CXX src/mjolnir/libvalhalla_mjolnir_la-graphbuilder.lo CXX src/mjolnir/libvalhalla_mjolnir_la-graphenhancer.lo CXX src/mjolnir/libvalhalla_mjolnir_la-graphvalidator.lo g++: internal compiler error: Killed (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. make[1]: *** [src/mjolnir/libvalhalla_mjolnir_la-graphbuilder.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/valhalla/mjolnir' make: *** [all] Error 2 The command '/bin/sh -c cd mjolnir && ./autogen.sh && ./configure CPPFLAGS=-DBOOST_SPIRIT_THREADSAFE && make -j4 && make install && cd ..' returned a non-zero code: 2

some googling around indicates this g++ error is a memory availability issue... any ideas?

strangerloops commented 8 years ago

solved - it's indeed a memory issue. changing all the -j4 make options to -j2 will make the build slower but use less ram and not break g++