Hi Riaz,
I have been able to reproduce the issue and I think this is a bug that is
due to scons missing a required dependency. I have made an issue to gem5
Git Hub to highlight this bug. Here is the link to the issue:
 https://github.com/gem5/gem5/issues/591
<https://github.com/gem5/gem5/issues/591>.

Regards,
Harshil Patel.

On Wed, Nov 1, 2023 at 7:01 PM Riaz Khan via gem5-dev <gem5-dev@gem5.org>
wrote:

> Dear Gem5 developers and experts,
>
> I am new to Gem5 development and was hoping to get help with the build
> issue I am running into. I have a Docker image and a fresh checkout of Gem5
> repository from the steps outlined in:
> https://www.gem5.org/documentation/general_docs/building
>
>
>
> Background: For the last month I have been experimenting with Gem5/ARM FS
> simulation with my own configs and Ubuntu OS. All is good. Now, I am trying
> to experiment with SystemC integration, which is our main use case. Most of
> the blocks that we are planning to develop are custom IP, and we plan to go
> SystemC route for those. Hence, integrating/bridging Gem5 models with
> SystemC world is of interest to us.
>
>
>
> Issue: First (normal) build of Gem5/ARM is successful. Second build of
> Gem5 as a library is also successful. However, I run into issues with
> 'scons' in util/tlm. I followed the steps outlined in util/tlm/README.
>
>
>
> I tried both ubuntu-22.04_all-dependencies and
> ubuntu-20.04_all-dependencies images and hitting the same issue.
>
>
>
> Appreciate any help on this.
>
> Thank you.
>
>
>
> >>
>
>
>
>
>
> root@e1812eb82c55:/work/gem5SystemC/gem5/util/tlm# scons
> build/ARM/gem5.opt
>
> ...
>
> root@e1812eb82c55:/work/gem5SystemC/gem5/util/tlm# scons
> --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0
> build/ARM/libgem5_opt.so
>
>
>
> ...
>
>
>
> [  SHLINK]  -> ARM/libgem5_opt.so
>
> scons: done building targets.
>
> *** Summary of Warnings ***
>
> Warning: Deprecated namespaces are not supported by this compiler.
>
>          Please make sure to check the mailing list for deprecation
> announcements.
>
> root@e1812eb82c55:/work/gem5SystemC/gem5#
>
> root@e1812eb82c55:/work/gem5SystemC/gem5# cd util/tlm/
>
> root@e1812eb82c55:/work/gem5SystemC/gem5/util/tlm# ls
>
> README  SConstruct  conf  examples  run_gem5_fs.sh  src
>
> root@e1812eb82c55:/work/gem5SystemC/gem5/util/tlm# scons
>
> scons: Reading SConscript files ...
>
> AttributeError: 'Values' object has no attribute 'duplicate_sources':
>
>   File "/work/gem5SystemC/gem5/util/tlm/SConstruct", line 70:
>
>     duplicate=GetOption('duplicate_sources'))
>
>   File "/usr/lib/scons/SCons/Script/Main.py", line 491:
>
>     return getattr(OptionsParser.values, name)
>
>   File "/usr/lib/scons/SCons/Script/SConsOptions.py", line 118:
>
>     return getattr(self.__dict__['__defaults__'], attr)
>
> root@e1812eb82c55:/work/gem5SystemC/gem5/util/tlm#
> _______________________________________________
> gem5-dev mailing list -- gem5-dev@gem5.org
> To unsubscribe send an email to gem5-dev-le...@gem5.org
>
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org

Reply via email to