Unable to build CNTK-CPU Dockerfile

Expected behavior

The Dockerfile https://github.com/Microsoft/CNTK/blob/master/Tools/docker/Dockerfile-CPU should build on Docker for Mac. I confirmed that it builds with Docker on Ubuntu 16.04.

Actual behavior

It fails with the following error:
creating /cntk/build/release/.build/Source/Readers/ReaderLib/SequencePacker.o for Linux with build type release
mpic++ -c Source/Readers/ReaderLib/SequencePacker.cpp -o /cntk/build/release/.build/Source/Readers/ReaderLib/SequencePacker.o -D_POSIX_SOURCE -D_XOPEN_SOURCE=600 -D__USE_XOPEN2K -std=c++11 -DCPUONLY -DNDEBUG -DNO_SYNC -DUSE_OPENBLAS -DUSE_ZIP -msse3 -std=c++0x -fopenmp -fpermissive -fPIC -Werror -fcheck-new -Wno-error=literal-suffix -g -O4 -ISource/Common/Include -ISource/Math -ISource/CNTK -ISource/ActionsLib -ISource/ComputationNetworkLib -ISource/SGDLib -ISource/SequenceTrainingLib -ISource/CNTK/BrainScript -ISource/Readers/ReaderLib -I/usr/local/openblas/include -I/usr/local/lib/libzip/include -I/usr/local/opencv-3.0.0/include -MD -MP -MF /cntk/build/release/.build/Source/Readers/ReaderLib/SequencePacker.d
In file included from Source/Readers/ReaderLib/SequencePacker.cpp:11:0:
Source/Readers/ReaderLib/SequencePacker.h: In destructor ‘virtual Microsoft::MSR::CNTK::SequencePacker::~SequencePacker()’:
Source/Readers/ReaderLib/SequencePacker.h:14:7: internal compiler error: Segmentation fault
class SequencePacker : public PackerBase
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[1]: *** [/cntk/build/release/.build/Source/Readers/ReaderLib/SequencePacker.o] Error 1
make[1]: Leaving directory `/cntk’
make: *** [all] Error 2
The command ‘/bin/sh -c git clone --depth=1 -b master GitHub - microsoft/CNTK: Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit . && sed -i ‘s/-lopenblas/-lopenblas -llapacke/g’ Makefile && mkdir -p build/release && cd build/release && …/…/configure --with-openblas=/usr/local/openblas && make -j1 all’ returned a non-zero code: 2


Docker Version 1.11.0-beta9 (build: 6388)
OS X 10.11.4

Steps to reproduce the behavior

  1. Install Docker for Mac
  2. Create Dockerfile from URL above
  3. docker build -t cntk-cpu .

This is working now with Version 1.11.1-beta10 (build: 6662)