Giter Site home page Giter Site logo

libgcc_s.so.1 dependency? about alpine-pkg-glibc HOT 15 CLOSED

frol avatar frol commented on September 28, 2024
libgcc_s.so.1 dependency?

from alpine-pkg-glibc.

Comments (15)

frol avatar frol commented on September 28, 2024

BTW, I don't hit this error message ("libgcc_s.so.1 must be installed for pthread_cancel to work") with glibc 2.21.

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

It seems that there was libgcc_s.so.1 included in glibc 2.21 artifacts as I see /usr/lib/libgcc_s.so.1 in my frolvlad/alpine-glibc image.

from alpine-pkg-glibc.

andyshinn avatar andyshinn commented on September 28, 2024

Yea, 2.21 was the artifact from Arch Linux and 2.22 is from the custom built binary. It may just be an option at build time for glibc. But I'm not sure. Will do some more research.

from alpine-pkg-glibc.

andyshinn avatar andyshinn commented on September 28, 2024

Maybe one of these configure options? https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/glibc#n66

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

I don't believe that libgcc_s.so.1 was/is a part of glibc package on Arch Linux because when I do pacman -Qo /usr/lib/libgcc_s.so.1, it reports that the library is owned by gcc-libs.

from alpine-pkg-glibc.

andyshinn avatar andyshinn commented on September 28, 2024

It looks like that version may have traced libgcc as a dependency and pulled it in while the latest one does not:

# apk --allow-untrusted add glibc-2.21-r2.apk 
(1/2) Installing libgcc (5.3.0-r0)
(2/2) Installing glibc (2.21-r2)

Do you think this needs to be a dependency or can you just apk add libgcc?

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

Hmm, I have already tried to install libgcc from Alpine and also tried to copy the library to /usr/glibc-compat/lib/, but the error was still there. I'm trying this again, will provide the results shortly.

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

Unfortunately, libgcc package doesn't help when I'm using glibc 2.22.

FROM frolvlad/alpine-glibc:alpine-3.3_glibc-2.22

RUN apk add --no-cache --virtual=build-dependencies wget ca-certificates tar xz && \
    wget "https://www.archlinux.org/packages/extra/x86_64/mono/download/" -O "/tmp/mono.pkg.tar.xz" && \
    tar -xJf "/tmp/mono.pkg.tar.xz" && \
    apk del build-dependencies && \
    rm /tmp/*

RUN apk add --no-cache libgcc && mozroots --import --ask-remove

The most unfortunate part is that mozroots fails at the very end, after the "main work" is done:

Mozilla Roots Importer - version 4.2.2.0
Download and import trusted root certificates from Mozilla's MXR.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'...
Importing certificates into user store...
Import process completed.

libgcc_s.so.1 must be installed for pthread_cancel to work

Native stacktrace:


Debug info from gdb:


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted (core dumped)

from alpine-pkg-glibc.

andyshinn avatar andyshinn commented on September 28, 2024

This was working with glibc-2.21-r2?

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

Yes. You can try it by changing FROM statement to:

FROM frolvlad/alpine-glibc:alpine-3.3

from alpine-pkg-glibc.

andyshinn avatar andyshinn commented on September 28, 2024

I think this has to do with the way the glibc /usr/glibc-compat/etc/ld.so.cache is generated. Can you try first doing /usr/glibc-compat/sbin/ldconfig /lib /usr/lib and then running mozroots?

If this works, I think we just need to add back the ldconfig trigger (which was at 5e743ad).

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

Wow, that works...

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

Thus, it seems that we need to add libgcc dependency + ldconfig trigger.

from alpine-pkg-glibc.

andyshinn avatar andyshinn commented on September 28, 2024

Give the latest glibc-bin-2.22-r8.apk a try.

from alpine-pkg-glibc.

frol avatar frol commented on September 28, 2024

It seems to work!

P.S. It seems that all my tests are now passing, so I'm going to ask people in "Java issue" to test experimental images of OracleJDK and Mono based on glibc 2.22.

from alpine-pkg-glibc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.