View previous topic :: View next topic |
Author |
Message |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 896
|
Posted: Thu May 09, 2019 5:13 pm Post subject: Chromium won't emerge because of Java version |
|
|
Multiple hours-long compiles of chromium end in failure. This is a real problem,
we really need a chromium-bin to come back, but for now I have to get
chromium compiled.
The specific problem (I think) is here:
Code: |
python ../../third_party/closure_compiler/js_binary.py --compiler ../../third_party/closure_compiler/compiler/compiler.jar --output gen/mojo/public/js/mojo_bindings_lite.js --deps gen/mojo/public/js/bindings_lite_sources.js_library --sources ../../mojo/public/js/bindings_lite.js --flags jscomp_error=accessControls jscomp_error=ambiguousFunctionDecl jscomp_error=checkTypes jscomp_error=checkVars jscomp_error=constantProperty jscomp_error=deprecated jscomp_error=externsValidation jscomp_error=globalThis jscomp_error=invalidCasts jscomp_error=missingProperties jscomp_error=missingReturn jscomp_error=nonStandardJsDocs jscomp_error=suspiciousCode jscomp_error=undefinedNames jscomp_error=undefinedVars jscomp_error=unknownDefines jscomp_error=uselessCode jscomp_error=visibility compilation_level=ADVANCED_OPTIMIZATIONS language_in=ECMASCRIPT_2017 language_out=ECMASCRIPT5_STRICT generate_exports --externs ../../third_party/closure_compiler/externs/chrome.js ../../third_party/closure_compiler/externs/polymer-1.0.js ../../third_party/closure_compiler/externs/mojo_core.js ../../third_party/closure_compiler/externs/pending.js
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
.
.
.
ninja: build stopped: subcommand failed.
* ERROR: www-client/chromium-73.0.3683.86::gentoo failed (compile phase):
* ninja -v -j5 -l0 -C out/Release chrome chromedriver failed
*
* Call stack:
* ebuild.sh, line 124: Called src_compile
* environment, line 4253: Called eninja '-C' 'out/Release' 'chrome' 'chromedriver'
* environment, line 1756: Called die
* The specific snippet of code:
* "$@" || die "${nonfatal_args[@]}" "${*} failed"
*
* If you need support, post the output of `emerge --info '=www-client/chromium-73.0.3683.86::gentoo'`,
* the complete build log and the output of `emerge -pqv '=www-client/chromium-73.0.3683.86::gentoo'`.
*
* MemTotal: 12459624 kB
* SwapTotal: 3905532 kB
*
|
Through the wonder of the internet I find that this means my version of java is too low. But of course it doesn't say that anywhere. Apparently I need Java 7 in order for python to be able to call the java compiler. Or something like that. that's where the fun begins. Following the gentoo wiki I look up
what available java versions I can use, and find a mess. It seems to be that there are many java
versions with different numbering schemes, like 1.7, 7, the lastest from oracle is 12.
Oracle requires me to log in and provide all my info in order to download a proprietary binary, which I'd rather not do. Icedtea and sun are deprecated. Openjdk are all masked. So I am out of options.
Unless there's information that's not in the gentoo wiki that I'm not getting. I've googled and googled, and come up empty so far.
Who can help me out? I'm confused that I even need java, the browser doesn't support it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31483 Location: here
|
Posted: Thu May 09, 2019 5:20 pm Post subject: |
|
|
In wikipedia you can find what is major.minor version 52.0
Code: | Java SE 13 = 57 (0x39 hex),
Java SE 12 = 56 (0x38 hex),
Java SE 11 = 55 (0x37 hex),
Java SE 10 = 54 (0x36 hex),[3]
Java SE 9 = 53 (0x35 hex),[4]
Java SE 8 = 52 (0x34 hex),
Java SE 7 = 51 (0x33 hex),
Java SE 6.0 = 50 (0x32 hex),
Java SE 5.0 = 49 (0x31 hex),
JDK 1.4 = 48 (0x30 hex),
JDK 1.3 = 47 (0x2F hex),
JDK 1.2 = 46 (0x2E hex),
JDK 1.1 = 45 (0x2D hex). |
You need at least jre-1.8 then one of dev-java/oracle-jre-bin:1.8, dev-java/icedtea-bin:8, dev-java/icedtea:8
But what jre you installed (because versions <1.8 are out of tree)? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 896
|
Posted: Thu May 09, 2019 10:26 pm Post subject: |
|
|
I think we're getting somewhere.
This is what I have now. I guess I'm understanding that chromium has compile-time dependencies on java regardless of whether it supports java in the browser. These have to be a certain minimum version, and rather than having the depndency check in the ebuild, they decided to let me compile for 4 hours each time to find out if my java was the correct.
Code: |
Merckx /home/jesnow # equery list java -f
* Searching for java ...
[IP-] [ ] app-eselect/eselect-java-0.4.0:0
[IP-] [ ] dev-java/ant-core-1.10.5-r1:0
[IP-] [ ] dev-java/icedtea-bin-3.10.0-r1:8
[IP-] [ ] dev-java/icedtea-web-1.6.2:0
[IP-] [ ] dev-java/java-config-2.2.0-r4:2
[IP-] [ ] dev-java/javatoolkit-0.3.0-r9:0
[I--] [??] dev-java/sun-jre-bin-1.6.0.45:1.6
[IP-] [ ] sys-apps/baselayout-java-0.1.0:0
Merckx /home/jesnow #
|
I think I need to get rid of sun and icedtea and install, what? Oracle is proprietary and they
want all my information just to install anything. The information in the gentoo wiki seems to be
incomplete, because now I don't really see any viable java described there.
[quote] But what jre you installed (because versions <1.8 are out of tree)?[quote] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mistwolf Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 07 Mar 2007 Posts: 189 Location: Edmonton, AB
|
Posted: Fri May 10, 2019 12:30 am Post subject: |
|
|
Quote: | dev-java/icedtea-bin-3.10.0-r1:8 |
That is OpenJDK 8, ie: Java 8. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31483 Location: here
|
Posted: Fri May 10, 2019 5:42 am Post subject: |
|
|
As Mistwolf say install dev-java/icedtea-bin-3.10.0-r1:8 that is java-8 because dev-java/openjdk-bin is yet masked _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tony0945 Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Fri May 10, 2019 2:42 pm Post subject: |
|
|
jesnow wrote: | Oracle is proprietary and they
want all my information just to install anything. |
Has something changed? The ebuild provides a link to a web page where you click that you agree to the license terms. I never even gave them my name let alone "all my information". It's a PITA, but I don't consider it a phishing expedition. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 896
|
Posted: Fri May 10, 2019 6:57 pm Post subject: |
|
|
I tried several ways, and they wouldn't let me download anything unless I created an oracle account with all my info. Not really into that.
Jon.
Tony0945 wrote: | jesnow wrote: | Oracle is proprietary and they
want all my information just to install anything. |
Has something changed? The ebuild provides a link to a web page where you click that you agree to the license terms. I never even gave them my name let alone "all my information". It's a PITA, but I don't consider it a phishing expedition. |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 896
|
Posted: Fri May 10, 2019 7:01 pm Post subject: |
|
|
It's installed, all I have to do is set it to be the system vm to use it. Doing that now.
fedeliallalinea wrote: | As Mistwolf say install dev-java/icedtea-bin-3.10.0-r1:8 that is java-8 because dev-java/openjdk-bin is yet masked |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31483 Location: here
|
Posted: Fri May 10, 2019 7:06 pm Post subject: |
|
|
jesnow wrote: | I tried several ways, and they wouldn't let me download anything unless I created an oracle account with all my info. Not really into that. |
You right, this because java oracle 8 is archived and for download all archived package you need to login (it's always been so).
Now the only downloadable version without login is java-12 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 896
|
Posted: Fri May 10, 2019 8:59 pm Post subject: |
|
|
I was following the instrucitons in the ebuild, which specified a particular version of oracle java.
fedeliallalinea wrote: | jesnow wrote: | I tried several ways, and they wouldn't let me download anything unless I created an oracle account with all my info. Not really into that. |
You right, this because java oracle 8 is archived and for download all archived package you need to login (it's always been so).
Now the only downloadable version without login is java-12 |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 896
|
Posted: Fri May 10, 2019 9:05 pm Post subject: |
|
|
Seems to be working. But why was the compile time dependence on a particular java version not flagged in the ebuild? The path to troubleshooting the problem and finding a solution was especially cryptic, with few comprehensible diagnostics and lots of dead ends.
Jon.
jesnow wrote: | It's installed, all I have to do is set it to be the system vm to use it. Doing that now.
fedeliallalinea wrote: | As Mistwolf say install dev-java/icedtea-bin-3.10.0-r1:8 that is java-8 because dev-java/openjdk-bin is yet masked |
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31483 Location: here
|
Posted: Sat May 11, 2019 7:16 am Post subject: |
|
|
jesnow wrote: | Seems to be working. But why was the compile time dependence on a particular java version not flagged in the ebuild? The path to troubleshooting the problem and finding a solution was especially cryptic, with few comprehensible diagnostics and lots of dead ends. |
In ebuild there is
Code: | closure-compile? ( virtual/jre ) |
without specific the java version, but this isn't needed because <jre-8 is out of tree _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 896
|
Posted: Fri May 17, 2019 11:28 pm Post subject: |
|
|
So I could compile with USE="-closure-compile" and avoid the whole thing? why not?
fedeliallalinea wrote: | jesnow wrote: | Seems to be working. But why was the compile time dependence on a particular java version not flagged in the ebuild? The path to troubleshooting the problem and finding a solution was especially cryptic, with few comprehensible diagnostics and lots of dead ends. |
In ebuild there is
Code: | closure-compile? ( virtual/jre ) |
without specific the java version, but this isn't needed because <jre-8 is out of tree |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31483 Location: here
|
Posted: Sat May 18, 2019 10:49 am Post subject: |
|
|
jesnow wrote: | So I could compile with USE="-closure-compile" and avoid the whole thing? why not? |
Yes you can it's a optional use flag, but sincerely I don't know what this use flag does. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|