Fork me on GitHub

Opened 9 years ago

Last modified 9 years ago

#705 new Bug

Compilation on Macbook pro

Reported by: Michael Ramsey-Musolf Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: link error Cc:

Description (last modified by Pavel Demin)

Hi,

I've tried to install/make delphes within madgraph a couple of ways: directly by going into the Delphes directory and typing "make" and by running "Install delphes" from the mg5 command line. Root is running just fine. In both cases, however, I get the same link error, reproduced below. I would appreciate knowing what I have to modify to compile/link correctly.
Thx
Michael R-M

>> Building libDelphes.so
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
  "TAttMarker::SaveMarkerAttributes(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, int, int, int)", referenced from:
      vtable for DelphesTF2 in DelphesTF2.o
  "TF2::SavePrimitive(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*)", referenced from:
      vtable for DelphesTF2 in DelphesTF2.o
  "TObject::SavePrimitive(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*)", referenced from:
      vtable for SortableObject in ClassesDict.o
      vtable for Event in ClassesDict.o
      vtable for LHCOEvent in ClassesDict.o
      vtable for LHEFEvent in ClassesDict.o
      vtable for HepMCEvent in ClassesDict.o
      vtable for GenParticle in ClassesDict.o
      vtable for Vertex in ClassesDict.o
      ...
  "TAttFill::SaveFillAttributes(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, int, int)", referenced from:
      vtable for DelphesTF2 in DelphesTF2.o
  "TAttLine::SaveLineAttributes(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, int, int, int)", referenced from:
      vtable for DelphesTF2 in DelphesTF2.o
  "operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, TString const&)", referenced from:
      TreeWriter::Init() in TreeWriter.o
      Delphes::Init() in Delphes.o
      ExRootTreeReader::Notify() in ExRootTreeReader.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libDelphes.so] Error 1

Change History (2)

comment:1 by Pavel Demin, 9 years ago

Description: modified (diff)

comment:2 by Pavel Demin, 9 years ago

Could you please tell us what OS and ROOT version are you using and how you installed ROOT?

Looking at the error messages, I'd say that something is wrong with the ROOT installation.

Note: See TracTickets for help on using tickets.