Hi Robert,

swig has a tendency of causing lots of warnings, and as you can see from the 
command line, quite a few of them are disabled already. Rather than removing 
the –Werror, let's add the "-Wno-unused-value" to the list of swig_env build 
variables. I'll do so and push a patch.

Surprisingly, swig 2.0.8 in combination with clang 3.1 does not seem to cause 
any such issues.

Andreas

From: Robert PINSKER <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Thursday, 15 November 2012 11:08
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] SWIG problems building gem5

I’m using SWIG 2.0.8. Should I just remove the –Werror? Or is this telling me 
something important, and if so, what?

swig -c++ -python -modern -templatereduce -Ibuild/gzstream -Ibuild/libelf -Iext 
-I/sw/freetools/python/2.7.2/Linux/rh5/x86_64/include/python2.7 -Ibuild/ARM 
-outdir build/ARM/python/swig -o build/ARM/python/swig/core_wrap.cc 
build/ARM/python/swig/core.i
g++ -o build/ARM/python/swig/core_wrap.o -c -std=c++0x -pipe 
-fno-strict-aliasing -Wall -Wno-sign-compare -Wundef -g -O3 -Werror 
-Wno-uninitialized -Wno-sign-compare -Wno-parentheses -Wno-unused-label 
-Wno-unused-but-set-variable -DTRACING_ON=1 -Ibuild/gzstream -Ibuild/libelf 
-Iext -I/sw/freetools/python/2.7.2/Linux/rh5/x86_64/include/python2.7 
-Ibuild/ARM build/ARM/python/swig/core_wrap.cc
build/ARM/python/swig/core_wrap.cc: In function 'void 
SWIG_InitializeModule(void*)':
build/ARM/python/swig/core_wrap.cc:4233:21: error: statement has no effect 
[-Werror=unused-value]
cc1plus: all warnings being treated as errors
scons: *** [build/ARM/python/swig/core_wrap.o] Error 1
scons: building terminated because of errors.


pinskerr@bril0145(273)% gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/sw/freetools/gcc/4.6.3/Linux/rh4/x86_64/libexec/gcc/x86_64-unknown-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/sw/freetools/gcc/4.6.3/Linux/rh4/x86_64 
--with-mpfr-lib=/sw/freetools/gcc/4.6.3/Linux/rh4/x86_64/lib 
--with-mpfr-include=/sw/freetools/gcc/4.6.3/Linux/rh4/x86_64/include 
--with-gmp-lib=/sw/freetools/gcc/4.6.3/Linux/rh4/x86_64/lib 
--with-gmp-include=/sw/freetools/gcc/4.6.3/Linux/rh4/x86_64/include 
--with-mpc=/sw/freetools/gcc/4.6.3/Linux/rh4/x86_64 
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.6.3 (GCC)

Robert Pinsker


-- 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
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to