[Mesa-dev] [Bug 111309] Mesa doesn't build with current Scons version (3.1.0)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 6 21:52:34 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=111309

            Bug ID: 111309
           Summary: Mesa doesn't build with current Scons version (3.1.0)
           Product: Mesa
           Version: git
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: fdo-bugs at engestrom.ch
        QA Contact: mesa-dev at lists.freedesktop.org

$ scons
scons: Reading SConscript files ...

scons: warning: EnsureSConsVersion is ignored for development version
File "SConstruct", line 33, in <module>
TypeError: a bytes-like object is required, not 'str':
  File "SConstruct", line 47:
    ENV = os.environ,
  File "/usr/lib/python3.7/site-packages/SCons/Environment.py", line 991:
    apply_tools(self, tools, toolpath)
  File "/usr/lib/python3.7/site-packages/SCons/Environment.py", line 107:
    env.Tool(tool)
  File "/usr/lib/python3.7/site-packages/SCons/Environment.py", line 1798:
    tool(self)
  File "/usr/lib/python3.7/site-packages/SCons/Tool/__init__.py", line 303:
    self.generate(env, *args, **kw)
  File "scons/gallium.py", line 219:
    env['gcc_compat'] = check_cc(env, 'GCC', 'defined(__GNUC__)')
  File "scons/gallium.py", line 135:
    source.write('#if !(%s)\n#error\n#endif\n' % expr)
  File "/usr/lib/python3.7/tempfile.py", line 481:
    return func(*args, **kwargs)


>From the error, it sounds like it could be a python2 vs python3 issue?

It works fine if I downgrade back to scons 3.0.4 (which I'll be doing for the
time being)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190806/fb62729a/attachment.html>


More information about the mesa-dev mailing list