gem5-users@gem5.org

The gem5 Users mailing list

View all threads

gem5 scons fault

Y
Y阿Z阿
Sun, May 19, 2024 8:35 AM

Hello everyone, I rewrote the code in the Arsmart paper in gem5 and then recompiled the X86 architecture in gem5 and this is my command line.

scons build/X86/gem5.opt -j16

the following bug appeared.

scons: Reading SConscript files ...
Mkdir("/home/zr/gem5Ar/build/X86/gem5.build")
Checking for linker -Wl,--as-needed support... no
Checking for compiler -gz support... (cached) yes
Checking for linker -gz support... no
Warning: Can't enable executable debug section compression
Info: Using Python config: python3-config
Checking for C header file Python.h... (cached) yes
Checking Python version... no
Error: Can't find a working Python installation

I would like to ask everyone, Why did this error occur. Thank you very much for your help.

Y阿Z阿
1765197550@qq.com

Hello everyone, I rewrote the code in the Arsmart paper in gem5 and then recompiled the X86 architecture in gem5 and this is my command line. scons build/X86/gem5.opt -j16 the following bug appeared. scons: Reading SConscript files ... Mkdir("/home/zr/gem5Ar/build/X86/gem5.build") Checking for linker -Wl,--as-needed support... no Checking for compiler -gz support... (cached) yes Checking for linker -gz support... no Warning: Can't enable executable debug section compression Info: Using Python config: python3-config Checking for C header file Python.h... (cached) yes Checking Python version... no Error: Can't find a working Python installation I would like to ask everyone, Why did this error occur. Thank you very much for your help. Y阿Z阿 1765197550@qq.com
YZ
Yibo Zhang
Mon, May 20, 2024 1:30 AM

Hi,

Checking 'build/{arch}/gem5.build/scons_config.log' might help.

Yibo Zhang

-----Original Messages-----
From:"Y阿Z阿 via gem5-users" gem5-users@gem5.org
Send time:Sunday, 05/19/2024 16:35:23
To: gem5-users gem5-users@gem5.org
Cc: Y阿Z阿 1765197550@qq.com
Subject: [gem5-users] gem5 scons fault

Hello everyone, I rewrote the code in the Arsmart paper in gem5 and then recompiled the X86 architecture in gem5 and this is my command line.

scons build/X86/gem5.opt -j16

the following bug appeared.

scons: Reading SConscript files ...
Mkdir("/home/zr/gem5Ar/build/X86/gem5.build")
Checking for linker -Wl,--as-needed support... no
Checking for compiler -gz support... (cached) yes
Checking for linker -gz support... no
Warning: Can't enable executable debug section compression
Info: Using Python config: python3-config
Checking for C header file Python.h... (cached) yes
Checking Python version... no
Error: Can't find a working Python installation

I would like to ask everyone, Why did this error occur. Thank you very much for your help.

|
|
Y阿Z阿
1765197550@qq.com
|

Best wishes!

Hi, Checking 'build/{arch}/gem5.build/scons_config.log' might help. Yibo Zhang -----Original Messages----- From:"Y阿Z阿 via gem5-users" <gem5-users@gem5.org> Send time:Sunday, 05/19/2024 16:35:23 To: gem5-users <gem5-users@gem5.org> Cc: Y阿Z阿 <1765197550@qq.com> Subject: [gem5-users] gem5 scons fault Hello everyone, I rewrote the code in the Arsmart paper in gem5 and then recompiled the X86 architecture in gem5 and this is my command line. scons build/X86/gem5.opt -j16 the following bug appeared. scons: Reading SConscript files ... Mkdir("/home/zr/gem5Ar/build/X86/gem5.build") Checking for linker -Wl,--as-needed support... no Checking for compiler -gz support... (cached) yes Checking for linker -gz support... no Warning: Can't enable executable debug section compression Info: Using Python config: python3-config Checking for C header file Python.h... (cached) yes Checking Python version... no Error: Can't find a working Python installation I would like to ask everyone, Why did this error occur. Thank you very much for your help. | | Y阿Z阿 1765197550@qq.com | Best wishes!
PZ
Peng, Ziyang
Tue, May 21, 2024 1:18 AM

Hi,
Are you using virtual python(like anaconda) or system python environments?
If is virtual python, the main cause is SCons can not detect the python location.

Here is my local solution:

  1. Add this line in the SConstruct file.
    "main.Append(LIBPATH=['${MINICONDA_PATH}/python/miniconda37/lib']"
  2. Add your libpython3.x.so path to LD_LIBRARY_PATH like: export
    LD_LIRARY_PATH= ${MINICONDA_PATH}/python/miniconda37/lib:$LD_LIBRARY_PATH

This solution may not be the best way, but I hope it can be helpful to you.

Thanks + regards,
Ziyang

From: Y阿Z阿 via gem5-users gem5-users@gem5.org
Sent: Sunday, May 19, 2024 4:35 PM
To: gem5-users gem5-users@gem5.org
Cc: Y阿Z阿 1765197550@qq.com
Subject: [gem5-users] gem5 scons fault

Hello everyone, I rewrote the code in the Arsmart paper in gem5 and then recompiled the X86 architecture in gem5 and this is my command line.

scons build/X86/gem5.opt -j16

the following bug appeared.

scons: Reading SConscript files ...
Mkdir("/home/zr/gem5Ar/build/X86/gem5.build")
Checking for linker -Wl,--as-needed support... no
Checking for compiler -gz support... (cached) yes
Checking for linker -gz support... no
Warning: Can't enable executable debug section compression
Info: Using Python config: python3-config
Checking for C header file Python.h... (cached) yes
Checking Python version... no
Error: Can't find a working Python installation

I would like to ask everyone, Why did this error occur. Thank you very much for your help.


[https://res.mail.qq.com/zh_CN/htmledition/images/rss/male.gif?rand=1617349242]
Y阿Z阿
1765197550@qq.commailto:1765197550@qq.com

Hi, Are you using virtual python(like anaconda) or system python environments? If is virtual python, the main cause is SCons can not detect the python location. Here is my local solution: 1. Add this line in the SConstruct file. "main.Append(LIBPATH=['${MINICONDA_PATH}/python/miniconda37/lib']" 2. Add your libpython3.x.so path to LD_LIBRARY_PATH like: export LD_LIRARY_PATH= ${MINICONDA_PATH}/python/miniconda37/lib:$LD_LIBRARY_PATH This solution may not be the best way, but I hope it can be helpful to you. Thanks + regards, Ziyang From: Y阿Z阿 via gem5-users <gem5-users@gem5.org> Sent: Sunday, May 19, 2024 4:35 PM To: gem5-users <gem5-users@gem5.org> Cc: Y阿Z阿 <1765197550@qq.com> Subject: [gem5-users] gem5 scons fault Hello everyone, I rewrote the code in the Arsmart paper in gem5 and then recompiled the X86 architecture in gem5 and this is my command line. scons build/X86/gem5.opt -j16 the following bug appeared. scons: Reading SConscript files ... Mkdir("/home/zr/gem5Ar/build/X86/gem5.build") Checking for linker -Wl,--as-needed support... no Checking for compiler -gz support... (cached) yes Checking for linker -gz support... no Warning: Can't enable executable debug section compression Info: Using Python config: python3-config Checking for C header file Python.h... (cached) yes Checking Python version... no Error: Can't find a working Python installation I would like to ask everyone, Why did this error occur. Thank you very much for your help. ________________________________ [https://res.mail.qq.com/zh_CN/htmledition/images/rss/male.gif?rand=1617349242] Y阿Z阿 1765197550@qq.com<mailto:1765197550@qq.com>