jeudi 13 août 2015

GCC/G++ Dockerfile builds locally; fails in Hub

I recently submitted this Dockerfile to the Hub

FROM ubuntu:14.04
MAINTAINER Jeyan Oorjitham <jeyoor@gmx.com>
RUN apt-get update && apt-get install -y \
   build-essential \
   cmake \
   git \
   libncurses-dev
RUN git clone http://ift.tt/1MqWxol
RUN ["/bin/bash", "-c",  "cd avida; ./build_avida"]
CMD ["/bin/bash"]

It is intended to build Avida from source.

The build succeeds locally, but when I receive the following error from the Docker Hub.

[91mc++: internal compiler error: Killed (program cc1plus)
[0m
[91mPlease submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
...
Linking CXX executable ../../../bin/apto-test
...
Built target apto-test
[91mmake[1]: *** [avida-core/CMakeFiles/avida-core.dir/all] Error 2
[0m
[91mmake: [0m
[91m*** [all] Error 2

Full output

The build seems to be failing around the time it tries to link together the test executable for Apto.

Some Googling led me to this thread which seems to point to a lack of memory when linking large binaries...

Could memory be the problem or am I missing something else? Is there any way for me to increase the memory allocated to the Docker Hub build?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire