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

Re: alberta on powerpc: R_PPC_REL24 relocation out of range



[ Please CC me in replies. ]

On 05/22/2015 11:05 AM, Michel Dänzer wrote:
> On 22.05.2015 16:58, Ansgar Burchardt wrote:
>> while looking at a test failure for dune-grid[1] on powerpc I encountered
>> this issue:
>>
>>     gmshtest: error while loading shared libraries:
>>     /usr/lib/powerpc-linux-gnu/libalberta_utilities.so.4:
>>     R_PPC_REL24 relocation at 0x0fcde034 for symbol `time' out of range
>>
>> The internet suggests this happens when -fPIC is not used when building
>> the shared library, but this flag is set, cf. the build log for
>> alberta[2].
> 
> It looks like not all files are always compiled with -fPIC though. Have
> you double-checked that all object files which end up linked into
> libalberta_utilities.so.4 are compiled with -fPIC?

I think they are: libtool should build all files twice (w/o -fPIC for
the static library and w/ -fPIC for the shared library). I also tried
rebuilding the package just now on partch.d.o and it looks like this
made the problematic relocation disappear. At least the output from
"readelf -a" no longer contained any references to "R_PPC_REL24".

Maybe there was a bug in the (non-standard) clang toolchain when
alberta_3.0.1-1 was built on powerpc which has since been fixed? I have
requested a binNMU for alberta and hope this will make the issue go away
(#786500).

Ansgar


Reply to: