Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved, but not sure how] Opencascade Can't Find VM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 229
Location: West Grove, PA

PostPosted: Sat Feb 28, 2015 9:43 pm    Post subject: [Solved, but not sure how] Opencascade Can't Find VM Reply with quote

Opencascade 6.8.0 won't build for me. it dies very quickly with a complaint that it can't find my java virtual machine.

Here is the error message:

>>> Emerging (1 of 1) sci-libs/opencascade-6.8.0::gentoo
* opencascade-6.8.0.tgz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* Checking for at least 256 MiB RAM ... [ ok ]
* Checking for at least 3584 MiB disk space at "/var/tmp/portage/sci-libs/opencascade-6.8.0/temp" ... [ ok ]
!!! ERROR: Couldn't find a VM dep
* Unable to determine VM for building from dependencies:
NV_DEPEND: app-admin/eselect-opencascade
dev-lang/tcl
dev-lang/tk
dev-tcltk/itcl
dev-tcltk/itk
dev-tcltk/tix
media-libs/ftgl
virtual/glu
virtual/opengl
x11-libs/libXmu
freeimage? ( media-libs/freeimage )
gl2ps? ( x11-libs/gl2ps )
java? ( virtual/jdk:= )
tbb? ( dev-cpp/tbb ) !<sys-devel/gettext-0.18.1.1-r3
|| ( >=sys-devel/automake-1.13:1.13 >=sys-devel/automake-1.15:1.15 )
>=sys-devel/autoconf-2.69
>=sys-devel/libtool-2.4 java? ( >=dev-java/java-config-2.1.9-r1 )
* ERROR: sci-libs/opencascade-6.8.0::gentoo failed (setup phase):
* Failed to determine VM for building.
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* opencascade-6.8.0.ebuild, line 43: Called java-pkg-opt-2_pkg_setup
* java-pkg-opt-2.eclass, line 48: Called java-pkg_init
* java-utils-2.eclass, line 2065: Called java-pkg_switch-vm
* java-utils-2.eclass, line 2538: Called die
* The specific snippet of code:
* die "Failed to determine VM for building."
*
* If you need support, post the output of `emerge --info '=sci-libs/opencascade-6.8.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sci-libs/opencascade-6.8.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM= CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =opencascade-6.8.0
* The complete build log is located at '/var/log/portage/sci-libs:opencascade-6.8.0:20150228-201319.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-libs/opencascade-6.8.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-libs/opencascade-6.8.0/temp/die.env'.
* Working directory: '/usr/lib64/python3.3/site-packages'
* S: '/var/tmp/portage/sci-libs/opencascade-6.8.0/work/opencascade-6.8.0'



Checking the java VM I get this result:

#java-config --list-available-vms
The following VMs are available for generation-2:
*) IcedTea JDK 7.2.5.3 [icedtea-bin-7]

I verified that IcedTea is active.
#java-config -f
icedtea-bin-7


Reinstalling jdk didn't help.


Anybody have any suggestions?

TIA!
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation


Last edited by Vorlon on Sun Apr 26, 2015 7:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
83657664
n00b
n00b


Joined: 16 Mar 2011
Posts: 50

PostPosted: Mon Mar 09, 2015 4:04 am    Post subject: Reply with quote

i have the same problem,
i didn't know what happened?
anyone here?
help???
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 229
Location: West Grove, PA

PostPosted: Mon Mar 09, 2015 9:36 am    Post subject: Reply with quote

No solution yet, but there is a bug report for this problem.

https://bugs.gentoo.org/show_bug.cgi?id=541644
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
A.S. Pushkin
Guru
Guru


Joined: 09 Nov 2002
Posts: 301
Location: dx/dt, dy/dt, dz/dt, t

PostPosted: Sat Apr 04, 2015 10:08 pm    Post subject: Opencascade Can't Find VM Reply with quote

Just thought I'd third this problem, though I-m running dev-java/icedtea-bin- 6.1.13.5

Previously, my problems were related to not having enough disk space to compile. (I resized all my partitions to fix that issue.)

I'm using OpenCascade for Freecad.

Thanks.
_________________
ASPushkin

"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
Back to top
View user's profile Send private message
Biker
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 165
Location: A very dark, cold and moisty place...

PostPosted: Thu Apr 16, 2015 11:23 am    Post subject: Re: Opencascade Can't Find VM Reply with quote

A.S. Pushkin wrote:

I'm using OpenCascade for Freecad.


It's quite tricky to get a working installation of a good 3D CAD program in Gentoo. Seems like very few users do these things. Guess Web browsing and email is what people do most. Getting FreeCAD or BRL-CAD to install is close to a nightmare. ;-)

Regards
Biker
_________________
The Internet never forgets.
Where 'never' points in the direction of a moment in the very, very far future.
Back to top
View user's profile Send private message
Biker
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 165
Location: A very dark, cold and moisty place...

PostPosted: Thu Apr 16, 2015 1:27 pm    Post subject: Reply with quote

Vorlon wrote:
No solution yet, but there is a bug report for this problem.

https://bugs.gentoo.org/show_bug.cgi?id=541644


I went so far as to vote for the bug, or more precise, to vote for the importance of it's solution.

Regards
Biker
_________________
The Internet never forgets.
Where 'never' points in the direction of a moment in the very, very far future.
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 229
Location: West Grove, PA

PostPosted: Thu Apr 16, 2015 6:10 pm    Post subject: Reply with quote

I've been reduced to running FreeCAD in a VM on Debian. FreeCAD is not a speed-demon as it is (being a single-threaded application), but running it in a virtual machine is even slower <sigh>.


The worst part is, I __HAD__ it running a while ago and it got broke after a system update.
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
Biker
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 165
Location: A very dark, cold and moisty place...

PostPosted: Thu Apr 16, 2015 6:56 pm    Post subject: Reply with quote

Vorlon wrote:
I've been reduced to running FreeCAD in a VM on Debian.


Yeah, I think Debian has something they call a 'stable branch'.
_________________
The Internet never forgets.
Where 'never' points in the direction of a moment in the very, very far future.
Back to top
View user's profile Send private message
Biker
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 165
Location: A very dark, cold and moisty place...

PostPosted: Wed Apr 22, 2015 6:42 am    Post subject: Re: Opencascade Can't Find VM Reply with quote

Biker wrote:
Getting FreeCAD or BRL-CAD to install is close to a nightmare.


Concerning BRL-CAD, I got it running again, after applying my 'dirty work-around' as explained in my bug report at https://bugs.gentoo.org/show_bug.cgi?id=547322. (The bug is not 'CONFIRMED' yet, so we'll have to wait and see.)

At least, I can use an old and outdated version of BRL-CAD (7.18.4) today.

There was a 'version bump' requested two years ago (!!) at https://bugs.gentoo.org/show_bug.cgi?id=467456 but it's still 'CONFIRMED' and no action seems to have been taken. At least, no progress has been communicated in the 'bump' request. Other users have pointed out that additional releases have been made available upstream during these years, but still there seems to be no official significant reaction reported in the request.

I wish they would at least have the energy to change the request to 'WONTFIX' and close the two year old request if that is what is going to be. It would be more straight than just pretending "There's nothing to see here. Circulate.".


The bug report at https://bugs.gentoo.org/show_bug.cgi?id=541644 concerning opencascade is less than two months old today, but it contained a pretty detailed pin-point of the problem. Since it's concerning a library that is probably used by a number of applications, one may hope the bug will get a higher priority.


Biker
_________________
The Internet never forgets.
Where 'never' points in the direction of a moment in the very, very far future.
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 229
Location: West Grove, PA

PostPosted: Sun Apr 26, 2015 7:43 pm    Post subject: Reply with quote

Well, I got it to build, but I'm not really sure why.


I was having trouble upgrading my entire Gentoo system due to multilib problems since Gentoo changed the whole multilib setup. I therefore decided to do a fresh install (which I enjoy doing a couple of times per year anyway).

Lo and behold, opencascade built just fine.

From there, it wasn't hard to get freecad-9999 to build (but I had to install pyside-tools first).
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
jserink
l33t
l33t


Joined: 30 Jan 2004
Posts: 933

PostPosted: Wed Aug 12, 2015 3:26 am    Post subject: Exactly the same error here on building 6.9.0 Reply with quote

It says it can't find the VM but the VM is there:
jserinki7 jserink # eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-6
[2] icedtea-bin-7 system-vm

So I unmerged my icedtea-bin-6* so that my java looks like this now:
jserinki7 jserink # eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-7 system-vm

Still no joy:
>>> Emerging (1 of 1) sci-libs/opencascade-6.9.0::gentoo
* opencascade-6.9.0.tgz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* Checking for at least 256 MiB RAM ... [ ok ]
* Checking for at least 3584 MiB disk space at "/tmp/portage/sci-libs/opencascade-6.9.0/temp" ... [ ok ]
!!! ERROR: Couldn't find a VM dep
* Unable to determine VM for building from dependencies:
NV_DEPEND: app-eselect/eselect-opencascade
dev-lang/tcl:0=
dev-lang/tk:0=
dev-tcltk/itcl
dev-tcltk/itk
dev-tcltk/tix
media-libs/ftgl
virtual/glu
virtual/opengl
x11-libs/libXmu
freeimage? ( media-libs/freeimage )
gl2ps? ( x11-libs/gl2ps )
java? ( virtual/jdk:= )
tbb? ( dev-cpp/tbb )
vtk? ( =sci-libs/vtk-6.1* ) !<sys-devel/gettext-0.18.1.1-r3
|| ( >=sys-devel/automake-1.15:1.15 )
>=sys-devel/autoconf-2.69
>=sys-devel/libtool-2.4 java? ( >=dev-java/java-config-2.2.0 )

But I think the clue is there, the java? line, specifically the virtual/jdk line.
jserinki7 vde # equery list virtual/jdk
* Searching for jdk in virtual ...
[I-O] [ ] virtual/jdk-1.6.0-r2:1.6
[I-O] [ ~] virtual/jdk-1.7.0:1.7


I'm going to dump the 1.6:
jserinki7 vde # emerge -C virtual/jdk-1.6.0-r2
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.

virtual/jdk
selected: 1.6.0-r2
protected: none
omitted: 1.7.0

All selected packages: =virtual/jdk-1.6.0-r2

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) virtual/jdk-1.6.0-r2...

* GNU info directory index is up-to-date.
Have a look now:
jserinki7 vde # equery list virtual/jdk
* Searching for jdk in virtual ...
[I-O] [ ~] virtual/jdk-1.7.0:1.7

Ok, just as an after thought I thought I should try and reset the java-vm:
jserinki7 jserink # eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-7 system-vm

jserinki7 jserink # eselect java-vm set 1
!!! Error: Usage [user|system] [vm]
exiting

Hmmmm.... there seems to be a 'system' vm and a 'user' vm.
jserinki7 jserink # eselect java-vm set system 1
jserinki7 jserink # eselect java-vm set user 1
!!! Error: Sorry, you cannot set a user vm as root. Set the system vm instead
exiting

Ok, get out of root....
jserink@jserinki7 ~ $ eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-7 system-vm
jserink@jserinki7 ~ $ eselect java-vm set user 1
jserink@jserinki7 ~ $ eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-7 system-vm user-vm



Ok, try and build opencascade again.....
failed again.

Ok, try this:
jserinki7 jserink # java-config --set-system-vm icedtea-bin-7
Now using icedtea-bin-7 as your generation-2 system JVM
jserinki7 jserink # java-config --list-available-vms
The following VMs are available for generation-2:
*) IcedTea JDK 7.2.5.5 [icedtea-bin-7]


Still failed.
Look at libtool....
jserinki7 jserink # equery list libtool
* Searching for libtool ...
[IP-] [ ] sys-devel/libtool-2.4.6:2
jserinki7 jserink # equery uses libtool
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for sys-devel/libtool-2.4.6:
U I
- - vanilla : Do not add extra patches which change default behaviour; DO NOT
USE THIS ON A GLOBAL SCALE as the severity of the meaning
changes drastically

Hmmm....... no use flags to screw up on libtool.
How about java-config...
jserinki7 jserink # equery uses java-config
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for dev-java/java-config-2.2.0:
U I
+ + python_targets_python2_7 : Build with Python 2.7
- + python_targets_python3_3 : Build with Python 3.3
+ - python_targets_python3_4 : Build with Python 3.4


Ahhhhhhh......
I recently upgraded to Python 3.4 from 3.3.....is that the problem?
jserinki7 jserink # emerge -pv java-config

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] dev-java/java-config-2.2.0:2::gentoo PYTHON_TARGETS="python2_7 python3_4* -python3_3*" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

So, java-config needs to be rebuilt. Ok, lets do that.
I would have thought pythonupdater would have caught that, but never mind.

Ok, opencascade emerge attempt again....failed again.
But wait, lets run java-config with the new and updated java-config:
jserinki7 jserink # java-config --list-available-vms
The following VMs are available for generation-2:
*) IcedTea JDK 7.2.5.5 [icedtea-bin-7]
jserinki7 jserink # java-config --set-system-vm icedtea-bin-7
Now using icedtea-bin-7 as your generation-2 system JVM
jserinki7 jserink # java-config --list-available-vms
The following VMs are available for generation-2:
*) IcedTea JDK 7.2.5.5 [icedtea-bin-7]
jserinki7 jserink # eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-7 system-vm


Ok, try again:
Failed.

Right, try closing the terminal and opening up a new once in case environment variables have changed since updating the VM.
Nope, still failes......
note this in the error dump:
!!! When you file a bug report, please include the following information:
GENTOO_VM= CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""

And note my values:
jserinki7 jserink # echo $GENTOO_VM

jserinki7 jserink # echo $CLASSPATH

jserinki7 jserink # echo $JAVA_HOME
/etc/java-config-2/current-system-vm
jserinki7 jserink # echo $JAVACFLAGS

jserinki7 jserink # echo $COMPILER

jserinki7 jserink #

They are all empty.

Not sure where to go from here.
Thoughts?

Cheers,
john
Back to top
View user's profile Send private message
jserink
l33t
l33t


Joined: 30 Jan 2004
Posts: 933

PostPosted: Wed Aug 12, 2015 3:43 am    Post subject: SOLVED....sort of Reply with quote

The meat and potatoes can be found here:
https://bugs.gentoo.org/show_bug.cgi?id=541644

See comment 1 in the bug comments...I hand hacked the ebuild as per the comment:
jserinki7 jserink # vi /usr/portage/sci-libs/opencascade/opencascade-6.9.0.ebuild
jserinki7 jserink # ebuild /usr/portage/sci-libs/opencascade/opencascade-6.9.0.ebuild manifest
>>> Creating Manifest for /usr/portage/sci-libs/opencascade
jserinki7 jserink #


Recomputed the ebuild manifest and opencascade is now building nicely.

That was an intense 90 minutes...

:)
John
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum