gem5-aladdin icon indicating copy to clipboard operation
gem5-aladdin copied to clipboard

Compilation Error

Open maomran opened this issue 5 years ago • 1 comments

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

maomran avatar Mar 13 '19 02:03 maomran

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 [email protected] 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 .

xyzsam avatar Mar 13 '19 06:03 xyzsam