Fork me on GitHub

Opened 8 years ago

Closed 8 years ago

#1072 closed Bug (fixed)

Building DelphesPythia8 executable fails

Reported by: Amin Abou Ibrahim Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

Dear Delphes team,

I have the new MADGRAPH 2.5.2 release and I installed Pythia8 from Madgraph. I have the newest Delphes 3.4.0 installed (standalone). I am trying to build the executable DelphesPythia8 using:
make HAS_PYTHIA8=true DelphesPythia8.
Of course I have the PATH defined for Pythia8. I am getting this error:

make: Circular external/fastjet/JetDefinition.hh <- external/fastjet/ClusterSequence.hh dependency dropped.

Building DelphesPythia8

/usr/bin/ld: /GlobalHome/aibrahim/MG5_aMC_v2_5_2/HEPTools/pythia8/lib/libpythia8.a(Streams.o): undefined reference to symbol 'gzclose'
lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: * [DelphesPythia8] Error 1

There was a similar error 2 years ago which was fixed by appending some phrase into the Delphes Makefile. That phrase is now there but still the error is showing.
Any ideas? Appreciate the help.

Best,
Amin

Change History (3)

comment:1 by Pavel Demin, 8 years ago

Try to append -lz to the line 44 in Makefile:

OPT_LIBS += -L$(PYTHIA8)/lib -lpythia8 -ldl -lz

comment:2 by Amin Abou Ibrahim, 8 years ago

Pavel,

It works. Thanks a lot.

Best,
Amin

comment:3 by Pavel Demin, 8 years ago

Resolution: fixed
Status: newclosed

-lz was appended to line 44 in Makefile with changeset 4888f89d2444c9b0432dbedd8720e188aa0a092c/git

Note: See TracTickets for help on using tickets.