Matteo M. Fusi has uploaded this change for review. ( https://gem5-review.googlesource.com/11449

Change subject: SConstruct: better error message of Python.h check
......................................................................

SConstruct: better error message of Python.h check

Improved the error message related to the Python.h check in the
SConstruct:
- Fixed some typos
- Removed references to CXX environment variable
- Removed concatenation of literal strings since is useless in python
- More Clear error message

Change-Id: Ifcd247c082b664dabe9a731ae887ce926ae1dacd
---
M SConstruct
1 file changed, 6 insertions(+), 6 deletions(-)



diff --git a/SConstruct b/SConstruct
index 8511e37..5209aa6 100755
--- a/SConstruct
+++ b/SConstruct
@@ -746,13 +746,13 @@

     # verify that this stuff works
     if not conf.CheckHeader('Python.h', '<>'):
-        print("Error: check failed for Python.h header in", py_includes)
-        print("There are two possible reasons:")
-        print("1. Python headers are not installed ( You can install the "+
+        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 "+
- "you're setting the CC variable wrongly. (If you're setting "+ - "the environment variable like CC=cc-x, try CC=gcc-x instead).")
+        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:

--
To view, visit https://gem5-review.googlesource.com/11449
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ifcd247c082b664dabe9a731ae887ce926ae1dacd
Gerrit-Change-Number: 11449
Gerrit-PatchSet: 1
Gerrit-Owner: Matteo M. Fusi <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to