You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quickstart project awt-quarkus-rest-quickstart is currently not working in native mode with the current configuration and the Dockerfile.native modification required for libfreetype, freetype and fontconfig addition to the image. The built image still have the error ./application: /lib64/libm.so.6: version 'GLIBC_2.29' not found (required by ./application)
Expected behavior
To start the application without any missing libs.
Actual behavior
./application: /lib64/libm.so.6: version 'GLIBC_2.29' not found (required by ./application) is shown and the application will not boot.
How to Reproduce?
Steps to reproduce the bug:
Clone the quickstart repo using git clone and open the project in Intellij.
add the following to Dockerfile.native file:
RUN microdnf install freetype-devel freetype fontconfig \
&& microdnf clean all
run ./mvnw package -Pnative -DskipTests
run docker build -f src/main/docker/Dockerfile.native -t quarkus/awt-graphics-rest-quickstart .
run docker run -i --rm -p 8080:8080 quarkus/awt-graphics-rest-quickstart
Get the error after docker is done booting the container.
Output of uname -a or ver
Linux pspino-Precision-7560 5.14.0-1054-oem #61-Ubuntu SMP Fri Oct 14 13:05:50 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk version "17.0.4" 2022-07-19 OpenJDK Runtime Environment GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06) OpenJDK 64-Bit Server VM GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06, mixed mode, sharing)
GraalVM version (if different from Java)
graalvm-ce-java17-22.2.0
Quarkus version or git rev
2.14.2
Build tool (ie. output of mvnw --version or gradlew --version)
I am also currently trying to use AWT-quarkus inside my own application and i get the same error. I've built my own extension using this quickstart as baseline for the extension.
The text was updated successfully, but these errors were encountered:
The native binary built is not entirely system independent. It requires GLIBC of a version compatible with the one it was built with. It is generally O.K. to build with an older one (e.g. on an older Ubuntu or older Fedora) and to run on a newer system. It does not work to build with a new glibc, e.g. your latest Linux workstation and to run it with older Linux.
To make an example: It does not work to build the app on Ubuntu 20 and to run the same binary on Amazon Lambda based on Centos 7 - like system.
How to address that? Use builder container to build with the Linux version (as in the OS+GLIBC) you need.
Additional libraries
The AWT is more complicated in that it requires more libraries. At runtime, you should use those libraries you used at build time. In other words, the application is not statically linking them, they are shared, dynamically linked.
I am closing this as it is not a Quarkus issue. Feel free to reach out on our Zulip.
Describe the bug
The quickstart project
awt-quarkus-rest-quickstart
is currently not working in native mode with the current configuration and theDockerfile.native
modification required for libfreetype, freetype and fontconfig addition to the image. The built image still have the error./application: /lib64/libm.so.6: version 'GLIBC_2.29' not found (required by ./application)
Expected behavior
To start the application without any missing libs.
Actual behavior
./application: /lib64/libm.so.6: version 'GLIBC_2.29' not found (required by ./application)
is shown and the application will not boot.How to Reproduce?
Steps to reproduce the bug:
git clone
and open the project in Intellij.Dockerfile.native
file:./mvnw package -Pnative -DskipTests
docker build -f src/main/docker/Dockerfile.native -t quarkus/awt-graphics-rest-quickstart .
docker run -i --rm -p 8080:8080 quarkus/awt-graphics-rest-quickstart
Output of
uname -a
orver
Linux pspino-Precision-7560 5.14.0-1054-oem #61-Ubuntu SMP Fri Oct 14 13:05:50 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.4" 2022-07-19 OpenJDK Runtime Environment GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06) OpenJDK 64-Bit Server VM GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06, mixed mode, sharing)
GraalVM version (if different from Java)
graalvm-ce-java17-22.2.0
Quarkus version or git rev
2.14.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /home/pspino/.m2/wrapper/dists/apache-maven-3.8.6-bin/67568434/apache-maven-3.8.6 Java version: 11.0.3, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-11.0.3 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.14.0-1054-oem", arch: "amd64", family: "unix"
Additional information
I am also currently trying to use AWT-quarkus inside my own application and i get the same error. I've built my own extension using this quickstart as baseline for the extension.
The text was updated successfully, but these errors were encountered: