[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] Problems Building on Fedora 22 / RedHat 6



Hi all,

If I take a fresh clone of the htcondor git repo and try to build with default 
config on the master or V8_3_8-branch, in either Fedora 22 or Scientific Linux 
6, using the latest toolchain from those OS's, I get a failure to link 
condor_shadow.

The tip of V8_2-branch builds OK on both. All I am doing in each case is:

$ mkdir bld
$ cd bld
$ cmake ../
$ make -j 8

and I get the following on Fedora:

Linking CXX executable condor_shadow
/bin/ld: ../classad/libclassad.a(attrrefs.cpp.o): relocation R_X86_64_32 
against `__pthread_key_create' can not be used when making a shared object; 
recompile with -fPIC
../classad/libclassad.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/condor_shadow.V6.1/CMakeFiles/condor_shadow.dir/build.make:336: recipe for 
target 'src/condor_shadow.V6.1/condor_shadow' failed

and on SL6:

Linking CXX executable condor_shadow
/usr/bin/ld: ../classad/libclassad.a(attrrefs.cpp.o): relocation R_X86_64_32S 
against `vtable for classad::AttributeReference' can not be used when making a 
shared object; recompile with -fPIC
../classad/libclassad.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
src/condor_shadow.V6.1/CMakeFiles/condor_shadow.dir/build.make:339: recipe for 
target 'src/condor_shadow.V6.1/condor_shadow' failed


The strange thing is that where I can, I see -fPIC being used to compile the 
classad library. Can anyone else replicate, or does anyone have an insight 
into what is going on (linking static classad in shadow??)?

Thanks,
Will