gcc compilation error while loading protected data symbols from archive files

General support questions
Post Reply
vyshnav
Posts: 60
Joined: 2017/09/12 03:37:54

gcc compilation error while loading protected data symbols from archive files

Post by vyshnav » 2018/08/30 11:30:34

Hi All,
We are using this gcc-4.8.5-28.el7_5.1.x86_64 version and while
compiling code we are getting this below Error.

****
/i686-pc-linux-gnu/linuxtoolchain-centos7/u8/usr/bin/ld: /ws/ucxn-re-bgl01/env_12_5_rvxn12/lib/libilbc.a(fast_mem_ops.o):
relocation R_386_GOTOFF against protected data `__kmp_external__memcpy_mem_ops_method' can not be used when making a shared object
i686-pc-linux-gnu/linuxtoolchain-centos7/u8/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
****
We have searched about this “relocation against protected symbol doesn’t work” error and
we found http://www.sourceware.org/ml/binutils/2 ... 00203.html this link but we are not able to
apply this patch on this gcc-4.5 version.

Please suggest some solution or work around to resolve his compilation error.


Regards,
Vyshnav

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: gcc compilation error while loading protected data symbols from archive files

Post by jlehtone » 2018/08/30 12:13:04

vyshnav wrote:
2018/08/30 11:30:34
/ws/ucxn-re-bgl01/env_12_5_rvxn12/lib/libilbc.a
That path, /ws/ucxn-re-bgl01/env_12_5_rvxn12, looks curious.

The EPEL repo has packages ilbc and ilbc-devel. Are they related to your libilbc.a?

Post Reply