I’m trying to build an Open Source project, using config https://github.com/tomahawk-player/tomahawk/blob/master/.circleci/config.yml
After 1min of compiling using make for c++, it fails with
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:29, from /usr/include/stdlib.h:394, from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/bits/stl_algo.h:59, from /usr/include/c++/9/algorithm:62, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:142, from ../src/libtomahawk/DllMacro.h:23, from ../src/libtomahawk/audio/MediaStream.h:24, from ../src/libtomahawk/audio/MediaStream.cpp:21: /usr/include/x86_64-linux-gnu/bits/types.h:141:10: fatal error: /usr/include/x86_64-linux-gnu/qt5/QtConcurrent/bits/typesizes.h: Cannot allocate memory 141 | #include <bits/typesizes.h> /* Defines __*_T_TYPE macros. */ | ^~~~~~~~~~~~~~~~~~ compilation terminated.
If I create a docker environment on my local machine that matches CircleCI’s default values (2 cores, 4gb ram),
circleci local execute --job "Tomahawk - build, test" will complete successfully.
Perhaps I’m doing something wrong here? Can OSS projects have more resources?