Skip to content

Relay Compiler v13: Providing a statically linked binary? #3739

@henkerik

Description

@henkerik

Relay compiler v13 fails to run on our CI system:

/worker/build/f83b02af11d8b45f/root/node_modules/relay-compiler/linux-x64/relay: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

The relay executable requires a couple of shared libraries:

> objdump -p relay | grep NEEDED
  NEEDED               libssl.so.1.1
  NEEDED               libcrypto.so.1.1
  NEEDED               libgcc_s.so.1
  NEEDED               libpthread.so.0
  NEEDED               libm.so.6
  NEEDED               libdl.so.2
  NEEDED               libc.so.6
  NEEDED               ld-linux-x86-64.so.2 

Since we are running our builds in a Bazel sandbox (with remote build execution) we can have no control over the CI runner, so we can't simply install the missing libraries. This would also make our build non-hermetic which is not something we want. A solution would be to provide self contained statically linked binaries instead.

Related to: #3725

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions