summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo M. Fusi <matteo.fusi@bsc.es>2018-06-19 17:28:15 +0200
committerMatteo M. Fusi <fusiled@gmail.com>2018-06-22 12:31:12 +0000
commit60b24f43959d1a99962cda42075a4f16966becb2 (patch)
tree12d8dcc301e7070c906508014d0a2bd0387a9532
parentb4a10d55e55752c3423a9d0f4b529f7f80432590 (diff)
downloadgem5-60b24f43959d1a99962cda42075a4f16966becb2.tar.xz
SConstruct: additional message for the error checking of the python 2.7 headers
One of the most common errors during the installation of gem5 is the one related to the failure of the check of the Python2.7 headers in the SConstruct file. In some cases the headers are correctly installed, but a wrong selection of the C compiler can make this check fail. This commit wants to add some useful information this error message. Change-Id: I0d087ad01c6e4cca3559f23070c37b5c13600962 Reviewed-on: https://gem5-review.googlesource.com/11389 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
-rwxr-xr-xSConstruct10
1 files changed, 7 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index b382d3377..5209aa6d4 100755
--- a/SConstruct
+++ b/SConstruct
@@ -746,9 +746,13 @@ if main['USE_PYTHON']:
# verify that this stuff works
if not conf.CheckHeader('Python.h', '<>'):
- print("Error: can't find Python.h header in", py_includes)
- print("Install Python headers (package python-dev on " +
- "Ubuntu and RedHat)")
+ print("Error: Check failed for Python.h header in", py_includes)
+ print("Two possible reasons:")
+ print("1. Python headers are not installed (You can install the "
+ "package python-dev on Ubuntu and RedHat)")
+ print("2. SCons is using a wrong C compiler. This can happen if "
+ "CC has the wrong value.")
+ print("CC = %s" % main['CC'])
Exit(1)
for lib in py_libs: