Fork me on GitHub

Opened 11 years ago

Closed 10 years ago

#258 closed Bug (fixed)

failed build — at Version 3

Reported by: Sergei Chekanov Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: compilation with ProMC Cc:

Description (last modified by Pavel Demin)

Hello,

I'm trying to compile Delphes 3.13 on ScientificLinux 6.3 (64 bit) using the ProMC plugin. My environment is set correctly:

export PROMC=/share/sl6//promc
export LD_LIBRARY_PATH=$PROMC/lib:$LD_LIBRARY_PATH
export PATH=$PROMC/bin:$PATH

Then I compile Delphes, (configure; make), it compiles correctly, but it cannot link the object zipios file:

>> Compiling external/ProMC/ProMCHeader.pb.cc
>> Compiling external/ProMC/ProMCBook.cc
>> Compiling external/ProMC/ProMCStat.pb.cc
>> Compiling external/ProMC/ProMCDescription.pb.cc
>> Compiling external/ProMC/ProMC.pb.cc
>> Building libDelphes.so
/usr/bin/ld: /share/sl6//promc/lib/libcbook.a(fcollexceptions.o): relocation R_X86_64_32S against `vtable for zipios::IOException' can not be used when making a shared object; recompile with -fPIC
/share/sl6//promc/lib/libcbook.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libDelphes.so] Error 1

I think Delphes 3.10 was fine before when used on SL5.
Can you please look at this?

best


Change History (3)

comment:1 by Pavel Demin, 11 years ago

Hi Sergei,

Sorry for the late reply.

At the moment, the only solution that I see is to rebuild libcbook.a as suggested by the error message: "recompile with -fPIC".

Cheers,

Pavel

comment:2 by Pavel Demin, 10 years ago

Description: modified (diff)

comment:3 by Pavel Demin, 10 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.