I updated to the latest version of gem5 and it built fine with python3.  I believe the issue was with my version of gem5.  Thanks for the quick response.

On 8/26/20 4:53 PM, Jason Lowe-Power wrote:
Hi Dimitrios,

Yes. As of gem5-20.0 we fully support python3. I believe the error you're seeing is unrelated :).

I believe all you need to do to build with python3 is to use the option `PYTHON_CONFIG=python3-config` when building with scons. If python3 is the only python binary on your system, you many also need to create a symlink between /usr/bin/python and /usr/bin/python3 (e.g., by installing python-is-python3 in Ubuntu).

Cheers,
Jason

On Wed, Aug 26, 2020 at 2:16 AM Dimitrios Chasapis via gem5-users <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    I wanted to ask if it's possible to build gem5 with python 3.X. I
    changed the scons files to use python3-config, but when trying to run
    gem5.opt I run into errors such as AttributeError: type object 'Addr'
    has no attribute 'max'.  This comes from src/python/m5/params.py,
    line
    1821 (MaxAddr = Addr.max).  Would it be possible to build gem5 using
    python3?

    Thanks,

    Dimitrios Chasapis


    http://bsc.es/disclaimer
    _______________________________________________
    gem5-users mailing list -- [email protected]
    <mailto:[email protected]>
    To unsubscribe send an email to [email protected]
    <mailto:[email protected]>
    %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s



http://bsc.es/disclaimer
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to