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

Prebuilt gems doesn't work under Alpine Linux #8403

Closed
x-yuri opened this issue Mar 13, 2021 · 1 comment
Closed

Prebuilt gems doesn't work under Alpine Linux #8403

x-yuri opened this issue Mar 13, 2021 · 1 comment

Comments

@x-yuri
Copy link

x-yuri commented Mar 13, 2021

What version of protobuf and what language are you using?
Version: v3.15.6
Language: Ruby

What operating system (Linux, Windows, ...) and version?
Alpine Linux

What runtime / compiler are you using (e.g., python version or gcc version)
Ruby 2.7.2

What did you do?
a.sh:

#!/bin/sh -eux
gem install google-protobuf
for f in `find /usr/local/bundle/gems -name "*.so"`; do
    ldd "$f" || true
done
$ chmod u+x a.sh
$ docker run --rm -itv $PWD/a.sh:/a.sh ruby:2.7.2-alpine ./a.sh
...
+ ldd /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so
	/lib/ld-musl-x86_64.so.1 (0x7f0fda5f9000)
	libm.so.6 => /lib/ld-musl-x86_64.so.1 (0x7f0fda5f9000)
	libc.so.6 => /lib/ld-musl-x86_64.so.1 (0x7f0fda5f9000)
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ll2inum: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_gc_writebarrier_unprotect: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_concat: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_error_frozen_object: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_raise: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_extend_object: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_block_proc: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_id2name: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_funcall_with_block: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_data_typed_object_wrap: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_require: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_num2dbl: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ary_entry: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_enc_str_coderange: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_define_module_id: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_range_beg_len: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_enc_associate: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_eval_string: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: ruby_vsnprintf: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_num2int: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_get_alloc_func: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_new_static: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_num2uint: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_hash_aref: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_inspect: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_block_call: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: ruby_xfree: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ascii8bit_encoding: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_obj_encoding: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ary_new: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ary_new_from_args: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_num2ll: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_check_typeddata: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_class_new_instance: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_cat_cstr: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ary_new_capa: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ivar_get: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_equal: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_keyword_given_p: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_intern: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_funcallv: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_utf8_encoding: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_hash_lookup: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_append: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_hash_aset: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: ruby_xmalloc: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_check_type: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_yield: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_define_class_id: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_hash_foreach: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_hash_lookup2: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_gc_mark: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_class2name: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_new_cstr: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_num2long: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_obj_is_kind_of: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_error_arity: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_plus: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_const_get: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_id2str: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_freeze_singleton_class: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_free_tmp_buffer: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_enc_from_encoding: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_encode: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_gc_register_address: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_float_new: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ary_push: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_id2sym: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ary_detransient: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_sym2id: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_time_timespec: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ull2inum: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_include_module: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_empty_keyword_given_p: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_define_alloc_func: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_define_module: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_str_new: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_define_module_under: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_warn: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_yield_values2: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_define_class_under: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_intern2: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_define_const: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_call_super: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_ivar_set: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_fix2int: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_hash_new: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cObject: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cFloat: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cTime: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cNumeric: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cString: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cNilClass: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_eEncodingError: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_eRangeError: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cTrueClass: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cFalseClass: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_eRuntimeError: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cInteger: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_mEnumerable: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_eArgError: symbol not found
Error relocating /usr/local/bundle/gems/google-protobuf-3.15.6-x86_64-linux/lib/google/2.7/protobuf_c.so: rb_cSymbol: symbol not found

What did you expect to see
No errors

What did you see instead?
Errors

Workaround

gem install --platform ruby google-protobuf
@x-yuri
Copy link
Author

x-yuri commented Mar 25, 2021

Relocation errors can be ignored.

@x-yuri x-yuri closed this as completed Mar 25, 2021
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

No branches or pull requests

1 participant