Linker running out of memory

I'm building LLVM & clang, and right now I'm running into "ld returned 5 exit status", meaning that it runs out of memory. Does anyone know if I can somehow reduce memory usage by doing the build in two parts or something? I've already tried -no-keep-memory to no avail and I've given ld as much memory as I can, but it always spikes in memory then crashes with exit code 5.
What do you mean? I don't see what gv has to do with this.
Last edited on
Looking around the internet, wxWidgets mentions that ld can throw that error when there are leftover elements from a previous attempt at building, and recommends trying to rebuild from a clean wxWidgets source directory. Maybe that can be of help?

Also, if you're on unix/linux there is almost certainly a prebuilt version of clang that you can install.
1
2
3
sudo add-apt-repository ppa:kxstudio-team/builds
sudo apt-get update
sudo apt-get install clang
The following extra packages will be installed:
  clang-3.2 compiler-rt libclang-common-dev libffi-dev libllvm3.2 llvm-3.2
  llvm-3.2-dev llvm-3.2-runtime

Typing the above snippet in the terminal will accomplish that.
Last edited on
It happens building from a clean directory, and no there isn't because I'm building for Windows.
Oh. this is in the *nix section, so I just assumed.
I've got no more useful information, sorry :/
It is in the *nix section because I am using *nix software, it's more relevant.
Last edited on
Topic archived. No new replies allowed.