CircleCI build failing - dlib


#1

I’m trying to add circleci to my project that uses (python’s dlib wrapper).

I am able to build and run my docker image locally, however it fails when building on CI. I am not sure if this bug is related to circleci but some help would be appreciated.

Github repo: https://github.com/Meemaw/Idify
Docker image that i’m using in circleci job is build with dockerfile in docker/ directory. PRs that would fix this welcome. :slight_smile:

Link to build job: https://circleci.com/gh/Meemaw/Idify/20?utm_campaign=build-failed&utm_medium=email&utm_source=notification

Build error:

[ 69%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o
[ 70%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
dlib_build/CMakeFiles/dlib.dir/build.make:398: recipe for target 'dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o' failed
make[2]: *** [dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:140: recipe for target 'dlib_build/CMakeFiles/dlib.dir/all' failed
make[1]: *** [dlib_build/CMakeFiles/dlib.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-2cx11nqr/dlib/setup.py", line 249, in <module>
    'Topic :: Software Development',
  File "/root/repo/venv/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/root/repo/venv/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/local/lib/python3.6/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/pip-build-2cx11nqr/dlib/setup.py", line 129, in run
    self.build_extension(ext)
  File "/tmp/pip-build-2cx11nqr/dlib/setup.py", line 165, in build_extension
    subprocess.check_call(cmake_build, cwd=build_folder)
  File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j29']' returned non-zero exit status 2.

#3

@Meemaw
Were you able to get through this? I’m having the same issue.
Thanks