16

Linker crashed while building LLVM from source AT FUCKING 97% ARE YOU FUCKING KIDDING ME?
(Antergos , GCC 7)

The error was that it exhausted the memory. How the fuck does a system with 16GB RAM and a swapfile run out of memory while building something? Dayum.

Comments
  • 0
    @irene I realized the problem was that make was building multiple items in parallel. I switched it to run only one job at a time, removed the swap (just to see how much space it takes) and, when it was building clang and libclang, the memory usage spiked to 13.5 GB, damn
    No wonder it ran out of memory.
    Took forever, though. But yay, it works.
  • 0
    @aki237 neither.
    svn co'd the code from LLVM's own repositories, built it in debug configuration. I want to hack around with LLVM, but the packaged versions are built in release mode without asserts or debug symbols. Plus, I wanted the latest and greatest :p
  • 0
    @irene I know, I had set it to 4, max.
    But even 2 was throwing that error. I think the damn thing was trying to build clang and some other large project simultaneously. Oh well, lesson learnt. Thanks for the tip about tmpfs, I'll check it (had no clue what it was till now, wow).

    And yes, one really is too slow :/
  • 0
    @irene livin' life on the edge hath its previleges :D
  • 0
    @irene ah, a ramdisk. Hey, that could solve some problems I've been having with another project.

    Thank you!!
Add Comment