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

SCons and python3 issues

Open xyzsam opened this issue 4 years ago • 0 comments

gem5 has not yet fully migrated to Python3, but the version of Scons we use in the docker image has, which causes issues like this if the user just runs scons build/X86/gem5.opt:

TypeError: a bytes-like object is required, not 'str':
  File "/workspace/gem5-aladdin/SConstruct", line 393:
    main['GCC'] = CXX_version and (CXX_version.find('g++') >= 0 or \

For now, a workaround is to use the command: python2.7 `which scons` build/X86/gem5.opt.

xyzsam avatar Nov 18 '20 04:11 xyzsam