Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpine error with glibc 2.35 #87

Closed
gregoryboue opened this issue Mar 27, 2023 · 2 comments · Fixed by #88
Closed

Alpine error with glibc 2.35 #87

gregoryboue opened this issue Mar 27, 2023 · 2 comments · Fixed by #88

Comments

@gregoryboue
Copy link
Contributor

For information, due to this issue on glibc 2.35-r0 : sgerrand/alpine-pkg-glibc#176

With the alpine image, I had these error in gradle android compilation :

 AAPT2 aapt2-7.2.1-7984345-linux Daemon #0: Unexpected error output: Error relocating /lib/ld-linux-x86-64.so.2: unsupported relocation type 37
AAPT2 aapt2-7.2.1-7984345-linux Daemon #0: Unexpected error output: Error relocating /root/.gradle/caches/transforms-3/634adca50f1f0c077bf361fd31a46926/transformed/aapt2-7.2.1-7984345-linux/aapt2: __memcpy_chk: symbol not found
AAPT2 aapt2-7.2.1-7984345-linux Daemon #0: Unexpected error output: Error relocating /root/.gradle/caches/transforms-3/634adca50f1f0c077bf361fd31a46926/transformed/aapt2-7.2.1-7984345-linux/aapt2: __fprintf_chk: symbol not found
....
Failed to transform appcompat-1.5.1.aar (androidx.appcompat:appcompat:1.5.1) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
Execution failed for AarResourcesCompilerTransform: /root/.gradle/caches/transforms-3/e53fdcfb0cc4f901b8905ecf8ff1bffa/transformed/appcompat-1.5.1.
         > AAPT2 aapt2-7.2.1-7984345-linux Daemon #1: Daemon startup failed
           This should not happen under normal circumstances, please file an issue if it does.
...

I had to revert back your dockerfile to glibc 2.34

# ARG GLIBC_VERSION="2.35-r0"
ARG GLIBC_VERSION="2.34-r0"
@mindrunner
Copy link
Owner

Cool, thanks for letting me know. Can you create a PR for that please?

Bare in mind, that official support is only given via ubuntu with proper glibc support. There are more issues in alpine which might be invisible at first glance.

Good if it works for you, tho.

btw:
are you using emulator with alpine?

@gregoryboue
Copy link
Contributor Author

Hi,

I create this PR : #88

We use a custom image based on your image in a context of jenkins ci pipeline on kubernetes (compile, Unit test, quality analysis, and publish) so we don't use emulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants