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

COSMOS installation failure in building puma_http11 #1087

sanwar0asu0edu opened this issue Nov 18, 2019 · 1 comment

COSMOS installation failure in building puma_http11 #1087

sanwar0asu0edu opened this issue Nov 18, 2019 · 1 comment


Copy link

@sanwar0asu0edu sanwar0asu0edu commented Nov 18, 2019


I am getting an installation failure (ERROR: Problem installing cosmos gem). Below is the part of the log. Thanks.

Successfully installed snmp-1.3.2
Successfully installed rubyzip-1.3.0
Successfully installed mini_portile2-2.4.0
Nokogiri is built with the packaged libraries: libxml2-2.9.10, libxslt-1.1.34, zlib-1.2.11, libiconv-1.15.
Successfully installed nokogiri-1.10.5-x64-mingw32
Successfully installed opengl-bindings-1.6.9
Successfully installed qtbindings-qt-
Successfully installed qtbindings-
Temporarily enhancing PATH for MSYS/MINGW...
Installing required msys2 packages: mingw-w64-x86_64-openssl
Building native extensions. This could take a while...
ERROR: Error installing cosmos:
ERROR: Failed to build gem native extension.

current directory: C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.1/ext/puma_http11

C:/COSMOS/Vendor/Ruby/bin/ruby.exe -I C:/COSMOS/Vendor/Ruby/lib/ruby/site_ruby/2.5.0 -r ./siteconf20191118-2804-185xcy4.rb extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... yes
creating Makefile

current directory: C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.1/ext/puma_http11
make "DESTDIR=" clean

current directory: C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.1/ext/puma_http11
make "DESTDIR="
generating puma_http11-x64-mingw32.def
compiling http11_parser.c
compiling io_buffer.c
compiling mini_ssl.c
mini_ssl.c: In function 'engine_init_client':
mini_ssl.c:220:3: warning: 'DTLSv1_method' is deprecated [-Wdeprecated-declarations]
220 | conn->ctx = SSL_CTX_new(DTLSv1_method());
| ^~~~
In file included from C:/COSMOS/Vendor/Ruby/msys64/mingw64/include/openssl/e_os2.h:13,
from C:/COSMOS/Vendor/Ruby/msys64/mingw64/include/openssl/bio.h:13,
from mini_ssl.c:14:
C:/COSMOS/Vendor/Ruby/msys64/mingw64/include/openssl/ssl.h:1895:1: note: declared here
1895 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD DTLSv1_method(void)) / DTLSv1.0 */
| ^~~~~~~~~~~~~~~~~~
compiling puma_http11.c
linking shared-object puma/
C:/COSMOS/Vendor/Ruby/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: puma_http11.o:puma_http11.c:(.text+0x9a4): undefined reference to `__memcpy_chk'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:259:] Error 1

make failed, exit code 2

Gem files will remain installed in C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.1 for inspection.
Results logged to C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/puma-3.12.1/gem_make.out
ERROR: Problem installing cosmos gem
Press any key to continue . . .

Copy link

@jasonatball jasonatball commented Nov 18, 2019

Ryan recently fixed an issue with the installer due to this broken Puma installer: 4f7e323

Ensure you're using the latest (2.4) version of the installer.

@ryanmelt ryanmelt added the bug label Dec 31, 2019
@ryanmelt ryanmelt added this to the v4.4.1 milestone Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants