0

I got the below errors after compiling Gem5 simulator (downloaded from Gem5.org) on ubuntu 20.04 using VirtualBox.

what are these errors and how can I fix them, please?

the command is: scons build/X86/gem5.opt -j 4

collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
scons: *** [build/X86/gem5.opt] Error 1
scons: building terminated because of errors.
torek
  • 448,244
  • 59
  • 642
  • 775
  • 1
    You probably don't have enough RAM for the linker. https://stackoverflow.com/q/46259776/3052438 – Piotr Siupa Oct 14 '22 at 21:15
  • 1
    Try to set up SWAP / increase its size. You may also try to run `scons` without `-j 4`, to make sure no other build step runs at the same time as the linker. – Piotr Siupa Oct 14 '22 at 21:17
  • It's pretty common for some larger builds to need 32 gigabytes or more of RAM. I've done some large builds on boxes with less memory and lots of swap space and it's painfully slow; I intend to put in 128 GB of physical RAM on my next builder. – torek Oct 14 '22 at 21:30
  • I had already installed successfully earlier with 8 gb ram but now I'm getting error this time – CSE_5105_yuvraj sahu Oct 15 '22 at 05:20
  • Try `-j 2` and see if that changes things? Could be you're getting a bunch of large linking jobs running at same time. – bdbaddog Oct 17 '22 at 22:00

0 Answers0