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

v0.0.4 No longer runnable on Alpine #375

Closed
abernix opened this issue Mar 26, 2021 · 3 comments
Closed

v0.0.4 No longer runnable on Alpine #375

abernix opened this issue Mar 26, 2021 · 3 comments
Labels
Milestone

Comments

@abernix
Copy link
Member

abernix commented Mar 26, 2021

Description

The rover CLI is not installable on Alpine (musl) as of v0.0.4.

Steps to reproduce

Note the comment in my command below which pertains to #372.

docker run --rm -t -i alpine:latest sh -c 'apk add curl &&
  curl -sSL https://raw.githubusercontent.com/apollographql/rover/HEAD/installers/binstall/scripts/nix/install.sh | sh'

Expected result

Previously, it was statically linked with musl libc, but the introduction of V8 required switching to gnu. Expectedly, this means it won't work on Alpine.

Actual result

sh: /tmp/tmp.PCCFkO/rover: not found

Note the rover file exists here, that's just the output of the invocation of the rover command.

Environment

/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.12.0
PRETTY_NAME="Alpine Linux v3.12"
@EverlastingBugstopper
Copy link
Contributor

seems to be related to weird stuff related to /tmp in alpine. i tried --tmpfs /tmp and also chmod 1777 /tmp and those didn't seem to help us out

@abernix
Copy link
Member Author

abernix commented Apr 1, 2021

I found that the directory and the binary both existed, the command was just outputting No such file or directory.

That's a confusing message, but I think it's referring to the libraries it needs to run, which are unavailable on Alpine:

bash-5.0# cd /tmp/tmp.mnFBmk/
bash-5.0# ls -la
total 76068
drwx------    2 root     root          4096 Apr  1 05:39 .
drwxrwxrwt    1 root     root          4096 Apr  1 05:37 ..
-rwxrwxrwx    1 root     root          1075 Mar 31 17:12 LICENSE
-rwxrwxrwx    1 root     root          6176 Mar 31 17:12 README.md
-rw-r--r--    1 root     root      20289094 Apr  1 05:37 input.tar.gz
-rwxrwxrwx    1 root     root      57581416 Mar 31 17:22 rover
bash-5.0# ./rover
bash: ./rover: No such file or directory
bash-5.0# ldd ./rover
        /lib64/ld-linux-x86-64.so.2 (0x7f73d2bfd000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f73d2bfd000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by ./rover)
        libz.so.1 => /lib/libz.so.1 (0x7f73d0373000)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by ./rover)
        libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f73d2bfd000)
        libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f73d2bfd000)
        libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f73d2bfd000)
Error relocating ./rover: __snprintf_chk: symbol not found
Error relocating ./rover: _Unwind_SetIP: symbol not found
Error relocating ./rover: __fprintf_chk: symbol not found
Error relocating ./rover: __res_init: symbol not found
Error relocating ./rover: strtoull_l: symbol not found
Error relocating ./rover: _Unwind_GetRegionStart: symbol not found
Error relocating ./rover: _Unwind_GetTextRelBase: symbol not found
Error relocating ./rover: __memcpy_chk: symbol not found
Error relocating ./rover: _Unwind_FindEnclosingFunction: symbol not found
Error relocating ./rover: __memmove_chk: symbol not found
Error relocating ./rover: _Unwind_Resume: symbol not found
Error relocating ./rover: __strdup: symbol not found
Error relocating ./rover: __strcat_chk: symbol not found
Error relocating ./rover: _Unwind_DeleteException: symbol not found
Error relocating ./rover: setcontext: symbol not found
Error relocating ./rover: __vfprintf_chk: symbol not found
Error relocating ./rover: _Unwind_RaiseException: symbol not found
Error relocating ./rover: _Unwind_GetIP: symbol not found
Error relocating ./rover: strtoll_l: symbol not found
Error relocating ./rover: __mbrlen: symbol not found
Error relocating ./rover: backtrace: symbol not found
Error relocating ./rover: _Unwind_GetIPInfo: symbol not found
Error relocating ./rover: __vsnprintf_chk: symbol not found
Error relocating ./rover: _Unwind_GetDataRelBase: symbol not found
Error relocating ./rover: __isinf: symbol not found
Error relocating ./rover: __strncpy_chk: symbol not found
Error relocating ./rover: _Unwind_SetGR: symbol not found
Error relocating ./rover: backtrace_symbols: symbol not found
Error relocating ./rover: __fdelt_chk: symbol not found
Error relocating ./rover: __register_atfork: symbol not found
Error relocating ./rover: __memset_chk: symbol not found
Error relocating ./rover: _Unwind_GetCFA: symbol not found
Error relocating ./rover: _Unwind_Backtrace: symbol not found
Error relocating ./rover: makecontext: symbol not found
Error relocating ./rover: getcontext: symbol not found
Error relocating ./rover: _Unwind_GetLanguageSpecificData: symbol not found
Error relocating ./rover: __sprintf_chk: symbol not found

@lrlna lrlna modified the milestones: June 8, June 22 Apr 8, 2021
@EverlastingBugstopper
Copy link
Contributor

Closing this in favor of #537

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

No branches or pull requests

3 participants