Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3.2k
    • Issues 3.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1k
    • Merge requests 1k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Issues
  • #944
Closed
Open
Issue created Sep 18, 2019 by Bugzilla Migration User@bugzilla-migration

Mesa doesn't build with current Scons version (3.1.0)

Submitted by Eric Engestrom @eric

Link to original bug (#111309)

Description

$ 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)

Edited Sep 19, 2019 by Eric Engestrom
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking