compilation problem

Asked by John Doe

Hi, I have trouble compiling MadAnalysis5 version 1.2, apparently related to linking the fastjet library.
The compilation log is pasted below. Any help appreciated.

g++ Fastjet/Test.o -L/xyz/MadAnalysis5.1.2.0/tools/SampleAnalyzer/Lib -lfastjet_for_ma5 -lcommons_for_ma5 -L/usr/\
lib/x86_64-linux-gnu -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -\
lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic -lEG -o ../Bin/TestFastjet
/usr/local/fastjet-3.1.3/../fastjet-install/lib/libfastjetplugins.so.0: undefined reference to `siscone_spherical:\
:CSphsiscone::compute_jets_progressive_removal(std::vector<siscone_spherical::CSphmomentum, std::allocator<siscone\
_spherical::CSphmomentum> >&, double, int, double, siscone_spherical::Esplit_merge_scale)'
/usr/local/fastjet-3.1.3/../fastjet-install/lib/libfastjetplugins.so.0: undefined reference to `siscone::Csiscone:\
:compute_jets_progressive_removal(std::vector<siscone::Cmomentum, std::allocator<siscone::Cmomentum> >&, double, i\
nt, double, siscone::Esplit_merge_scale)'
collect2: error: ld returned 1 exit status
Makefile_fastjet:103: recipe for target 'link' failed
make: *** [link] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
John Doe (kwcpsn) said :
#1

Sorry I forgot to mention the fastjet library version is 3.1.3.

Revision history for this message
Benjamin Fuks (fuks) said :
#2

Hi John,

Could you try to use an ma5-local version of fastjet (by typing install fastjet in the ma5 shell).

Cheers,

Benjamin

On 28 Sep 2015, at 23:47 , John Doe <email address hidden> wrote:

> Question #271865 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/271865
>
> John Doe posted a new comment:
> Sorry I forgot to mention the fastjet library version is 3.1.3.
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
John Doe (kwcpsn) said :
#3

Hi Benjamin,

thanks for your reply. I disabled the systemwide fastjet (by moving /usr/local/fastjet-config to /usr/local/whatever), and let ma5 install the local version and recompile. Everything went fine, except that now ma5 compiles every time I invoke it.

The truth is that I don't need to run fastjet from within ma5. Can I make ma5 ignore the system-wide fastjet installation, compile without the fastjet library, and keep ignoring it so that it doesn't have to recompile at every invokation ?

Best regards

Revision history for this message
John Doe (kwcpsn) said :
#4

To be more precise, ma5 seems to recompile every *other* time I invoke it.

Revision history for this message
Best Benjamin Fuks (fuks) said :
#5

Hi John,

You can edit the madanalysis/input/installation_options.dat file to force ma5 to use a given version of fastjet. This should do the work.

Cheers,

Benjamin

On 30 Sep 2015, at 15:52 , John Doe <email address hidden> wrote:

> Question #271865 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/271865
>
> John Doe posted a new comment:
> Hi Benjamin,
>
> thanks for your reply. I disabled the systemwide fastjet (by moving
> /usr/local/fastjet-config to /usr/local/whatever), and let ma5 install
> the local version and recompile. Everything went fine, except that now
> ma5 compiles every time I invoke it.
>
> The truth is that I don't need to run fastjet from within ma5. Can I
> make ma5 ignore the system-wide fastjet installation, compile without
> the fastjet library, and keep ignoring it so that it doesn't have to
> recompile at every invokation ?
>
> Best regards
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
John Doe (kwcpsn) said :
#6

Hi Benjamin, it did work. Like I said, I don't need to run fastjet from within ma5, so this is perfectly fine for me. Thanks so much for your help.

Revision history for this message
John Doe (kwcpsn) said :
#7

Thanks Benjamin Fuks, that solved my question.