Open tomaslaz opened 5 years ago
An update on this.
The issue occurs only when I am trying to build on OSX. If I pre-build on a Ubuntu VM and use that image on OSX - it works. I am not sure what is causing this but it would be great to know.
I have very little experience with building on OSX, unfortunately. Does this issue also happen with just plain gem5?
One thing you can try to do is to get scons to print out the command line for every command it's running to identify exactly which file the assembler is tripping up on.
Tl;dr increase the CPU and RAM limit of the docker VM.
Apologise for bumping this up after two years. But I had the same issue and resolved it by increasing the CPU and RAM limits of the docker desktop. As this might still be useful to anyone not on Linux.
Longer description: In both OSX and Windows docker runs inside a VM and not natively as it does in Linux. and because of that, there is a limit on the CPU usage, lack of memory and small swap makes it impossible to finish compiling some of the flags. Setting RAM to 16gm and CPU to 10 cores was enough to finish compiling.
Worth updating the documentation for this and might be good idea to also provide pre-built images.
Hello,
I am trying to compile a gem5 in the docker image but it is unsuccessful. My workflow is as follows:
Getting the docker image and accessing it:
docker pull xyzsam/gem5-aladdin
docker run -it --rm --mount source=gem5-aladdin-workspace,target=/workspace xyzsam/gem5-aladdin
Updating submodules and aladdin
cd /workspace/gem5-aladdin/; git pull; git submodule update --init --recursive
cd /workspace/gem5-aladdin/src/aladdin; git pull origin master
Finally compiling gem5:
cd /workspace/gem5-aladdin/; scons build/X86/gem5.opt
First it asks about the missing hook
Then it fails with the following message:
Please find the log attached. log.txt
Any help would be much appreciated,
Tomas