changeset ceb471d74fe9 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=ceb471d74fe9
description:
        scons: Warn for known gcc and swig incompatibilities

diffstat:

 SConstruct |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r a910aeb89098 -r ceb471d74fe9 SConstruct
--- a/SConstruct        Thu Oct 09 17:51:56 2014 -0400
+++ b/SConstruct        Thu Oct 09 17:51:57 2014 -0400
@@ -746,6 +746,17 @@
     print '       Installed version:', swig_version[2]
     Exit(1)
 
+# Check for known incompatibilities. The standard library shipped with
+# gcc >= 4.9 does not play well with swig versions prior to 3.0
+if main['GCC'] and compareVersions(gcc_version, '4.9') >= 0 and \
+        compareVersions(swig_version[2], '3.0') < 0:
+    print termcap.Yellow + termcap.Bold + \
+        'Warning: This combination of gcc and swig have' + \
+        ' known incompatibilities.\n' + \
+        '         If you encounter build problems, please update ' + \
+        'swig to 3.0 or later.' + \
+        termcap.Normal
+
 # Set up SWIG flags & scanner
 swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
 main.Append(SWIGFLAGS=swig_flags)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to