[Rivet] problem with yaml

Andy Buckley andy.buckley at ed.ac.uk
Mon Jan 31 17:30:40 GMT 2011


On 31/01/11 17:10, Robert King wrote:
> Hi Andy, (& ccd to Rivet list)
> 
> On 31 January 2011 17:30, Andy Buckley <andy.buckley at ed.ac.uk
> <mailto:andy.buckley at ed.ac.uk>> wrote:
> 
>     On 31/01/11 16:11, Robert King wrote:
> 
>     Hi again Robert,
> 
>     The lines above are the relevant ones from your config.log file -- it
>     looks like SWIG is working but is not compatible with your C++ compiler.
>     As I don't have that compiler I can't check, but if you want to chase it
>     up, try doing a manual test of SWIG with a mini interface file. The test
>     being run by the configure script in your case is roughly to make a file
>     called conftest.i, containing the following:
> 
>     %module conftest
>     %{
>      void foo();
>     %}
>     void foo();
> 
> 
>     Then run
> 
>     /afs/cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin/swig
>     <http://cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin/swig>
>     -c++ -python conftest.i
> 
>     and then
> 
>     /afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin/g++
>     <http://cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin/g++>
>     -c
>     conftest.i -Wno-format
> 
> 
> I tried this, but it doesn't like line 1 of conftest.i
> conftest.i:1: error: expected unqualified-id before ‘%’ token
> Do I need to head this up as a proper C++ code? Sorry if this is
> obvious, I'm not sure what we're doing here.

Oh, sorry: my cut & paste mistake. Substitute "conftest_wrap.cxx" for
"conftest.i" in the C++ compiler command! That file is generated from
conftest.i by SWIG: the output should be valid C++, but the input is not ;)

You'll find the prototype for this suggestion in the Rivet configure.ac
file, which defines the tests that are failing for you.

Good luck,
Andy

-- 
Dr Andy Buckley
SUPA Advanced Research Fellow
Particle Physics Experiment Group, University of Edinburgh

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the Rivet mailing list