Closed dentarg closed 1 month ago
Oh, the problem is that the Docker image has no javac
š®
root@01c002618cc9:/app# javac
bash: javac: command not found
A bit similar to https://github.com/jruby/jruby/issues/8062 ... but maybe something that one could expect?
Ah, the -jdk
images have javac
Using jruby:9.4.8.0-jdk
it still didn't work
root@0d5774b3f421:/app# bundle exec rake --trace compile
** Invoke compile (first_time)
** Invoke compile:java (first_time)
** Invoke compile:puma_http11:java (first_time)
** Invoke copy:puma_http11:java (first_time)
** Invoke lib/puma (first_time, not_needed)
** Invoke tmp/java/puma_http11/puma_http11.jar (first_time)
** Invoke tmp/java/puma_http11/.build (first_time)
** Invoke tmp/java/puma_http11 (first_time, not_needed)
** Invoke ext/puma_http11/PumaHttp11Service.java (first_time, not_needed)
** Invoke ext/puma_http11/org/jruby/puma/Http11.java (first_time, not_needed)
** Invoke ext/puma_http11/org/jruby/puma/Http11Parser.java (first_time, not_needed)
** Invoke ext/puma_http11/http11_parser.java.rl (first_time, not_needed)
** Invoke ext/puma_http11/org/jruby/puma/MiniSSL.java (first_time, not_needed)
** Execute tmp/java/puma_http11/.build
javac: invalid flag: --release=8
Usage: javac <options> <source files>
use -help for a list of possible options
rake aborted!
Command failed with status (2): [javac --release=8 -Xlint -d tmp/java/puma_http11 -extdirs /opt/java/openjdk/jre/lib/ext:/usr/java/packages/lib/ext -cp /opt/java/openjdk/jre/lib/resources.jar:/opt/java/openjdk/jre/lib/rt.jar:/opt/java/openjdk/jre/lib/sunrsasign.jar:/opt/java/openjdk/jre/lib/jsse.jar:/opt/java/openjdk/jre/lib/jce.jar:/opt/java/openjdk/jre/lib/charsets.jar:/opt/java/openjdk/jre/lib/jfr.jar:/opt/java/openjdk/jre/classes:/opt/jruby/lib/jruby.jar ext/puma_http11/PumaHttp11Service.java ext/puma_http11/org/jruby/puma/Http11.java ext/puma_http11/org/jruby/puma/Http11Parser.java ext/puma_http11/org/jruby/puma/MiniSSL.java]
...
Maybe a Puma problem? but everything is fine in CI over there (and macOS for me...)
Oh I see warnings in macOS
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
I will create an issue on Puma for this. Sorry for the noise.
OK, using the latest rake-compiler
(1.2.7) gem solves it for jruby:9.4.8.0-jdk
. Puma repo was locked to 1.1.9.
Ok thanks for the extra footwork! Nothing else to do on our end, correct?
Correct! Sorry again for the noise. Hopefully this issue helps someone else in the future in regards to jre
vs jdk
images :)
Sorry about this issue,
but I have a hard time seeing what goes wrongand why this isn't just working. I have JRuby 9.4.8.0 installed with ruby-build in macOS and have no problem running the Puma specs there.Here's what happens when I clone the Puma repo fresh and tries the lastest Docker image (I see the same thing in 9.4.5.0 and 9.3.15.0).
It is
bundle exec rake --trace compile
that is the problem: