Skip to content

compiling mime-roundtrip exhausts virtual memory on mips #381

@infinity0

Description

@infinity0

I'm trying to build cpp-netlib on mipsel and it's running out of address space:

[ 67%] Building CXX object libs/mime/test/CMakeFiles/mime-roundtrip.dir/mime-roundtrip.cpp.o
cd /home/infinity0/cpp-netlib/obj-mipsel-linux-gnu/libs/mime/test && /usr/bin/c++   -DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_TEST_DYN_LINK -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -Wall -I/home/infinity0/cpp-netlib    -o CMakeFiles/mime-roundtrip.dir/mime-roundtrip.cpp.o -c /home/infinity0/cpp-netlib/libs/mime/test/mime-roundtrip.cpp
virtual memory exhausted: Cannot allocate memory

This is virtual memory address space, so we can't just "throw more memory" at it. So this will affect the real builds as well. Unfortunately Debian does not have 64-bit mips userland at this time.

Do you see any obvious/easy ways for reducing the memory usage of that build command?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions