Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15793

ref-guide jrubyPrepare fails due to gems trying to compile native code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None

    Description

      This popped up recently on both my local machine and jenkins...

      (snippet)

      Building native extensions. This could take a while...
      ERROR:  Error installing /home/hossman/.gradle/caches/modules-2/files-2.1/rubygems/http_parser.rb/0.8.0/8aa1092bbc1f10fd9622224babf2b2a98d4d4b22/http_parser.rb-0.8.0.gem:
              ERROR: Failed to build gem native extension.
      
          current directory: /home/hossman/lucene/solr/solr/solr-ref-guide/build/.gems/gems/http_parser.rb-0.8.0/ext/ruby_http_parser
      /opt/jdk/11/jdk-11.0.4+11/bin/java -cp :/home/hossman/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/9.2.9.0/8e44ce7a1417966d89957bd766a148601e28828b/jruby-complete-9.2.9.0.jar org.jruby.Main -r ./siteconf20211111-25245-1dvbe4a.rb extconf.rb
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/home/hossman/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/9.2.9.0/8e44ce7a1417966d89957bd766a148601e28828b/jruby-complete-9.2.9.0.jar) to method sun.nio.ch.NativeThread.signal(long)
      WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      creating Makefile
      
      current directory: /home/hossman/lucene/solr/solr/solr-ref-guide/build/.gems/gems/http_parser.rb-0.8.0/ext/ruby_http_parser
      make "DESTDIR=" clean
      Makefile:225: *** multiple target patterns.  Stop.
      
      current directory: /home/hossman/lucene/solr/solr/solr-ref-guide/build/.gems/gems/http_parser.rb-0.8.0/ext/ruby_http_parser
      make "DESTDIR="
      Makefile:225: *** multiple target patterns.  Stop.
      
      make failed, exit code 2
      
      Gem files will remain installed in /home/hossman/lucene/solr/solr/solr-ref-guide/build/.gems/gems/http_parser.rb-0.8.0 for inspection.
      Results logged to /home/hossman/lucene/solr/solr/solr-ref-guide/build/.gems/extensions/universal-java-11/2.5.0/http_parser.rb-0.8.0/gem_make.out
      
      

      ...it's very similar to SOLR-15520, but isn't the result of any version changes made to our gem dependencies – it seems like some transient gem dep changed, and now we're pulling in a gem that has native code which evidently can't compile under JRuby

      (I think the Makefile error is becuase of "paths" that include the ':' character (because JRuby is trying to point them at classpath: URIs)

      Attachments

        Issue Links

          Activity

            People

              epugh Eric Pugh
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m