I'm a real newbie to iOS development and wanna make a new GitHub blog.
I'm following How to install jekyll on Apple M1 Macbook as a reference.
And I've tried installing Jekyll on my M1 Pro Macbook (macOS Monterey 12.6) but it fails when installing Bundler and Jekyll with gem install --user-install bundler jekyll (output below).
I already read articles from many bloggers who finally succeeded. How can I solve this problem? Please somebody help me!
[eric#~/blog/hyleedevelop.github.io]$ gem install --user-install bundler jekyll
Successfully installed bundler-2.3.24
Parsing documentation for bundler-2.3.24
Done installing documentation for bundler after 0 seconds
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
current directory: /Users/eric/.gem/ruby/3.0.0/gems/eventmachine-1.2.7/ext
/Users/eric/.rbenv/versions/3.0.0/bin/ruby -I /Users/eric/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf20221026-8644-6ak8a4.rb extconf.rb
checking for -lcrypto... no
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for pipe2() in unistd.h... no
checking for accept4() in sys/socket.h... no
checking for SOCK_CLOEXEC in sys/socket.h... no
checking for sys/event.h... yes
checking for sys/queue.h... yes
checking for clock_gettime()... yes
checking for CLOCK_MONOTONIC_RAW in time.h... yes
checking for CLOCK_MONOTONIC in time.h... yes
CXXFLAGS= -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result -Wno-address
creating Makefile
current directory: /Users/eric/.gem/ruby/3.0.0/gems/eventmachine-1.2.7/ext
make "DESTDIR=" clean
current directory: /Users/eric/.gem/ruby/3.0.0/gems/eventmachine-1.2.7/ext
make "DESTDIR="
compiling binder.cpp
compiling cmain.cpp
compiling ed.cpp
compiling em.cpp
compiling kb.cpp
compiling page.cpp
compiling pipe.cpp
compiling rubymain.cpp
rubymain.cpp:220:3: warning: 'rb_rescue' is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations]
rb_rescue((VALUE (*)(ANYARGS))event_callback, (VALUE)&e, (VALUE (*)(ANYARGS))event_error_handler, Qnil);
^
/Users/eric/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/backward/cxxanyargs.hpp:244:1: note: 'rb_rescue' has been explicitly marked deprecated here
RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
^
/Users/eric/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/backward/2/attributes.h:79:35: note: expanded from macro 'RUBY_CXX_DEPRECATED'
#define RUBY_CXX_DEPRECATED(mseg) RBIMPL_ATTR_DEPRECATED((mseg))
^
/Users/eric/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/internal/attr/deprecated.h:32:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
^
1 warning generated.
compiling ssl.cpp
linking shared-object rubyeventmachine.bundle
Undefined symbols for architecture arm64:
"_BIO_ctrl", referenced from:
t_get_peer_cert(unsigned long, unsigned long) in rubymain.o
_ssl_verify_wrapper in ssl.o
SslBox_t::CanGetCiphertext() in ssl.o
SslBox_t::PutPlaintext(char const*, int) in ssl.o
"_BIO_free", referenced from:
t_get_peer_cert(unsigned long, unsigned long) in rubymain.o
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
InitializeDefaultCredentials() in ssl.o
_ssl_verify_wrapper in ssl.o
"_BIO_new", referenced from:
t_get_peer_cert(unsigned long, unsigned long) in rubymain.o
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
_ssl_verify_wrapper in ssl.o
"_BIO_new_file", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_BIO_new_mem_buf", referenced from:
InitializeDefaultCredentials() in ssl.o
"_BIO_read", referenced from:
SslBox_t::GetCiphertext(char*, int) in ssl.o
"_BIO_s_mem", referenced from:
t_get_peer_cert(unsigned long, unsigned long) in rubymain.o
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
_ssl_verify_wrapper in ssl.o
"_BIO_write", referenced from:
_ssl_verify_wrapper in ssl.o
SslBox_t::PutCiphertext(char const*, int) in ssl.o
"_DH_free", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_EC_KEY_free", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_EC_KEY_new_by_curve_name", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_ERR_print_errors_fp", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
SslBox_t::GetPlaintext(char*, int) in ssl.o
"_EVP_PKEY_free", referenced from:
InitializeDefaultCredentials() in ssl.o
SslContext_t::~SslContext_t() in ssl.o
"_OBJ_sn2nid", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_OPENSSL_init_crypto", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_OPENSSL_init_ssl", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_PEM_read_bio_DHparams", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_PEM_read_bio_PrivateKey", referenced from:
InitializeDefaultCredentials() in ssl.o
"_PEM_read_bio_X509", referenced from:
InitializeDefaultCredentials() in ssl.o
"_PEM_write_bio_X509", referenced from:
t_get_peer_cert(unsigned long, unsigned long) in rubymain.o
_ssl_verify_wrapper in ssl.o
"_SSL_CIPHER_get_bits", referenced from:
SslBox_t::GetCipherBits() in ssl.o
"_SSL_CIPHER_get_name", referenced from:
SslBox_t::GetCipherName() in ssl.o
"_SSL_CIPHER_get_version", referenced from:
SslBox_t::GetCipherProtocol() in ssl.o
"_SSL_CTX_ctrl", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_free", referenced from:
SslContext_t::~SslContext_t() in ssl.o
"_SSL_CTX_new", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_set_cipher_list", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_set_options", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_set_session_id_context", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_use_PrivateKey", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_use_PrivateKey_file", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_use_certificate", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_CTX_use_certificate_chain_file", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_SSL_accept", referenced from:
SslBox_t::GetPlaintext(char*, int) in ssl.o
"_SSL_clear", referenced from:
SslBox_t::~SslBox_t() in ssl.o
"_SSL_connect", referenced from:
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
SslBox_t::GetPlaintext(char*, int) in ssl.o
"_SSL_ctrl", referenced from:
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
"_SSL_free", referenced from:
SslBox_t::~SslBox_t() in ssl.o
"_SSL_get_current_cipher", referenced from:
SslBox_t::GetCipherBits() in ssl.o
SslBox_t::GetCipherName() in ssl.o
SslBox_t::GetCipherProtocol() in ssl.o
"_SSL_get_error", referenced from:
SslBox_t::GetPlaintext(char*, int) in ssl.o
SslBox_t::PutPlaintext(char const*, int) in ssl.o
"_SSL_get_ex_data", referenced from:
_ssl_verify_wrapper in ssl.o
"_SSL_get_ex_data_X509_STORE_CTX_idx", referenced from:
_ssl_verify_wrapper in ssl.o
"_SSL_get_peer_certificate", referenced from:
SslBox_t::GetPeerCert() in ssl.o
"_SSL_get_servername", referenced from:
SslBox_t::GetSNIHostname() in ssl.o
"_SSL_get_shutdown", referenced from:
SslBox_t::~SslBox_t() in ssl.o
"_SSL_is_init_finished", referenced from:
SslBox_t::GetPlaintext(char*, int) in ssl.o
SslBox_t::PutPlaintext(char const*, int) in ssl.o
"_SSL_new", referenced from:
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
"_SSL_read", referenced from:
SslBox_t::GetPlaintext(char*, int) in ssl.o
"_SSL_set_bio", referenced from:
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
"_SSL_set_ex_data", referenced from:
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
"_SSL_set_verify", referenced from:
SslBox_t::SslBox_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, unsigned long) in ssl.o
"_SSL_shutdown", referenced from:
SslBox_t::~SslBox_t() in ssl.o
"_SSL_write", referenced from:
SslBox_t::PutPlaintext(char const*, int) in ssl.o
"_TLS_client_method", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_TLS_server_method", referenced from:
SslContext_t::SslContext_t(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in ssl.o
"_X509_STORE_CTX_get_current_cert", referenced from:
_ssl_verify_wrapper in ssl.o
"_X509_STORE_CTX_get_ex_data", referenced from:
_ssl_verify_wrapper in ssl.o
"_X509_free", referenced from:
t_get_peer_cert(unsigned long, unsigned long) in rubymain.o
InitializeDefaultCredentials() in ssl.o
SslContext_t::~SslContext_t() in ssl.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [rubyeventmachine.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/eric/.gem/ruby/3.0.0/gems/eventmachine-1.2.7 for inspection.
Results logged to /Users/eric/.gem/ruby/3.0.0/extensions/arm64-darwin-21/3.0.0/eventmachine-1.2.7/gem_make.out
1 gem installed
This worked for me:
gem install eventmachine -- --with-openssl-dir=/usr/local/opt/openssl#1.1
We are getting the crash mentioned in the title. It occurs quite often and randomly. It seem to occur only on Android 11.
I have the tombstone file, which I paste below. But I am having issues also using ndk-stack, because when issuing the command:
ndk-stack -sym /Users/UserNameExample/Library/Android/sdk/build-tools/30.0.3/renderscript/lib/blas/arm64-v8a -dump /Users/UserNameExample/Desktop/tombstone02
I get the exact same source file in the prompt.
Ideally, I would like ndk to work and understand why it is not translating my tombstone. Otherwise, as a second alternative, by looking at the tombstone, would anyone pls have any hints on how to track this down ?
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'OPPO/CPH1919EEA/OP4845L1:11/RKQ1.200928.002/1636803154694:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2021-12-12 14:12:07+0100
pid: 10105, tid: 10105, name: es.dev.virtualshop >>> com.dev.virtualshop <<<
uid: 10320
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Cause: null pointer dereference
x0 0000000000000000 x1 b4000071594a846d x2 fffffffffffffffd x3 0819080000006023
x4 2360000000081908 x5 0819080000006023 x6 2360000000081908 x7 b4000071aa8a8630
x8 0000007fe4039c60 x9 0000000000000041 x10 b4000071594a8440 x11 b4000071594a8440
x12 b4000071aa8a89f0 x13 b4000071aa8a8b30 x14 0000000000000030 x15 aaaaaaaaaaaaaaab
x16 000000724827b5c0 x17 0000007248bfe200 x18 000000724ed96000 x19 0000000000000000
x20 0000000000000000 x21 b400007134377c20 x22 000000000000003d x23 000000000000000e
x24 0000000000000020 x25 b4000071aa8aa759 x26 000000000000000e x27 b4000071aa8aa750
x28 000000000000001b x29 0000007fe4039d80
lr 000000724824f1d4 sp 0000007fe4039c00 pc 000000724824f1ec pst 0000000060000000
backtrace:
#00 pc 00000000000401ec /system/lib64/libandroidfw.so (android::Theme::SetTo(android::Theme const&)+2104) (BuildId: dd55aee448a41ca5dd33562f5abdc552)
#01 pc 000000000012209c /system/lib64/libandroid_runtime.so (android::NativeThemeCopy(_JNIEnv*, _jclass*, long, long, long, long)+132) (BuildId: a54426a2b2bfe5ad975341aa6c0e7841)
#02 pc 000000000021ea50 /system/framework/arm64/boot-framework.oat (art_jni_trampoline+176) (BuildId: 75f57aa82d8d6889edeed86525a613a1631601e4)
#03 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#04 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#05 pc 0000000000318290 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#06 pc 000000000030f67c /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+696) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#07 pc 0000000000682a90 /apex/com.android.art/lib64/libart.so (MterpInvokeStaticRange+412) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#08 pc 000000000012dc94 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static_range+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#09 pc 00000000003b7f00 /system/framework/framework.jar (android.content.res.AssetManager.setThemeTo+28)
#10 pc 00000000006803fc /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualRange+1132) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#11 pc 000000000012db14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#12 pc 00000000003c3698 /system/framework/framework.jar (android.content.res.ResourcesImpl$ThemeImpl.setTo+28)
#13 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#14 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#15 pc 00000000003c30c4 /system/framework/framework.jar (android.content.res.Resources$Theme.setTo+8)
#16 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#17 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#18 pc 00000000001aaa0a [anon:dalvik-classes.dex extracted in memory from /data/app/~~L2_UsRVtNSOKCZeGvFhDhQ==/com.dev.virtualshop-gSflxpM7-xq4qewsKph26Q==/base.apk] (androidx.appcompat.view.ContextThemeWrapper.initializeTheme+62)
#19 pc 000000000067f1f4 /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#20 pc 000000000012d914 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#21 pc 00000000001aa87e [anon:dalvik-classes.dex extracted in memory from /data/app/~~L2_UsRVtNSOKCZeGvFhDhQ==/com.dev.virtualshop-gSflxpM7-xq4qewsKph26Q==/base.apk] (androidx.appcompat.view.ContextThemeWrapper.getTheme+26)
#22 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#23 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#24 pc 000000000027f0a6 /system/framework/framework.jar (offset 0x12ad000) (android.view.ContextThemeWrapper.initializeTheme+46)
#25 pc 000000000067f1f4 /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#26 pc 000000000012d914 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#27 pc 000000000027f11c /system/framework/framework.jar (offset 0x12ad000) (android.view.ContextThemeWrapper.setTheme+12)
#28 pc 000000000067d930 /apex/com.android.art/lib64/libart.so (MterpInvokeSuper+2468) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#29 pc 000000000012d894 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_super+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#30 pc 00000000001cf384 /system/framework/framework.jar (android.app.Activity.setTheme)
#31 pc 000000000067d930 /apex/com.android.art/lib64/libart.so (MterpInvokeSuper+2468) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#32 pc 000000000012d894 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_super+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#33 pc 000000000019d0fc [anon:dalvik-classes.dex extracted in memory from /data/app/~~L2_UsRVtNSOKCZeGvFhDhQ==/com.dev.virtualshop-gSflxpM7-xq4qewsKph26Q==/base.apk] (androidx.appcompat.app.AppCompatActivity.setTheme)
#34 pc 0000000000305bb8 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.12828692043800420071)+268) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#35 pc 000000000030dba8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#36 pc 000000000030ef90 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1772) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#37 pc 0000000000174fb8 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<true, false>(art::interpreter::SwitchImplContext*)+45680) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#38 pc 000000000013f7d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#39 pc 00000000001bae68 /system/framework/framework.jar (android.app.ActivityThread.performLaunchActivity)
#40 pc 0000000000305cc0 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.12828692043800420071)+532) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#41 pc 000000000030dba8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#42 pc 000000000030ef90 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1772) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#43 pc 0000000000174fb8 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<true, false>(art::interpreter::SwitchImplContext*)+45680) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#44 pc 000000000013f7d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#45 pc 00000000001bacf8 /system/framework/framework.jar (android.app.ActivityThread.handleLaunchActivity)
#46 pc 0000000000305cc0 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.12828692043800420071)+532) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#47 pc 000000000030dba8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#48 pc 000000000030e5a0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+968) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#49 pc 000000000067c8d8 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+848) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#50 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#51 pc 00000000002c26ea /system/framework/framework.jar (android.app.servertransaction.LaunchActivityItem.execute+134)
#52 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#53 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#54 pc 00000000002c4ada /system/framework/framework.jar (android.app.servertransaction.TransactionExecutor.executeCallbacks+286)
#55 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#56 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#57 pc 00000000002c495c /system/framework/framework.jar (android.app.servertransaction.TransactionExecutor.execute+228)
#58 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#59 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#60 pc 00000000001b9fe0 /system/framework/framework.jar (android.app.ActivityThread$H.handleMessage+292)
#61 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#62 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#63 pc 00000000003d141a /system/framework/framework.jar (offset 0x97a000) (android.os.Handler.dispatchMessage+38)
#64 pc 000000000067cb78 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#65 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#66 pc 00000000004039ce /system/framework/framework.jar (offset 0x97a000) (android.os.Looper.loop+666)
#67 pc 0000000000305bb8 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.12828692043800420071)+268) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#68 pc 000000000030dba8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#69 pc 000000000030ef90 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1772) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#70 pc 0000000000177f40 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<true, false>(art::interpreter::SwitchImplContext*)+57848) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#71 pc 000000000013f7d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#72 pc 00000000001c57ac /system/framework/framework.jar (android.app.ActivityThread.main)
#73 pc 0000000000305cc0 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.12828692043800420071)+532) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#74 pc 000000000066b5f0 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#75 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#76 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#77 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#78 pc 00000000005562bc /apex/com.android.art/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1364) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#79 pc 00000000004d53d4 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#80 pc 00000000000947f4 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+180) (BuildId: f5ff44d4e96af9e82722863cdcbb11a1fae640f2)
#81 pc 0000000000133564 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#82 pc 00000000001a8a78 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#83 pc 0000000000318290 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#84 pc 000000000030e5bc /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#85 pc 000000000067c8d8 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+848) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#86 pc 000000000012d814 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#87 pc 00000000005286ba /system/framework/framework.jar (offset 0x12ad000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
#88 pc 0000000000305bb8 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.12828692043800420071)+268) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#89 pc 000000000066b5f0 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#90 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#91 pc 00000000008fac74 /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2756) (BuildId: 75f57aa82d8d6889edeed86525a613a1631601e4)
#92 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#93 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#94 pc 0000000000554cf8 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#95 pc 00000000005551ac /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#96 pc 0000000000438fdc /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+656) (BuildId: 0ba3e7738c2ac9a4d1da77e310c0b257)
#97 pc 000000000009c424 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124) (BuildId: a54426a2b2bfe5ad975341aa6c0e7841)
#98 pc 00000000000a4160 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+856) (BuildId: a54426a2b2bfe5ad975341aa6c0e7841)
#99 pc 0000000000003674 /system/bin/app_process64 (main+1580) (BuildId: 9349370b830e2b77b835dee3aff71480)
#100 pc 0000000000073a5c /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 1ca28d785d6567d2b225cf978ef04de5)
try these three steps:
invalidate and restart android studio
close/kill all the opened applications to keep all the memory to your developing app.
reinstall your app from android studio.
I have the following makefile:
PROG = tracecone
RBASE= /Users/owner/Documents/raytrace
GDIR=$(RBASE)/Graphics
MDIR=$(RBASE)/VrMath
ODIR=$(RBASE)/OpenglRender
MANDIR=$(RBASE)/RaytraceMgr
CFLAGS = -w -s -O2 -ansi -DSHM -m32
XLIBS = -lX11 -lXext -lXmu -lXext -lXmu -lXt -lXi -lSM -lICE
LIBS = -lglut -lGLU -lGL
RAYLIBS = -lraygraph -lvrmath
INCLS = -I/usr/X11R6/include -I/usr/X11/include/GL
INCL1 = -I$(GDIR) -I../RayTrace -I$(GDIR) -I$(MDIR) -I$(ODIR) -I$(MANDIR)
LIBDIR = -L/usr/X11/lib -L/usr/X11R6/lib -L$(GDIR) -L$(MDIR)
#source codes
SRCS = $(PROG).cpp
#substitute .cpp by .o to obtain object filenames
OBJS = $(SRCS:.cpp=.o)
#in ../Graphics
OBJOD = $(ODIR)/GlutRenderer.o
OBJO = GlutRenderer.o
OBJMAND = $(MANDIR)/SceneDescription.o
OBJMAN = SceneDescription.o
OBJ_temp = ../RayTrace/RayTraceData.o
#$< evaluates to the target's dependencies,
#$# evaluates to the target
$(PROG): $(OBJS)
g++ -o $# -m32 $(OBJ_temp) $(OBJS) $(OBJOD) $(OBJMAND) $(LIBDIR) $(LIBS) $(XLIBS) $(RAYLIBS)
$(OBJS):
g++ -c -m32 $*.cpp $(INCLS) $(INCL1)
$(OBJ1):
cd $(GDIR); g++ -m32 -c $*.cpp $(INCLS)
$(OBJM):
cd $(MDIR); g++ -m32 -c $*.cpp $(INCLS)
$(OBJO):
cd $(ODIR); g++ -m32 -c $*.cpp $(INCLS)
$(OBJMAN):
cd $(MANDIR); g++ -m32 -c $*.cpp $(INCLS)
clean:
rm $(OBJS)
clean1:
rm $(OBJD1)
And I'm getting the following error:
g++ -c -m32 tracecone.cpp -I/usr/X11R6/include -I/usr/X11/include/GL -I/Users/owner/Documents/raytrace/Graphics -I../RayTrace -I/Users/owner/Documents/raytrace/Graphics -I/Users/owner/Documents/raytrace/VrMath -I/Users/owner/Documents/raytrace/OpenglRender -I/Users/owner/Documents/raytrace/RaytraceMgr
g++ -o tracecone -m32 ../RayTrace/RayTraceData.o tracecone.o /Users/owner/Documents/raytrace/OpenglRender/GlutRenderer.o /Users/owner/Documents/raytrace/RaytraceMgr/SceneDescription.o -L/usr/X11/lib -L/usr/X11R6/lib -L/Users/owner/Documents/raytrace/Graphics -L/Users/owner/Documents/raytrace/VrMath -lglut -lGLU -lGL -lX11 -lXext -lXmu -lXext -lXmu -lXt -lXi -lSM -lICE -lraygraph -lvrmath
ld: warning: ld: warning: ld: warning: ignoring file /Users/owner/Documents/raytrace/OpenglRender/GlutRenderer.o, file was built for unsupported file format ( 0x7f 0x45 0x4c 0x46 0x 2 0x 1 0x 1 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /Users/owner/Documents/raytrace/OpenglRender/GlutRenderer.oignoring file /Users/owner/Documents/raytrace/RaytraceMgr/SceneDescription.o, file was built for unsupported file format ( 0x7f 0x45 0x4c 0x46 0x 2 0x 1 0x 1 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /Users/owner/Documents/raytrace/RaytraceMgr/SceneDescription.oignoring file ../RayTrace/RayTraceData.o, file was built for unsupported file format ( 0x7f 0x45 0x4c 0x46 0x 2 0x 1 0x 1 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): ../RayTrace/RayTraceData.o
ld: warning: ignoring file /Users/owner/Documents/raytrace/Graphics/libraygraph.a, file was built for archive which is not the architecture being linked (i386): /Users/owner/Documents/raytrace/Graphics/libraygraph.a
ld: warning: ignoring file /Users/owner/Documents/raytrace/VrMath/libvrmath.a, file was built for archive which is not the architecture being linked (i386): /Users/owner/Documents/raytrace/VrMath/libvrmath.a
Undefined symbols for architecture i386:
"_BackgroundColorR3", referenced from:
RayTrace(int, VectorR3 const&, VectorR3, VectorR3&, long)in tracecone.o
"_Cdims", referenced from:
ResizeWindow(int, int)in tracecone.o
"_GlobalAmbientR3", referenced from:
CalcAllDirectIllum(VectorR3 const&, VisiblePoint const&, VectorR3&, long)in tracecone.o
RenderWithGlut() in tracecone.o
"_LightArray", referenced from:
CalcAllDirectIllum(VectorR3 const&, VisiblePoint const&, VectorR3&, long)in tracecone.o
RenderWithGlut() in tracecone.o
"_MainView", referenced from:
ResizeWindow(int, int)in tracecone.o
mySpecialFunc(int, int, int)in tracecone.o
SetupRayTraceWorld() in tracecone.o
RayTraceView() in tracecone.o
RenderWithGlut() in tracecone.o
"_NumLights", referenced from:
CalcAllDirectIllum(VectorR3 const&, VisiblePoint const&, VectorR3&, long)in tracecone.o
RenderWithGlut() in tracecone.o
"_NumObjects", referenced from:
SeekIntersection(VectorR3 const&, VectorR3 const&, double*, VisiblePoint&, long)in tracecone.o
ShadowFeeler(VectorR3 const&, Light const&, long)in tracecone.o
SetupRayTraceWorld() in tracecone.o
RenderWithGlut() in tracecone.o
"_ViewObj", referenced from:
SeekIntersection(VectorR3 const&, VectorR3 const&, double*, VisiblePoint&, long)in tracecone.o
ShadowFeeler(VectorR3 const&, Light const&, long)in tracecone.o
SetupRayTraceWorld() in tracecone.o
RenderWithGlut() in tracecone.o
"SetUpLights()", referenced from:
SetupRayTraceWorld() in tracecone.o
"SetUpMainView()", referenced from:
SetupRayTraceWorld() in tracecone.o
"SetUpMaterials()", referenced from:
SetupRayTraceWorld() in tracecone.o
"DirectIlluminateViewPos(VectorR3 const&, VectorR3 const&, VectorR3 const&, Light const&, MaterialBase const&, VectorR3&, VectorR3 const&)", referenced from:
DirectIlluminateViewPos(VisiblePoint const&, VectorR3 const&, Light const&, VectorR3&, VectorR3 const&)in tracecone.o
"GetOrtho(VectorR3 const&, VectorR3&, VectorR3&)", referenced from:
ViewableCone::SetCenterAxis(VectorR3 const&) in tracecone.o
"CameraView::RotateViewUp(double)", referenced from:
mySpecialFunc(int, int, int)in tracecone.o
"CameraView::PixelDirPreCalc()", referenced from:
CameraView::SetDirection(VectorR3 const&) in tracecone.o
CameraView::SetDirection(float const*)in tracecone.o
CameraView::SetDirection(double const*)in tracecone.o
CameraView::SetDirection(double, double, double)in tracecone.o
"CameraView::RecalcPixeldUdV()", referenced from:
CameraView::SetScreenDimensions(double, double)in tracecone.o
CameraView::SetScreenPixelSize(int, int)in tracecone.o
"CameraView::RotateViewRight(double)", referenced from:
mySpecialFunc(int, int, int)in tracecone.o
"CameraView::CalcScreenCenter()", referenced from:
CameraView::SetPosition(VectorR3 const&) in tracecone.o
CameraView::SetPosition(float const*)in tracecone.o
CameraView::SetPosition(double const*)in tracecone.o
CameraView::SetPosition(double, double, double)in tracecone.o
CameraView::SetDirection(VectorR3 const&) in tracecone.o
CameraView::SetDirection(float const*)in tracecone.o
CameraView::SetDirection(double const*)in tracecone.o
...
"CameraView::RescaleDistanceOfViewer(double)", referenced from:
mySpecialFunc(int, int, int)in tracecone.o
"PixelArray::ClampAndDrawFloats()", referenced from:
PixelArray::Draw() in tracecone.o
"PixelArray::SetSize(int, int)", referenced from:
ResizeWindow(int, int)in tracecone.o
PixelArray::PixelArray(int, int)in tracecone.o
"GlutRenderer::RenderViewable(ViewableBase const&)", referenced from:
RenderWithGlut() in tracecone.o
"GlutRenderer::FinishRendering()", referenced from:
RenderWithGlut() in tracecone.o
"GlutRenderer::SetupCameraView(CameraView const&, double, double)", referenced from:
RenderWithGlut() in tracecone.o
"GlutRenderer::SetGlobalAmbientLight(VectorR3 const&)", referenced from:
RenderWithGlut() in tracecone.o
"GlutRenderer::SetGlobalAmbientLight(double, double, double)", referenced from:
RenderWithGlut() in tracecone.o
"GlutRenderer::AddLight(Light const&)", referenced from:
RenderWithGlut() in tracecone.o
"GlutRenderer::GlutRenderer()", referenced from:
RenderWithGlut() in tracecone.o
"Material::Default", referenced from:
ViewableCone::Reset() in tracecone.o
"ViewableBase::CalcExtentsInBox(AABB const&, AABB&) const", referenced from:
vtable for ViewableBasein tracecone.o
"ViewableBase::CalcAABB(AABB&) const", referenced from:
vtable for ViewableBasein tracecone.o
"Material::CalcLocalLighting(VectorR3&, Light const&, VectorR3 const&, double, VectorR3 const&, VectorR3 const&, VectorR3 const&, VectorR3 const*) const", referenced from:
vtable for Materialin tracecone.o
"Material::Clone() const", referenced from:
vtable for Materialin tracecone.o
"vtable for ViewableCone", referenced from:
ViewableCone::ViewableCone()in tracecone.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [tracecone] Error 1
How can I avoid the following error:
I'm using OSX, if that matters.
File was built for archive which is not the architecture being linked (i386)
Thanks in advance.
For the GlutRenderer.o, SceneDescription.o, RayTraceData.o files: add them to your clean section and make clean. For now you are cleaning only one file: tracecone.o. Perhaps other object files were built before you added -m32 flag to your makefile. You can also remove all object files manually.
Run find . | grep '\.o$' in source root directory to check if there is any object file left after the cleaning.
For the libraygraph.a and libvrmath.a: those libs must be built with -m32 flag too.