Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling marss #62

Closed
b-saideepak opened this issue Sep 3, 2020 · 3 comments
Closed

Error compiling marss #62

b-saideepak opened this issue Sep 3, 2020 · 3 comments

Comments

@b-saideepak
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

Declaring the function resolved the issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants