Madanalysis 5: impossible to link the project

Asked by msadek

Dear Madanalysis team,

I installed different versions of Madanalysis5 successfully (with the packages zlib, delphes, ...). But when I eun this jobs:

define mu = mu+ mu-
import samples/ttbar_*.lhe.gz
plot PT(mu)
reject PT(mu) < 40
plot PT(mu)
submit
open

with the version v1.4 or higher (v1.5, ...) I receive this error message:

MA5-ERROR: impossible to link the project. For more details, see the log file:
MA5-ERROR: /home/sadek/Bureau/ma5-tut/madanalysis5/ANALYSIS_1/Build/Log/linking.log
MA5-ERROR: job submission aborted.

Here is the content of linking.log file :

c++ Main/main.o SampleAnalyzer/User/Analyzer/user.o -L/home/sadek/Bureau/ma5-tut/madanalysis5/tools/SampleAnalyzer/Lib -L/home/sadek/Bureau/ma5-tut/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib -lprocess_for_ma5 -lprocess_for_ma5 -L/usr/local/lib -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic -lEG -lcommons_for_ma5 -o ./MadAnalysis5job
Main/main.o : Dans la fonction « main » :
main.cpp:(.text.startup+0x9f) : référence indéfinie vers « MA5::SampleAnalyzer::Initialize(int, char**, std::string const&, bool) »
main.cpp:(.text.startup+0x18f) : référence indéfinie vers « MA5::SampleAnalyzer::InitializeAnalyzer(std::string const&, std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&) »
collect2: error: ld returned 1 exit status
Makefile:105 : la recette pour la cible « link » a échouée
make: *** [link] Erreur 1

I mention that with madanalysis v1.3 it works very well.

Cheers,
Sadek

Question information

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

Hi Sadek,

This is weird. Do you mind checking the content of the
  tools/SampleAnalyzer/Lib/
directory?

Cheers,

Benjamin

On 29 Jan 2017, at 11:38 , msadek <email address hidden> wrote:

> New question #448561 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/448561
>
> Dear Madanalysis team,
>
> I installed different versions of Madanalysis5 successfully (with the packages zlib, delphes, ...). But when I eun this jobs:
>
> define mu = mu+ mu-
> import samples/ttbar_*.lhe.gz
> plot PT(mu)
> reject PT(mu) < 40
> plot PT(mu)
> submit
> open
>
> with the version v1.4 or higher (v1.5, ...) I receive this error message:
>
> MA5-ERROR: impossible to link the project. For more details, see the log file:
> MA5-ERROR: /home/sadek/Bureau/ma5-tut/madanalysis5/ANALYSIS_1/Build/Log/linking.log
> MA5-ERROR: job submission aborted.
>
> Here is the content of linking.log file :
>
> c++ Main/main.o SampleAnalyzer/User/Analyzer/user.o -L/home/sadek/Bureau/ma5-tut/madanalysis5/tools/SampleAnalyzer/Lib -L/home/sadek/Bureau/ma5-tut/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib -lprocess_for_ma5 -lprocess_for_ma5 -L/usr/local/lib -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic -lEG -lcommons_for_ma5 -o ./MadAnalysis5job
> Main/main.o : Dans la fonction « main » :
> main.cpp:(.text.startup+0x9f) : référence indéfinie vers « MA5::SampleAnalyzer::Initialize(int, char**, std::string const&, bool) »
> main.cpp:(.text.startup+0x18f) : référence indéfinie vers « MA5::SampleAnalyzer::InitializeAnalyzer(std::string const&, std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&) »
> collect2: error: ld returned 1 exit status
> Makefile:105 : la recette pour la cible « link » a échouée
> make: *** [link] Erreur 1
>
> I mention that with madanalysis v1.3 it works very well.
>
> Cheers,
> Sadek
>
>
>
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
msadek (msadek) said :
#2

Hi Benjamin,

The content of tools/SampleAnalyzer/Lib/:

$ ls tools/SampleAnalyzer/Lib/
libcommons_for_ma5.so libfastjet_for_ma5.so libroot_for_ma5.so
libdelphes_for_ma5.so libprocess_for_ma5.so libzlib_for_ma5.so

Remark: I install zlib-1.2.11 by changing the link: self.files = {"zlib.tar.gz" : "http://zlib.net/zlib-1.2.8.tar.gz"} to self.files = {"zlib.tar.gz" : "http://zlib.net/zlib-1.2.11.tar.gz"} in 'install_zlib.py' file (since the first one is not available!).

Thank you in advance,
Cheers,
Sadek

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

Hi Sadek,

Is the problem also arising when the code is left untouched?

Regards,

Benjamin

On 29 Jan 2017, at 13:58 , msadek <email address hidden> wrote:

> Question #448561 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/448561
>
> Status: Answered => Open
>
> msadek is still having a problem:
> Hi Benjamin,
>
> The content of tools/SampleAnalyzer/Lib/:
>
> $ ls tools/SampleAnalyzer/Lib/
> libcommons_for_ma5.so libfastjet_for_ma5.so libroot_for_ma5.so
> libdelphes_for_ma5.so libprocess_for_ma5.so libzlib_for_ma5.so
>
> Remark: I install zlib-1.2.11 by changing the link: self.files =
> {"zlib.tar.gz" : "http://zlib.net/zlib-1.2.8.tar.gz"} to self.files =
> {"zlib.tar.gz" : "http://zlib.net/zlib-1.2.11.tar.gz"} in
> 'install_zlib.py' file (since the first one is not available!).
>
> Thank you in advance,
> Cheers,
> Sadek
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
msadek (msadek) said :
#4

Hi Benjamin,

If the code is left untouched, I receive this error message (when trying to install zlib):

MA5: Downloading the package ...
MA5: - 1/1 http://zlib.net/zlib-1.2.8.tar.gz ...
MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.tar.gz
MA5-WARNING: New attempt to access the url: http://zlib.net/zlib-1.2.8.tar.gz
MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.tar.gz
MA5-WARNING: New attempt to access the url: http://zlib.net/zlib-1.2.8.tar.gz
MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.tar.gz
MA5-WARNING: Impossible to download the package from http://zlib.net/zlib-1.2.8.tar.gz to /tmp/sadek/MA5_downloads/zlib.tar.gz
MA5-WARNING: Error(s) occured during the installation.
MA5: Installation NOT complete.
MA5: => Status: [FAILURE]
MA5: **********************************************************

When I change the link "http://zlib.net/zlib-1.2.8.tar.gz" to "http://zlib.net/fossils/zlib-1.2.8.tar.gz", I can install zlib-1.2.8 but the problem still arising when run the same job.

Best regards,
Sadek

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

Hi Sadek,

We will have a look and come back to you asap.

Cheers,

Benjamin

On 29 Jan 2017, at 14:47 , msadek <email address hidden> wrote:

> Question #448561 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/448561
>
> Status: Answered => Open
>
> msadek is still having a problem:
> Hi Benjamin,
>
> If the code is left untouched, I receive this error message (when trying
> to install zlib):
>
> MA5: Downloading the package ...
> MA5: - 1/1 http://zlib.net/zlib-1.2.8.tar.gz ...
> MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.tar.gz
> MA5-WARNING: New attempt to access the url: http://zlib.net/zlib-1.2.8.tar.gz
> MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.tar.gz
> MA5-WARNING: New attempt to access the url: http://zlib.net/zlib-1.2.8.tar.gz
> MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.tar.gz
> MA5-WARNING: Impossible to download the package from http://zlib.net/zlib-1.2.8.tar.gz to /tmp/sadek/MA5_downloads/zlib.tar.gz
> MA5-WARNING: Error(s) occured during the installation.
> MA5: Installation NOT complete.
> MA5: => Status: [FAILURE]
> MA5: **********************************************************
>
> When I change the link "http://zlib.net/zlib-1.2.8.tar.gz" to
> "http://zlib.net/fossils/zlib-1.2.8.tar.gz", I can install zlib-1.2.8
> but the problem still arising when run the same job.
>
> Best regards,
> Sadek
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
msadek (msadek) said :
#6

Thanks,

Sadek

On Sun, Jan 29, 2017 at 3:08 PM, Benjamin Fuks <
<email address hidden>> wrote:

> Your question #448561 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/448561
>
> Status: Open => Answered
>
> Benjamin Fuks proposed the following answer:
> Hi Sadek,
>
> We will have a look and come back to you asap.
>
> Cheers,
>
> Benjamin
>
>
> On 29 Jan 2017, at 14:47 , msadek <email address hidden>
> wrote:
>
> > Question #448561 on MadAnalysis 5 changed:
> > https://answers.launchpad.net/madanalysis5/+question/448561
> >
> > Status: Answered => Open
> >
> > msadek is still having a problem:
> > Hi Benjamin,
> >
> > If the code is left untouched, I receive this error message (when trying
> > to install zlib):
> >
> > MA5: Downloading the package ...
> > MA5: - 1/1 http://zlib.net/zlib-1.2.8.tar.gz ...
> > MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.
> tar.gz
> > MA5-WARNING: New attempt to access the url: http://zlib.net/zlib-1.2.8.
> tar.gz
> > MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.
> tar.gz
> > MA5-WARNING: New attempt to access the url: http://zlib.net/zlib-1.2.8.
> tar.gz
> > MA5-WARNING: Impossible to access the url: http://zlib.net/zlib-1.2.8.
> tar.gz
> > MA5-WARNING: Impossible to download the package from
> http://zlib.net/zlib-1.2.8.tar.gz to /tmp/sadek/MA5_downloads/zlib.tar.gz
> > MA5-WARNING: Error(s) occured during the installation.
> > MA5: Installation NOT complete.
> > MA5: => Status: [FAILURE]
> > MA5: **********************************************************
> >
> > When I change the link "http://zlib.net/zlib-1.2.8.tar.gz" to
> > "http://zlib.net/fossils/zlib-1.2.8.tar.gz", I can install zlib-1.2.8
> > but the problem still arising when run the same job.
> >
> > Best regards,
> > Sadek
> >
> > --
> > You received this question notification because you are an answer
> > contact for MadAnalysis 5.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/madanalysis5/+question/448561/
> +confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/madanalysis5/+question/448561
>
> You received this question notification because you asked the question.
>

Revision history for this message
Eric Conte (eric-conte) said :
#7

Dear Sadek,

Thank you very much for your report. In fact, a new zlib release was out few days ago and the previous one was removed. We have upgraded the MA5 release for using this new version of the zlib package.

Please could you download MA5 v1.6beta and test again?

Cheers,
Eric

Revision history for this message
msadek (msadek) said :
#8

Dear Eric,

The installation of the MA5 v1.6beta has been done successfully (with zlib and delphes..) without touching the code, but I still having the same problem with running the same job:

define mu = mu+ mu-
import samples/ttbar_*.lhe.gz
plot PT(mu)
reject PT(mu) < 40
plot PT(mu)
submit
open

Some informations: I have all the REQUIREMENTS of madanalysis5!!!
--- root v6.06
--- Python 2.7.12
--- gcc 5.4.0
--- fastjet v3.2.1
--- Ubuntu 16.04

Cheers,
Sadek

Revision history for this message
msadek (msadek) said :
#9

Dear Benjamin and Eric,

The problem is solved by installing root v6.08/02 (I tested MA5 v1.6beta and MA5 v1.5, everything is ok).

Best regards,
Sadek

Revision history for this message
Tumurtushaa Gansukh (tumur) said :
#10

Dear All,

Although I have successfully installed "zlib" and other optional packages, I got the following same error as this post for my test run of a basic example:

MA5: Executing the commands from the script
MA5: /home/gansukh/madanalysis5/v1.6beta/test001.txt...
MA5: ma5>define mu = mu+ mu-
MA5: ma5>import samples/ttbar_*.lhe.gz
MA5: -> Storing the file 'ttbar_sl_1.lhe.gz' in the dataset 'defaultset'.
MA5: -> Storing the file 'ttbar_sl_2.lhe.gz' in the dataset 'defaultset'.
MA5: -> Storing the file 'ttbar_fh.lhe.gz' in the dataset 'defaultset'.
MA5: ma5>plot PT(mu)
MA5: ma5>reject PT(mu) < 40
MA5: ma5>plot PT(mu)
MA5: ma5>submit
MA5: Creating folder 'ANALYSIS_3'...
MA5: Copying 'SampleAnalyzer' source files...
MA5: Inserting your selection into 'SampleAnalyzer'...
MA5: Writing the list of datasets...
MA5: Writing the command line history...
MA5: Creating Makefiles...
MA5: Compiling 'SampleAnalyzer'...
MA5: Linking 'SampleAnalyzer'...

MA5-ERROR: impossible to link the project. For more details, see the log file:
MA5-ERROR: /home/gansukh/madanalysis5/v1.6beta/ANALYSIS_3/Build/Log/linking.log
MA5-ERROR: job submission aborted.
MA5: ma5>open
MA5-ERROR: No directory called '/home/gansukh/madanalysis5/v1.6beta/ANALYSIS_3/Output/HTML/MadAnalysis5job_0' is not found

Is that mean I have to reinstall another version of the root again? I installed root v5.34/36.
TIA.

Best,
Gansukh

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

Hi,

Please provide me the log file and all relevant information. I cannot tell anything from your message.

Regards,

Benjamin

> On 21 Feb 2018, at 04:17 , Tumurtushaa Gansukh <email address hidden> wrote:
>
> Question #448561 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/448561
>
> Tumurtushaa Gansukh posted a new comment:
> Dear All,
>
> Although I have successfully installed "zlib" and other optional
> packages, I got the following same error as this post for my test run
> of a basic example:
>
> MA5: Executing the commands from the script
> MA5: /home/gansukh/madanalysis5/v1.6beta/test001.txt...
> MA5: ma5>define mu = mu+ mu-
> MA5: ma5>import samples/ttbar_*.lhe.gz
> MA5: -> Storing the file 'ttbar_sl_1.lhe.gz' in the dataset 'defaultset'.
> MA5: -> Storing the file 'ttbar_sl_2.lhe.gz' in the dataset 'defaultset'.
> MA5: -> Storing the file 'ttbar_fh.lhe.gz' in the dataset 'defaultset'.
> MA5: ma5>plot PT(mu)
> MA5: ma5>reject PT(mu) < 40
> MA5: ma5>plot PT(mu)
> MA5: ma5>submit
> MA5: Creating folder 'ANALYSIS_3'...
> MA5: Copying 'SampleAnalyzer' source files...
> MA5: Inserting your selection into 'SampleAnalyzer'...
> MA5: Writing the list of datasets...
> MA5: Writing the command line history...
> MA5: Creating Makefiles...
> MA5: Compiling 'SampleAnalyzer'...
> MA5: Linking 'SampleAnalyzer'...
>
> MA5-ERROR: impossible to link the project. For more details, see the log file:
> MA5-ERROR: /home/gansukh/madanalysis5/v1.6beta/ANALYSIS_3/Build/Log/linking.log
> MA5-ERROR: job submission aborted.
> MA5: ma5>open
> MA5-ERROR: No directory called '/home/gansukh/madanalysis5/v1.6beta/ANALYSIS_3/Output/HTML/MadAnalysis5job_0' is not found
>
> Is that mean I have to reinstall another version of the root again? I installed root v5.34/36.
> TIA.
>
> Best,
> Gansukh
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.
>