Hi Anurag

On 15/03/2023 12:57, Kar, Anurag Arunkumar via gem5-users wrote:
Hi,

I tried following previous archived threads which said the solution to this 
problem was to provide the path to  PYTHON_CONFIG and not using a conda 
environment.

I am not using a conda environment and am providing the path in the scons 
command:

scons ./build/ARM_MESI_Three_Level/gem5.opt PYTHON_CONFIG=/usr/bin/python-config
scons: Reading SConscript files ...
Mkdir("/data/anurag/gem5-public/build/ARM_MESI_Three_Level/gem5.build")
Checking for linker -Wl,--as-needed support... (cached) yes
Checking for compiler -Wno-free-nonheap-object support... (cached) yes
Checking for compiler -gz support... (cached) yes
Checking for linker -gz support... (cached) yes
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


It seems like SCons is able to find the Python.h header file but it is not able 
to gather the python version of the interpreter for whatever reason (check 
CheckPythonLib). When I have these sporadic errors I usually remove the build 
folder and start a clean build. If the error is still present, you might want 
to debug CheckPythonLib with pdb.


If you don't want to do any debugging, you should consider using docker [1]


[1]: https://www.gem5.org/documentation/general_docs/building


Hope it helps


Giacomo


I have been able to build gem5 on this very machine before, I’m not sure what 
changed between then and now. Can someone help me debug this?

Regards,
Anurag



_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to 
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>


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.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to