avr-llvm / llvm

[MERGED UPSTREAM] AVR backend for the LLVM compiler library
220 stars 21 forks source link

Failed to build #205

Closed AndreasGe0 closed 8 years ago

AndreasGe0 commented 8 years ago

Hello everyone,

I am a new user and I hope this is the correct place for my question. I am trying to build clang and llvm using the directions found here: http://clang.llvm.org/get_started.html

Everything works fine until it reaches 92% of the build. Then this happens.

clang error

Any ideas??? Thank you

shepmaster commented 8 years ago

ld terminated with signal 9 is pretty strange. You didn't run out of disk space, memory, or anything environmental like that, did you? Anything pertinent in the system log? I see you are root - are you inside of a VM or container?

dylanmckay commented 8 years ago

I used to get this when I had 4GB memory and was linking clang and running make in parallel.

The fix is to do less things at once and pass '-j1' to make on one core.

After upgrading to 8GB, it will happily link clang and do other things at the same time.

dylanmckay commented 8 years ago

To be clear, this is the out of memory killer killing GNU make

AndreasGe0 commented 8 years ago

I am inside a Virtual machine. The operating system is linux ubuntu 16.04 with 100Gb hdd, 4 cpu cores, 4 Gb ram. To be honest I realised that the vm while was working was verry laggy. maybe is the memory thing you mention above? Shall I increase the memory to 8 Gb and try again?

Ok guys. I am trying again with 8gb of ram! Thank you.

AndreasGe0 commented 8 years ago

Just to know you were correct. Indeed with 8Gb of RAM it worked.