gem5 scons build on MacOS - a working python installation not found

182 views
Skip to first unread message

Div Bole

unread,
May 6, 2023, 7:37:48 PM5/6/23
to gem5-gpu Developers List
Hi,
I am trying to build gem5 on MacOS and get this error:

macbooks-MacBook-Pro-7:gem5 macbookpro$ python /usr/local/bin/scons
build/X86/gem5.opt -j 1 PYTHON_CONFIG=$(which python3-config)

scons: Reading SConscript files ...

Mkdir("/Users/macbookpro/Documents/Work/gem5/build/X86/gem5.build")

Checking for linker -Wl,--as-needed support... no

Checking for compiler -Wno-c99-designator support... no

Checking for compiler -Wno-defaulted-function-deleted support... yes

Checking for compiler -gz support... yes

Checking for linker -gz support... yes

Info: Using Python config: python3-config

Checking for C header file Python.h... yes

Checking Python version... no

Error: Can't find a working Python installation

I have installed all the required packages and am using Python 3.11*. Please can you help check what could be going on and why SCons is not finding the python installation?

Thanks,
Div

Div Bole

unread,
May 6, 2023, 7:50:21 PM5/6/23
to gem5-gpu Developers List
Scons version 4.5.2
Python version 3.11.3
MacOS  Catalina 10.15.7

Wonkyung Jung

unread,
Jun 18, 2023, 10:00:59 PM6/18/23
to gem5-gpu Developers List
Change the version to v21, like, use v21.2.1.1. 
I get the same error after updating to v22.0.0.0

2023년 5월 7일 일요일 오전 8시 50분 21초 UTC+9에 Div Bole님이 작성:
Reply all
Reply to author
Forward
0 new messages