Error in linking_root

Asked by mehdirahmani

Hi,

I have dowloaded Madanalysis via "bzr branch lp:madanalysis5" command on MacBook.

Below is the output that I get when I try to run it: ./bin/ma5

MA5: Platform: Darwin 20.2.0 [MAC/OSX mode]
MA5: Reading user settings ...
MA5: Checking mandatory packages:
MA5: - Python [OK]
MA5: - GNU GCC g++ [OK]
MA5: - GNU Make [OK]
MA5: Checking optional packages devoted to data processing:
MA5: - Zlib [DISABLED]
MA5: - FastJet [DISABLED]
MA5: - Root [OK]
MA5: - Delphes [DISABLED]
MA5: - Delphes-MA5tune [DISABLED]
MA5: Checking the MadAnalysis 5 core library:
MA5: => First use of MadAnalysis (or the library is missing).
MA5:
MA5: **********************************************************
MA5: Building SampleAnalyzer libraries
MA5: **********************************************************
MA5: How many cores for the compiling? default = max = 16
   Answer: 16
MA5: => Number of cores used for the compilation = 16
MA5: Writing the setup files ...
MA5: Writing all the Makefiles ...
MA5: **********************************************************
MA5: Component 1/7 - test program: SampleAnalyzer configuration
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 2/7 - library: SampleAnalyzer commons
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 3/7 - test program: SampleAnalyzer commons
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 4/7 - library: interface to Root
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5-ERROR: impossible to link the project. For more details, see the log file:
MA5-ERROR: /Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/Interfaces/linking_root.log
MA5-ERROR: The library building aborted.

Here is what I see in the log file: linking_root.log

c++ -shared -o ../Lib/libroot_for_ma5.so root/ROOTReader.o root/RootMainHeaders.o root/TreeReaderBase.o -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/Lib -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/Lib -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib -L/Users/mehdirahmani/root/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -lfreetype -stdlib=libc++ -lpthread -lm -ldl -lEG -lcommons_for_ma5 -L/Users/mehdirahmani/root/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -lfreetype -stdlib=libc++ -lpthread -lm -ldl -lEG
ld: library not found for -lfreetype
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [link] Error 1

My root version: ROOT Version: 6.22/00

Python version: Python 2.7.16

Madanalysis was working fine my system until I had to updated the MacOs. Do you know what is causing this problem?

Thank you,

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
Best Benjamin Fuks (fuks) said :
#1

Hi,

Can you please retry with this version of the code:
  https://madanalysis.irmp.ucl.ac.be/raw-attachment/wiki/MA5SandBox/ma5_v1.9.13.tgz <https://madanalysis.irmp.ucl.ac.be/raw-attachment/wiki/MA5SandBox/ma5_v1.9.13.tgz>

If the error persists, please google the error. There are plenty of entries detailing this issues (connected to xcode and macos).

Regards,

Benjamin

> On 12 Jan 2021, at 20:50 , mehdirahmani <email address hidden> wrote:
>
> New question #694954 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/694954
>
> Hi,
>
> I have dowloaded Madanalysis via "bzr branch lp:madanalysis5" command on MacBook.
>
> Below is the output that I get when I try to run it: ./bin/ma5
>
>
>
> MA5: Platform: Darwin 20.2.0 [MAC/OSX mode]
> MA5: Reading user settings ...
> MA5: Checking mandatory packages:
> MA5: - Python [OK]
> MA5: - GNU GCC g++ [OK]
> MA5: - GNU Make [OK]
> MA5: Checking optional packages devoted to data processing:
> MA5: - Zlib [DISABLED]
> MA5: - FastJet [DISABLED]
> MA5: - Root [OK]
> MA5: - Delphes [DISABLED]
> MA5: - Delphes-MA5tune [DISABLED]
> MA5: Checking the MadAnalysis 5 core library:
> MA5: => First use of MadAnalysis (or the library is missing).
> MA5:
> MA5: **********************************************************
> MA5: Building SampleAnalyzer libraries
> MA5: **********************************************************
> MA5: How many cores for the compiling? default = max = 16
> Answer: 16
> MA5: => Number of cores used for the compilation = 16
> MA5: Writing the setup files ...
> MA5: Writing all the Makefiles ...
> MA5: **********************************************************
> MA5: Component 1/7 - test program: SampleAnalyzer configuration
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 2/7 - library: SampleAnalyzer commons
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 3/7 - test program: SampleAnalyzer commons
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 4/7 - library: interface to Root
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5-ERROR: impossible to link the project. For more details, see the log file:
> MA5-ERROR: /Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/Interfaces/linking_root.log
> MA5-ERROR: The library building aborted.
>
>
> Here is what I see in the log file: linking_root.log
>
>
> c++ -shared -o ../Lib/libroot_for_ma5.so root/ROOTReader.o root/RootMainHeaders.o root/TreeReaderBase.o -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/Lib -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/Lib -L/Users/mehdirahmani/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib -L/Users/mehdirahmani/root/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -lfreetype -stdlib=libc++ -lpthread -lm -ldl -lEG -lcommons_for_ma5 -L/Users/mehdirahmani/root/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -lfreetype -stdlib=libc++ -lpthread -lm -ldl -lEG
> ld: library not found for -lfreetype
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make: *** [link] Error 1
>
>
> My root version: ROOT Version: 6.22/00
>
> Python version: Python 2.7.16
>
> Madanalysis was working fine my system until I had to updated the MacOs. Do you know what is causing this problem?
>
> Thank you,
>
>
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

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

Thanks Benjamin Fuks, that solved my question.