Graal: Official docker image can't compile static native images

Created on 1 Nov 2018  路  2Comments  路  Source: oracle/graal

When using: https://hub.docker.com/r/oracle/graalvm-ce/

Compile a hello world example with:

native-image --static Hello

Will fail with missing static libs z, c, etc...

Looks the image only contains the dynamic link libs not the static ones installed.

Most helpful comment

Hi Paulo,

thanks a lot for your report.

You can install the static packages with the following procedure:

yum-config-manager --enable ol7_optional_latest
yum install glibc-static zlib-static

Does this work for you?

We need to do some more testing and try to include it in a future image version.

All 2 comments

Hi Paulo,

thanks a lot for your report.

You can install the static packages with the following procedure:

yum-config-manager --enable ol7_optional_latest
yum install glibc-static zlib-static

Does this work for you?

We need to do some more testing and try to include it in a future image version.

The new oracle/graalvm-ce:1.0.0-rc9 docker image does now include the glibc-static and zlib-static package.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guaporocco picture guaporocco  路  3Comments

sxend picture sxend  路  3Comments

helloguo picture helloguo  路  3Comments

jinwuxia picture jinwuxia  路  3Comments

helloguo picture helloguo  路  3Comments