harvard-acc / gem5-aladdin

End-to-end SoC simulation: integrating the gem5 system simulator with the Aladdin accelerator simulator.
BSD 3-Clause "New" or "Revised" License
210 stars 59 forks source link

Compilation Error #8

Open maomran opened 5 years ago

maomran commented 5 years ago

When I try to compile gem5 using scons buid/X86/gem5.opt I get this error ImportError: cannot import name MemTraceProbe File "/data/omran/emerald/gem5-aladdin/src/aladdin/gem5/HybridDatapath.py", line 2: from m5.objects import CommMonitor, Cache, MemTraceProbe

xyzsam commented 5 years ago

This is because MemTraceProbe requires the protobuf library. You can resolve this problem for good by installing the libprotobuf-dev library, although if you're using the Docker image, that should have already been installed (link https://github.com/harvard-acc/gem5-aladdin/blob/master/docker/Dockerfile#L19 ).

Or, you can hack it by just removing the import of MemTraceProbe.

Sam Xi Google Inc., Software Engineer http://www.samxi.org

On Tue, Mar 12, 2019 at 7:53 PM maomran notifications@github.com wrote:

When I try to compile gem5 using scons buid/X86/gem5.opt I get this error ImportError: cannot import name MemTraceProbe File "/data/omran/emerald/gem5-aladdin/src/aladdin/gem5/HybridDatapath.py", line 2: from m5.objects import CommMonitor, Cache, MemTraceProbe

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/gem5-aladdin/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSxXELGdY-a6V3-hY7ehHMJ2cU4pvFQks5vWGgNgaJpZM4bsSSN .