Unrecognized option: -Xcext.enabled=true ERROR JVM, JRuby, Scala, and RubyMine - scala

The error being related to something from when JRuby was installed does seam to make sense. When installing JRuby with RVM it had a dependency it needed to compile which I believe didn't go so well. Which dependency I don't quite remember. It seams to pertain to the JVM and -Xcext.
Scala:
~$ scala
Unrecognized option: -Xcext.enabled=true
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
No Google search results on this.
I have tried the latest from http://www.scala-lang.org version 2.11.1 and got this exact error.
Java Version:
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
JRuby:
Trying to re-install JRuby via RVM didn't ask to build any dependencies. So I'll have to look up the -Xcext case online and figure it out. ... I can't seem to find what it was that had problems.
~$ irb
Unrecognized option: -Xcext.enabled=true
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
And it affects RubyMine. I really want to know where this problem has embedded itself into as it's causing quite a few headaches!
Installing JRuby-head
~/.rvm$ rvm install jruby-head
Checking requirements for ubuntu.
Requirements installation successful.
$JAVA_HOME was empty, setting up JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre, if it fails try setting JAVA_HOME to something sane and try again.
Cloning from git://github.com/jruby/jruby.git, this may take a while depending on your connection.
HEAD is now at dc4248b Minor cleanup.
From git://github.com/jruby/jruby
* branch master -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
jruby-head - #mvn....................................................................................................................................
jruby-head - #installing to /home/user/.rvm/rubies/jruby-head.
jruby-head - #making binaries executable......
jruby-head - #downloading rubygems-2.2.2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 404k 100 404k 0 0 1465k 0 --:--:-- --:--:-- --:--:-- 1470k
jruby-head - #extracting rubygems-2.2.2....
jruby-head - #removing old rubygems.........
jruby-head - #installing rubygems-2.2.2.
Error running 'env GEM_HOME=/home/user/.rvm/gems/jruby-head#global GEM_PATH= /home/user/.rvm/rubies/jruby-head/bin/ruby -d /home/user/.rvm/src/rubygems-2.2.2/setup.rb',
showing last 15 lines of /home/user/.rvm/log/1405475737_jruby-head/rubygems.install.log
[2014-07-15 22:00:00] /home/user/.rvm/rubies/jruby-head/bin/ruby
current path: /home/user/.rvm/src/rubygems-2.2.2
GEM_HOME=/home/user/.rvm/gems/jruby-1.7.13
PATH=/home/user/.rvm/gems/jruby-1.7.13/bin:/home/user/.rvm/gems/jruby-1.7.13#global/bin:/home/user/.rvm/rubies/jruby-1.7.13/bin:/home/user/.rvm/bin:/usr/local/heroku/bin:.:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/RubyMine/bin
GEM_PATH=/home/user/.rvm/gems/jruby-1.7.13:/home/user/.rvm/gems/jruby-1.7.13#global
command(6): env GEM_HOME=/home/user/.rvm/gems/jruby-head#global GEM_PATH= /home/user/.rvm/rubies/jruby-head/bin/ruby -d /home/user/.rvm/src/rubygems-2.2.2/setup.rb
Unrecognized option: -Xcext.enabled=true
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Gemset '' does not exist, 'rvm jruby-head do rvm gemset create ' first, or append '--create'.

Sounds like you have -Xcext.enabled=true in one of the JVM's options environment variables, such as JAVA_OPTS, _JAVA_OPTIONS, or JAVA_TOOL_OPTIONS. I assume at some point it was supposed to be added to a JRuby-specific environment variable but accidentally got put in one of those JVM ones.

Related

Problems arising from the AOSP Android build

I am currently ubuntu 18.04 (lts) asop build in.But an unexpected problem is occurring and over and over again.This is something wrong?
It's my development environment.
Python - 2.7.17
openjdk - 8
$user#ubuntu:~/android_build$ source ./imx-p9.0.0_2.2.0-ga/imx_android_setup.sh
$user#ubuntu:~/android_build$ lunch aosp_arm-eng
$user#ubuntu:~/android_build$ make -j 9 2>&1 | tee build-log.txt
build-log.txt -->
https://drive.google.com/file/d/1LsM_H1moCVVzyZ21Gm3SOV-x3OUlGYQm/view?usp=sharing
If you have any additional requirements, please write them down.
After reviewing your log, it looks like some file is missing in the vendor/nxp directory
vendor/nxp/fsl_imx_omx/OpenMAXIL/src/component/common/UniaDecoder.h:21:10: fatal error: 'fsl_unia.h' file not found
#include "fsl_unia.h"
^~~~~~~~~~~~
1 error generated.
Please check the codebase whether fsl_unia.h is added properly.

Haskell and postgresql - build error "The program pg_config is required but it could not be found."

I am currently learning haskell and just tried using postgresql as a database.
I generated my project with stack (stack new <name> -> stack setup -> stack build)
and then all I changed was adding the dependencies needed to persistent and postgresql to the
package.yaml file (under "dependencies:").
These are:
persistent
persistent-postgresql
persistent-template
This however results in a failing build with the following message:
postgresql-libpq > setup.exe: The program 'pg_config' is required but it could not be found.
postgresql-libpq >
-- While building package postgresql-libpq-0.9.4.2 using:
C:\Users\\AppData\Local\Temp\stack14388\postgresql-libpq-0.9.4.2.stack-work\dist\e626a42b\setup\setup --builddir=.stack-work\dist\e626a42b configure --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\365a3dde\pkgdb --libdir=C:\sr\snapshots\365a3dde\lib --bindir=C:\sr\snapshots\365a3dde\bin --datadir=C:\sr\snapshots\365a3dde\share --libexecdir=C:\sr\snapshots\365a3dde\libexec --sysconfdir=C:\sr\snapshots\365a3dde\etc --docdir=C:\sr\snapshots\365a3dde\doc\postgresql-libpq-0.9.4.2 --htmldir=C:\sr\snapshots\365a3dde\doc\postgresql-libpq-0.9.4.2 --haddockdir=C:\sr\snapshots\365a3dde\doc\postgresql-libpq-0.9.4.2 --dependency=Cabal=Cabal-2.4.1.0-5rQrtDcYhR2LOcYye7obEr --dependency=Win32=Win32-2.6.1.0 --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 -f-use-pkg-config --extra-include-dirs=C:\Users\\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-lib-dirs=C:\Users\\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
Does anyone know how to resolve this issue and why it even occurs?
Do I have to install postgresql just for being able to run build the project? If so, how would you
do this in production, when the database could basically lie everywhere?
It looks like Haskell is trying to build with the PostgreSQL client shared library libpq.dll and uses pg_config at build time to determine where PostgreSQL is installed and how it was built.
That would mean that you have to install PostgreSQL on the machine where you build Haskell, including the header files, build environment or however it is called by the installer.
For running Haskell you would only need libpq.dll and the dependent shared libraries.
I solved the issue in Ubuntu with the following command:
apt install libpq-dev

SIGSEGV signal while executing "Eclipse Application" run configuration for my Xtext project

Since my computer has been updated to Mojave (macOS), I get the following error when I am trying to execute an Xtext project (Run As -> Eclipse Application):
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007fff51115248, pid=10464, tid=775
JRE version: Java(TM) SE Runtime Environment (11.0.1+13) (build 11.0.1+13-LTS)
Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.1+13-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
Problematic frame:
C [CoreFoundation+0x8248] CFDictionaryGetValue+0xb
No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
An error report file with more information is saved as:
/Applications/Eclipse.app/Contents/MacOS/hs_err_pid10464.log
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
Unfortunately, I do not have so much information to share.
Here my setup:
Mojave, v. 10.14.1
Eclipse DSL Tools, v: 2018-09 (4.9.0), Build id: 20180917-1800
java version "11.0.1" 2018-10-16 LTS, Oracle one
What I have tested:
Running the ulimit -c unimited command
Reinstalling Eclipse
Reinstalling my JDK. I also tested on OpenJDK.
Running on a fresh computer. I don't have the bug on macOs Sierra.
I tested the solution mention here:
how to fix “Failed to write core dump. Core dumps have been disabled” error while running java
Thanks for your help.
#Christian Dietrich: many thanks for the link!
Here the current workaround explained in the link: to add the '-nosplash' in Arguments tab of run configuration.

Unity - Failed to compile resources with the following parameters:

I'm working on adding Google Play Game Services to a Unity project.
Started getting these errors recently, however not sure if it is because of the Game Services, or could be I updated my machine.
The following in Console output:
Failed to compile resources with the following parameters:
-bootclasspath "/Users/alex/development/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-21/android.jar"
-d "/Users/alex/Documents/development/unity/Maze/Maze/Temp/StagingArea/bin/classes"
-source 1.6 -target 1.6 -encoding UTF-8 "com/facebook/android/R.java" "com/google/android/gms/R.java"
"com/google/example/games/basegameutils/R.java"
"com/google/example/games/mainlibproj/R.java"
"com/mildspring/maze/R.java" warning:
java/lang/Object.class(java/lang:Object.class): major version 51 is
newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded. 1 warning
UnityEditor.HostView:OnGUI()
Error building Player: UnityException: Resource compilation failed!
Failed to recompile android resource files. See the Console for
details.
Got my answer, the issue was that "major version 51" is java 1.7, "version 50" is java 1.6. The solution was to install Java 1.7 and set path accordingly with the following command.
sudo ln -nsf /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
For me, changing the JDK path at Preferences => External Tools => JDK finally resolved this issue. Creating the symbolic link wasn't enough or possibly not even needed.
I would just re-install or update JDK , And its work
http://www.oracle.com/technetwork/java/javase/downloads/index.html

Installing Java on Chroot Solaris

I have recently created a chrooted environment on a Solaris 10 box. If have installed jdk 7 to this 'jail'. It is not running. When I try ./java -version, I get the following error:
guarantee(mem_serialize_page != NULL) failed: mmap Failed for memory serialize page
The log file doesn't help either. Have any of you seen this error before? I have tried Googling it but there is very little information on it.
A fatal error has been detected by the Java Runtime Environment:
Internal Error (os_solaris.cpp:4995), pid=817, tid=2
guarantee(mem_serialize_page != NULL) failed: mmap Failed for memory serialize page
JRE version: 7.0-b147
Java VM: Java HotSpot(TM) Client VM (21.0-b17 mixed mode, sharing solaris-x86 )
Core dump written. Default location: /jdk1.7.0/bin/core or core.817
Have you included links to /dev and /devices in your chroot environment? How about /proc?