rbenv / ruby-build

A tool to download, compile, and install Ruby on Unix-like systems.
https://rbenv.org/man/ruby-build.1
MIT License
3.89k stars 785 forks source link

Build failed with Error running '__rvm_make -j10', when i am trying to install ruby 3.3.0 version in macos m1pro #2444

Closed rkranjit closed 1 month ago

rkranjit commented 1 month ago

Steps to reproduce the behavior

Expected vs. actual behavior

Logs

I got below error after executing rvm install 3.3.0 ruby-3.3.0 - #extracting ruby-3.3.0 to /Users/ranjit/.rvm/src/ruby-3.3.0 - please wait ruby-3.3.0 - #configuring - please wait ruby-3.3.0 - #post-configuration - please wait ruby-3.3.0 - #compiling - please wait Error running '__rvm_make -j10', please read /Users/ranjit/.rvm/log/1726470719_ruby-3.3.0/make.log

There has been an error while running make. Halting the installation.

Below is the error log in make.log file compiling pty.c compiling pinned.c openssl_missing.c:24:13: error: incomplete definition of type 'struct X509_crl_st' *psig = crl->signature;


/usr/local/Cellar/openssl@3/3.3.1/include/openssl/types.h:162:16: note: forward declaration of 'struct X509_crl_st'
typedef struct X509_crl_st X509_CRL;
               ^
openssl_missing.c:26:13: error: incomplete definition of type 'struct X509_crl_st'
        *palg = crl->sig_alg;
                ~~~^
/usr/local/Cellar/openssl@3/3.3.1/include/openssl/types.h:162:16: note: forward declaration of 'struct X509_crl_st'
typedef struct X509_crl_st X509_CRL;
               ^
openssl_missing.c:36:13: error: incomplete definition of type 'struct X509_req_st'
        *psig = req->signature;
                ~~~^
/usr/local/Cellar/openssl@3/3.3.1/include/openssl/x509.h:283:16: note: forward declaration of 'struct X509_req_st'
typedef struct X509_req_st X509_REQ;
               ^
openssl_missing.c:38:13: error: incomplete definition of type 'struct X509_req_st'
        *palg = req->sig_alg;
                ~~~^
/usr/local/Cellar/openssl@3/3.3.1/include/openssl/x509.h:283:16: note: forward declaration of 'struct X509_req_st'
typedef struct X509_req_st X509_REQ;
               ^
4 errors generated.
make[2]: *** [openssl_missing.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling objspace_dump.c
installing default pathname libraries
installing default pty libraries
linking shared-object date_core.bundle
compiling pointer.c
linking shared-object pty.bundle
linking shared-object pathname.bundle
installing default fiddle libraries
linking shared-object objspace.bundle
linking shared-object fiddle.bundle
ld: warning: ignoring duplicate libraries: '-lffi'
linking shared-object nkf.bundle
make: *** [build-ext] Error 2
+__rvm_make:0> return 2
rkranjit commented 1 month ago

should not be mark as bug