avadhpatel / marss

PTLsim and QEMU based Computer Architecture Research Simulator
http://www.marss86.org
129 stars 63 forks source link

Error compiling marss #62

Closed b-saideepak closed 4 years ago

b-saideepak commented 4 years ago

I tried compiling marss using the command : scons -Q -j4 . But I am stuck with this error.

/bin/sh: 1: sdl-config: not found ERROR: SDL library not found Package gnutls was not found in the pkg-config search path. Perhaps you should add the directory containing `gnutls.pc' to the PKG_CONFIG_PATH environment variable No package 'gnutls' found VNC TLS support not found, TLS support disabled /bin/sh: 1: curl-config: not found Warning: QEMU requires SDL or Cocoa for GUI output. can't find SDL or cocoa support so use VNC or curses interface AttributeError: 'NoneType' object has no attribute 'group': File "/home/saideepak/marss/SConstruct", line 139: ptlsim_lib = SConscript(ptl_compile_script) File "/usr/lib/scons/SCons/Script/SConscript.py", line 614: return method(*args, *kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 551: return _SConscript(self.fs, files, *subst_kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 256: call_stack[-1].globals) File "/home/saideepak/marss/ptlsim/SConstruct", line 38: GCC_MAJOR_MINOR_VERSION = re.match(r'\d.\d+',GCC_VERSION).group() #e.g. returns 4.2 for 4.2.2

Even though I installed sdl-libraries. I still get the same error. Any help?

fitzfitsahero commented 4 years ago

You need to install the development package for SDL. On debian it is libsdl1.2-dev

You also need to remove the GCC_MAJOR_MINOR_VERSION line from the SConstruct files in ptlsim/ and qemu/

I'll be making that change to the repo soon for that issue.

b-saideepak commented 4 years ago

Thanks @fitzfitsahero , I have one more issue after making that change.

ptlsim/core/ooo-core/ooo.h: In member function ‘int ooo_2::TranslationLookasideBuffer<tlbid, size>::flush_virt(Waddr, W64)’: ptlsim/core/ooo-core/ooo.h:940:18: error: there are no arguments to ‘invalidate’ that depend on a template parameter, so a declaration of ‘invalidate’ must be available [-fpermissive] return invalidate(tagof(virtaddr, threadid));


Any idea about this error?

b-saideepak commented 4 years ago

Declaring the function resolved the issue.

Thanks.