gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Assistance Required: Gem5 Example Error on WSL Ubuntu 22.04

AP
Ananth.PaiJ@infineon.com
Wed, Sep 13, 2023 4:24 AM

Hello,

I hope this email finds you well. I am writing to seek assistance with a challenge I am facing while building Gem5 in the "util/tlm" directory on my WSL (Windows Subsystem for Linux) Ubuntu 22.04 environment.

Following the instructions provided in the Gem5 README file, I successfully executed the initial build commands:

scons build/ARM/gem5.opt
scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 build/ARM/libgem5_opt.so
Both commands worked perfectly, resulting in the successful building of Gem5 and the creation of a library.

However, when I attempted to build the SConstruct in the "util/tlm" directory by running scons, I encountered an error message:
scons: Reading SConscript files ...
AttributeError: 'Values' object has no attribute 'duplicate_sources':
File "/home/paija/gem5/util/tlm/SConstruct", line 69:
deps += SConscript('src/SConscript', variant_dir='build/tlm', exports='env', duplicate=GetOption('duplicate_sources'))
File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/Main.py", line 490:
return getattr(OptionsParser.values, name)
File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/SConsOptions.py", line 118:
return getattr(self.dict['defaults'], attr)

I have thoroughly reviewed the code and dependencies in the "util/tlm" directory, but I have not been successful in identifying the root cause of this issue. I have also followed the Gem5 README instructions to the best of my ability.

As a WSL Ubuntu 22.04 user, I understand that there might be certain nuances and configurations specific to this environment. Since Gem5 is a complex tool, I thought it would be best to seek guidance from experts like yourself who may have experience in addressing similar challenges.

I would greatly appreciate it if you could provide me with some insights, suggestions, or steps to troubleshoot and resolve this build issue. If there are specific logs or details you require, please let me know, and I will be happy to provide them.

Your assistance would be invaluable in helping me overcome this obstacle and continue my work with Gem5. Thank you in advance for your time and support.

I look forward to hearing from you soon.

Best regards,
Ananth Pai J (IFIN DES PTS TI EA SME)
Ananth.paij@Infineon.commailto:Ananth.paij@Infineon.com

Hello, I hope this email finds you well. I am writing to seek assistance with a challenge I am facing while building Gem5 in the "util/tlm" directory on my WSL (Windows Subsystem for Linux) Ubuntu 22.04 environment. Following the instructions provided in the Gem5 README file, I successfully executed the initial build commands: scons build/ARM/gem5.opt scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 build/ARM/libgem5_opt.so Both commands worked perfectly, resulting in the successful building of Gem5 and the creation of a library. However, when I attempted to build the SConstruct in the "util/tlm" directory by running scons, I encountered an error message: scons: Reading SConscript files ... AttributeError: 'Values' object has no attribute 'duplicate_sources': File "/home/paija/gem5/util/tlm/SConstruct", line 69: deps += SConscript('src/SConscript', variant_dir='build/tlm', exports='env', duplicate=GetOption('duplicate_sources')) File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/Main.py", line 490: return getattr(OptionsParser.values, name) File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/SConsOptions.py", line 118: return getattr(self.__dict__['__defaults__'], attr) I have thoroughly reviewed the code and dependencies in the "util/tlm" directory, but I have not been successful in identifying the root cause of this issue. I have also followed the Gem5 README instructions to the best of my ability. As a WSL Ubuntu 22.04 user, I understand that there might be certain nuances and configurations specific to this environment. Since Gem5 is a complex tool, I thought it would be best to seek guidance from experts like yourself who may have experience in addressing similar challenges. I would greatly appreciate it if you could provide me with some insights, suggestions, or steps to troubleshoot and resolve this build issue. If there are specific logs or details you require, please let me know, and I will be happy to provide them. Your assistance would be invaluable in helping me overcome this obstacle and continue my work with Gem5. Thank you in advance for your time and support. I look forward to hearing from you soon. Best regards, Ananth Pai J (IFIN DES PTS TI EA SME) Ananth.paij@Infineon.com<mailto:Ananth.paij@Infineon.com>
GT
Giacomo Travaglini
Wed, Sep 13, 2023 7:37 PM

Hi Ananth,

This is a real issue I noticed myself as well (thought I didn’t have time to address nor to report it).
I will create an issue on GitHub hoping to find some time in the near future.

In the meantime, if this is stopping you, may I recommend you to checkout an earlier version of gem5? From my initial investigation it seemed to me this bug has been introduced 1 or 2 releases ago.

Kind Regards

Giacomo

From: Ananth.PaiJ--- via gem5-users gem5-users@gem5.org
Date: Wednesday, 13 September 2023 at 05:25
To: gem5-users@gem5.org gem5-users@gem5.org
Cc: Snehith.Shenoy@infineon.com Snehith.Shenoy@infineon.com, Ananth.PaiJ@infineon.com Ananth.PaiJ@infineon.com
Subject: [gem5-users] Assistance Required: Gem5 Example Error on WSL Ubuntu 22.04
Hello,

I hope this email finds you well. I am writing to seek assistance with a challenge I am facing while building Gem5 in the "util/tlm" directory on my WSL (Windows Subsystem for Linux) Ubuntu 22.04 environment.

Following the instructions provided in the Gem5 README file, I successfully executed the initial build commands:

scons build/ARM/gem5.opt
scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 build/ARM/libgem5_opt.so
Both commands worked perfectly, resulting in the successful building of Gem5 and the creation of a library.

However, when I attempted to build the SConstruct in the "util/tlm" directory by running scons, I encountered an error message:
scons: Reading SConscript files ...
AttributeError: 'Values' object has no attribute 'duplicate_sources':
File "/home/paija/gem5/util/tlm/SConstruct", line 69:
deps += SConscript('src/SConscript', variant_dir='build/tlm', exports='env', duplicate=GetOption('duplicate_sources'))
File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/Main.py", line 490:
return getattr(OptionsParser.values, name)
File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/SConsOptions.py", line 118:
return getattr(self.dict['defaults'], attr)

I have thoroughly reviewed the code and dependencies in the "util/tlm" directory, but I have not been successful in identifying the root cause of this issue. I have also followed the Gem5 README instructions to the best of my ability.

As a WSL Ubuntu 22.04 user, I understand that there might be certain nuances and configurations specific to this environment. Since Gem5 is a complex tool, I thought it would be best to seek guidance from experts like yourself who may have experience in addressing similar challenges.

I would greatly appreciate it if you could provide me with some insights, suggestions, or steps to troubleshoot and resolve this build issue. If there are specific logs or details you require, please let me know, and I will be happy to provide them.

Your assistance would be invaluable in helping me overcome this obstacle and continue my work with Gem5. Thank you in advance for your time and support.

I look forward to hearing from you soon.

Best regards,
Ananth Pai J (IFIN DES PTS TI EA SME)
Ananth.paij@Infineon.commailto:Ananth.paij@Infineon.com

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Hi Ananth, This is a real issue I noticed myself as well (thought I didn’t have time to address nor to report it). I will create an issue on GitHub hoping to find some time in the near future. In the meantime, if this is stopping you, may I recommend you to checkout an earlier version of gem5? From my initial investigation it seemed to me this bug has been introduced 1 or 2 releases ago. Kind Regards Giacomo From: Ananth.PaiJ--- via gem5-users <gem5-users@gem5.org> Date: Wednesday, 13 September 2023 at 05:25 To: gem5-users@gem5.org <gem5-users@gem5.org> Cc: Snehith.Shenoy@infineon.com <Snehith.Shenoy@infineon.com>, Ananth.PaiJ@infineon.com <Ananth.PaiJ@infineon.com> Subject: [gem5-users] Assistance Required: Gem5 Example Error on WSL Ubuntu 22.04 Hello, I hope this email finds you well. I am writing to seek assistance with a challenge I am facing while building Gem5 in the "util/tlm" directory on my WSL (Windows Subsystem for Linux) Ubuntu 22.04 environment. Following the instructions provided in the Gem5 README file, I successfully executed the initial build commands: scons build/ARM/gem5.opt scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 build/ARM/libgem5_opt.so Both commands worked perfectly, resulting in the successful building of Gem5 and the creation of a library. However, when I attempted to build the SConstruct in the "util/tlm" directory by running scons, I encountered an error message: scons: Reading SConscript files ... AttributeError: 'Values' object has no attribute 'duplicate_sources': File "/home/paija/gem5/util/tlm/SConstruct", line 69: deps += SConscript('src/SConscript', variant_dir='build/tlm', exports='env', duplicate=GetOption('duplicate_sources')) File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/Main.py", line 490: return getattr(OptionsParser.values, name) File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/SConsOptions.py", line 118: return getattr(self.__dict__['__defaults__'], attr) I have thoroughly reviewed the code and dependencies in the "util/tlm" directory, but I have not been successful in identifying the root cause of this issue. I have also followed the Gem5 README instructions to the best of my ability. As a WSL Ubuntu 22.04 user, I understand that there might be certain nuances and configurations specific to this environment. Since Gem5 is a complex tool, I thought it would be best to seek guidance from experts like yourself who may have experience in addressing similar challenges. I would greatly appreciate it if you could provide me with some insights, suggestions, or steps to troubleshoot and resolve this build issue. If there are specific logs or details you require, please let me know, and I will be happy to provide them. Your assistance would be invaluable in helping me overcome this obstacle and continue my work with Gem5. Thank you in advance for your time and support. I look forward to hearing from you soon. Best regards, Ananth Pai J (IFIN DES PTS TI EA SME) Ananth.paij@Infineon.com<mailto:Ananth.paij@Infineon.com> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.