alpine-pkg-glibc icon indicating copy to clipboard operation
alpine-pkg-glibc copied to clipboard

Error on runtime: relink `/usr/lib/libgcc_s.so.1' with `/usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `memset'

Open chinkung opened this issue 8 years ago • 4 comments

I try to install Oracle 12c on Alpine using glibc-2.25-r1 and found this problem

bash-4.3# /u01/app/oracle/product/12.1.0/xe/perl/bin/perl -v /u01/app/oracle/product/12.1.0/xe/perl/bin/perl: Relink /usr/lib/libgcc_s.so.1' with /usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `memset' Segmentation fault (core dumped)

Could you help take a look ?

chinkung avatar Sep 01 '17 08:09 chinkung

anybody can help comment this? I meet same situation, the image is compiled from glibc environment with same glibc version 2.25 but uses this musl libc in runtime environment.

nenzhang avatar Nov 23 '17 06:11 nenzhang

I have the same problem. Please help someone!!!

darkpssngr avatar Jan 18 '18 18:01 darkpssngr

I ran into the same problem attempting to run nvcc from the NVIDIA CUDA Toolkit:

cicc: Relink `/usr/lib/libgcc_s.so.1' with `/usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `memset'
nvcc error   : 'cicc' died due to signal 11 (Invalid memory reference)

The issue appears to be that /usr/lib/libgcc_s.so.1 is linked against musl instead of glibc:

# ldd /usr/lib/libgcc_s.so.1
	ldd (0x7f6b1561d000)
	libc.musl-x86_64.so.1 => ldd (0x7f6b1561d000)

Note also the previous issue #6 about libgcc_s.so.1.

artob avatar Aug 11 '18 14:08 artob

Maybe see this workaround: https://github.com/sgerrand/alpine-pkg-glibc/issues/75#issuecomment-423855554 (I was struggling with the same kind of conflict between musl libc and glibc and the workaround helps me a lot!)

plo- avatar Oct 16 '18 15:10 plo-