instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.6k stars 2.48k forks source link

make fails when running `bundle` #1133

Closed brandondrew closed 7 years ago

brandondrew commented 7 years ago

Summary:

bundle fails for some reason related to make

Steps to reproduce:

  1. install ruby 2.4.1 with rbenv
  2. install bundler
  3. ensure other dependencies are installed
  4. clone canvas & cd into canvas directory
  5. run bundle

Expected behavior:

bundler installs all gems

Additional notes:

output from bundle:

The latest bundler is 1.16.0.pre.3, but you are currently running 1.15.4.
To update, run `gem install bundler --pre`
Fetching https://github.com/rails-api/active_model_serializers.git
Fetching https://github.com/instructure/nokogiri-xmlsec-me-harder.git
Fetching https://github.com/colleenpalmer/dress_code.git
Fetching https://github.com/kreynolds/cassandra-cql.git
Fetching https://github.com/twitter/thrift_client.git
Fetching https://github.com/instructure/test-queue.git
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.......
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.6
Using minitest 5.10.3
Using thread_safe 0.3.6
Using multi_xml 0.6.0
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.2.0
Using crass 1.0.2
Using rack 2.0.3
Using nio4r 2.1.0
Using websocket-extensions 0.1.2
Using mime-types 1.25.1
Using arel 7.1.4
Using bundler 1.15.4
Using method_source 0.9.0
Using thor 0.20.0
Using public_suffix 2.0.5
Using statsd-ruby 1.4.0
Using io-like 0.3.0
Using ast 2.3.0
Using request_store 1.3.2
Using ffi 1.9.18
Using autoextend 1.0.0 from source at `gems`
Using extlib 0.9.16
Using multi_json 1.12.1
Fetching aws-partitions 1.25.0
Installing aws-partitions 1.25.0
Using aws-sigv4 1.0.2
Using jmespath 1.3.1
Using barby 0.6.5
Using bcrypt 3.1.11
Using bindata 2.4.1
Using bluecloth 2.2.0
Using folio-pagination 0.0.12
Using json 2.1.0
Using will_paginate 3.1.6
Using brakeman 4.0.1
Using byebug 9.0.6
Using canvas_breach_mitigation 0.0.1 from source at `gems/canvas_breach_mitigation`
Using simple_uuid 0.4.0
Using thrift 0.9.3.0
Using canvas_color 0.0.1 from source at `gems/canvas_color`
Using canvas_crummy 0.0.1 from source at `gems/canvas_crummy`
Using canvas_http 1.0.0 from source at `gems/canvas_http`
Using canvas_slug 0.0.1 from source at `gems/canvas_slug`
Using canvas_sort 1.0.0 from source at `gems/canvas_sort`
Using canvas_mimetype_fu 0.0.1 from source at `gems/canvas_mimetype_fu`
Using jwt 1.5.6
Using pg 0.21.0
Using iconv 1.0.4
Using rubyzip 1.2.0
Using chunky_png 1.3.8
Using colored 1.2
Using colorize 0.8.1
Using connection_pool 2.2.1
Using safe_yaml 1.0.4
Using sqlite3 1.3.13
Using diff-lcs 1.3
Using docile 1.1.5
Using dotenv 2.2.1
Using mustache 1.0.5
Using redcarpet 3.4.0
Using dynamic_form 1.1.4
Using escape_code 0.2
Using multipart-post 2.0.0
Using globby 0.1.2
Using retriable 1.4.1
Using graphql 1.6.7
Using promise.rb 0.7.4
Using hashdiff 0.3.4
Using hashery 2.1.2
Using headless 2.3.1
Using hey 1.3.1
Using highline 1.7.8
Using httpclient 2.8.3
Using sexp_processor 4.4.5
Using ya2yaml 0.31
Using icalendar 1.5.4
Using securecompare 1.0.0
Using url_safe_base64 0.2.2
Using simple_oauth 0.2.0
Using redis 3.3.1
Using iso8601 0.9.1
Using jira_ref_parser 1.0.1
Using oauth 0.5.3
Using luminosity_contrast 0.2.1
Using mini_magick 4.8.0
Using rdiscount 1.6.8
Using net-ldap 0.16.0
Using netaddr 1.5.1
Using oj 3.3.2
Using rspec-support 3.6.0
Using open4 1.3.4
Using parallel 1.12.0
Using powerpack 0.1.1
Using puma 3.9.1
Using soap4r-ruby1.9 2.0.0
Using ritex 1.0.1
Using rotp 3.3.0
Using ruby-progressbar 1.8.1
Using unicode-display_width 1.3.0
Using websocket 1.2.4
Using simplecov-html 0.10.2
Using stringify_ids 1.0.0 from source at `gems/stringify_ids`
Using test-queue 0.2.13 from https://github.com/instructure/test-queue.git (at 1b92ebb@1b92ebb)
Using testrail_client 0.0.1
Using timecop 0.9.1
Using useragent 0.16.8
Using yard 0.9.5
Using rainbow 2.2.2
Using canvas_text_helper 0.0.1 from source at `gems/canvas_text_helper`
Using tzinfo 1.2.3
Using httparty 0.15.6
Using nokogiri 1.8.0
Using rack-test 0.6.3
Using sprockets 3.7.1
Using websocket-driver 0.6.5
Using mail 2.6.6
Using addressable 2.5.1
Using archive-zip 0.7.0
Using parser 2.4.0.0
Using ffi-compiler 1.0.1
Using childprocess 0.7.1
Using ffi-icu 0.1.10
Using pygments.rb 1.1.2
Using rails-patch-json-encode 0.0.1
Using aws-sdk-core 3.6.0
Using json_token 0.0.1 from source at `gems/json_token`
Using crocodoc-ruby 0.0.1
Using vericite_api 1.5.1
Using paginated_collection 1.0.0 from source at `gems/paginated_collection`
Using thrift_client 0.9.3 from https://github.com/twitter/thrift_client.git (at 5c10d59@5c10d59)
Using multipart 0.0.1 from source at `gems/multipart`
Using canvas_panda_pub 1.0.0 from source at `gems/canvas_panda_pub`
Using twilio-ruby 4.2.1
Using utf8_cleaner 0.0.1 from source at `gems/utf8_cleaner`
Using canvas_unzip 0.0.1 from source at `gems/canvas_unzip`
Using rqrcode 0.10.1
Using net-http-persistent 3.0.0
Using crack 0.4.3
Using csv_diff 1.0.0 from source at `gems/csv_diff`
Using faraday 0.9.2
Using graphql-batch 0.3.5
Using ruby_parser 3.9.0
Using redis-scripting 1.0.1
Using redis-store 1.3.0
Using lti_outbound 0.0.1 from source at `gems/lti_outbound`
Using rspec-core 3.6.0
Using rspec-expectations 3.6.0
Using rspec-mocks 3.6.0
Using soap4r-middleware 0.8.6
Using simplecov 0.15.0
Using yard-appendix 0.1.8
Using activesupport 5.0.4
Using et-orbi 1.0.5
Using gergich 0.1.15
Using loofah 2.1.1
Using sanitize 2.1.0
Using diigo 1.0.0 from source at `gems/diigo`
Using gepub 0.7.0beta4
Using instructure-happymapper 0.5.10
Using linked_in 1.0.0 from source at `gems/linked_in`
Using nokogiri-xmlsec-me-harder 0.9.3pre from https://github.com/instructure/nokogiri-xmlsec-me-harder.git (at 57d0710@57d0710)
Using ratom-nokogiri 0.10.6
Using ruby-saml-mod 0.3.6
Using autoparse 0.3.3
Using launchy 2.4.3
Using imperium 0.2.2
Using chromedriver-helper 1.1.0
Using rubocop 0.49.1
Using scrypt 3.0.5
Using selenium-webdriver 2.53.4
Using dress_code 1.0.2 from https://github.com/colleenpalmer/dress_code.git (at master@5743821)
Using aws-sdk-autoscaling 1.0.0
Using aws-sdk-kinesis 1.0.0
Using aws-sdk-kms 1.2.0
Using aws-sdk-sns 1.0.0
Using aws-sdk-sqs 1.0.0
Using cassandra-cql 1.2.3 from https://github.com/kreynolds/cassandra-cql.git (at 02b5abb@02b5abb)
Using canvas_kaltura 1.0.0 from source at `gems/canvas_kaltura`
Using webmock 3.0.1
Using faraday_middleware 0.12.2
Using signet 0.7.3
Using oauth2 1.2.0
Using sentry-raven 0.15.6
Using ruby2ruby 2.3.1
Using redis-rack 2.0.2
Using rspec-collection_matchers 1.1.3
Using rspec 3.6.0
Using simplecov-rcov 0.2.3
Using academic_benchmarks 0.0.10
Using rails-dom-testing 2.0.3
Using globalid 0.4.0
Using activemodel 5.0.4
Using activesupport-suspend_callbacks 0.0.1 from source at `gems/activesupport-suspend_callbacks`
Using adobe_connect 1.0.6
Using canvas_ext 1.0.0 from source at `gems/canvas_ext`
Using canvas_time 1.0.0 from source at `gems/canvas_time`
Using json-jwt 1.7.2
Using redis-activesupport 5.0.3
Using ruby-duration 3.2.3
Using rubycas-client 2.3.9
Using shoulda-matchers 3.1.2
Using spring 2.0.2
Using rufus-scheduler 3.4.2
Using rails-html-sanitizer 1.0.3
Using html_text_helper 0.0.1 from source at `gems/html_text_helper`
Using canvas_sanitize 0.0.1 from source at `gems/canvas_sanitize`
Using moodle2cc 0.2.38
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/brandon/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/nokogiri-xmlsec-me-harder-57d071040cc4/ext/nokogiri_ext_xmlsec
/Users/brandon/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20171011-18110-d5lpvy.rb extconf.rb
checking for ruby.h... yes
Clfags: $(cflags)  -pipe -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1
-D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1
-I/usr/local/Cellar/libxmlsec1/1.2.25/include/xmlsec1 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
-I/usr/include/libxml2 -I/usr/local/opt/openssl/include -DXMLSEC_CRYPTO_OPENSSL=1 -fvisibility=hidden
creating Makefile

current directory: /Users/brandon/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/nokogiri-xmlsec-me-harder-57d071040cc4/ext/nokogiri_ext_xmlsec
make "DESTDIR=" clean

current directory: /Users/brandon/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/nokogiri-xmlsec-me-harder-57d071040cc4/ext/nokogiri_ext_xmlsec
make "DESTDIR="
compiling init.c
compiling nokogiri_decrypt_with_key.c
nokogiri_decrypt_with_key.c:22:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  keyLength = RSTRING_LEN(rb_key);
            ~ ^~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nokogiri_decrypt_with_key.c:22:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  keyLength = RSTRING_LEN(rb_key);
            ~ ^~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
2 warnings generated.
compiling nokogiri_encrypt_with_key.c
nokogiri_encrypt_with_key.c:34:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  keyLength = RSTRING_LEN(rb_rsa_key);
            ~ ^~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nokogiri_encrypt_with_key.c:34:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  keyLength = RSTRING_LEN(rb_rsa_key);
            ~ ^~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
2 warnings generated.
compiling nokogiri_helpers_set_attribute_id.c
compiling nokogiri_init.c
compiling nokogiri_sign.c
nokogiri_sign.c:59:18: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  rsaKeyLength = RSTRING_LEN(rb_rsa_key);
               ~ ^~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nokogiri_sign.c:59:18: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  rsaKeyLength = RSTRING_LEN(rb_rsa_key);
               ~ ^~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
nokogiri_sign.c:64:25: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
    certificateLength = RSTRING_LEN(rb_cert);
                      ~ ^~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nokogiri_sign.c:64:25: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
    certificateLength = RSTRING_LEN(rb_cert);
                      ~ ^~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
4 warnings generated.
compiling nokogiri_verify_with.c
nokogiri_verify_with.c:14:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  int numCerts = RARRAY_LEN(rb_certs);
      ~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1026:23: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN(a) rb_array_len(a)
                      ^~~~~~~~~~~~~~~
nokogiri_verify_with.c:37:18: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
    certLength = RSTRING_LEN(rb_cert);
               ~ ^~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nokogiri_verify_with.c:37:18: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
    certLength = RSTRING_LEN(rb_cert);
               ~ ^~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
nokogiri_verify_with.c:80:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  keyDataLength = RSTRING_LEN(rb_value);
                ~ ^~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nokogiri_verify_with.c:80:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  keyDataLength = RSTRING_LEN(rb_value);
                ~ ^~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
nokogiri_verify_with.c:177:22: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
    rsa_key_length = RSTRING_LEN(rb_rsa_key);
                   ~ ^~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nokogiri_verify_with.c:177:22: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
    rsa_key_length = RSTRING_LEN(rb_rsa_key);
                   ~ ^~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
7 warnings generated.
compiling options.c
options.c:65:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  int blockEncryptionLen = RSTRING_LEN(rb_block_encryption);
      ~~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
options.c:65:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  int blockEncryptionLen = RSTRING_LEN(rb_block_encryption);
      ~~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
options.c:67:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  int keyTransportLen = RSTRING_LEN(rb_key_transport);
      ~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
options.c:67:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  int keyTransportLen = RSTRING_LEN(rb_key_transport);
      ~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
options.c:108:43: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  unsigned int signatureAlgorithmLength = RSTRING_LEN(rb_signature_alg);
               ~~~~~~~~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
options.c:108:43: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  unsigned int signatureAlgorithmLength = RSTRING_LEN(rb_signature_alg);
               ~~~~~~~~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
options.c:149:40: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  unsigned int digestAlgorithmLength = RSTRING_LEN(rb_digest_alg);
               ~~~~~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:980:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
options.c:149:40: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  unsigned int digestAlgorithmLength = RSTRING_LEN(rb_digest_alg);
               ~~~~~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:981:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
     ~~~~~~~~~~~~~~~~~~~~~~^~~
8 warnings generated.
compiling shutdown.c
compiling util.c
linking shared-object nokogiri_ext_xmlsec.bundle
ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [nokogiri_ext_xmlsec.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/brandon/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/nokogiri-xmlsec-me-harder-57d071040cc4 for inspection.
Results logged to /Users/brandon/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/extensions/x86_64-darwin-15/2.4.0-static/nokogiri-xmlsec-me-harder-57d071040cc4/gem_make.out

An error occurred while installing nokogiri-xmlsec-me-harder (0.9.3pre), and Bundler cannot continue.

In Gemfile:
  saml2 was resolved to 1.1.3, which depends on
    nokogiri-xmlsec-me-harder

Here are versions of various things:

$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]
$ node --version
v6.7.0
$ bundler --version
Bundler version 1.15.4
$ psql -V
psql (PostgreSQL) 9.5.9
brandondrew commented 7 years ago

This is on El Capitan

omarkhan commented 7 years ago

Looks like nokogiri is missing some dependencies. Please check their setup instructions, or avoid the problem altogether by using the docker setup.

We're trying to use github issues for bugs only, please ask about configuration and setup issues like this on the mailing list or IRC. Thanks!

brandondrew commented 7 years ago

@omarkhan gem install nokogiri runs just fine. I'm not sure how you conclude that the problem is with nokogiri.

It looks to me like nokogiri-xmlsec-me-harder is the problem, which is an instructure repo. Would you prefer that I file the bug report there?

omarkhan commented 7 years ago

Please try the mailing list or IRC first. If you are sure this is a bug and not a configuration issue, feel free to file it under nokogiri-xmlsec-me-harder. Thanks!

simonista commented 6 years ago

I just ran into this, and had to downgrade XCode to get it to work, see https://forums.developer.apple.com/thread/87829