Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62124 - mpqc on ppc64: ClassDesc::load_class looking for "./classes"
Summary: mpqc on ppc64: ClassDesc::load_class looking for "./classes"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-29 10:43 UTC by boris
Modified: 2005-06-11 09:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
test4.in (test4.in,1.32 KB, text/plain)
2005-05-15 03:23 UTC, Markus Rothe (RETIRED)
Details
mpqc-ebuild.patch (mpqc-ebuild.patch,1.26 KB, text/plain)
2005-05-18 12:29 UTC, Markus Rothe (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description boris 2004-08-29 10:43:58 UTC
When I emerge mpqc-2.2.2 on my ppc64 system (Dual G5 Mac) and run the binary:

ClassDesc::load_class looking for "./classes"
ClassDesc::load_class("CLKS"): load failed
Either "CLKS" is an invalid class name or the code
for "CLKS" was not linked into the executable.
Segmentation fault
....

When I add --enable-shared to configure in mpqc-2.2.2.ebuild and emerge
again - the binary work as expected.


Reproducible: Always
Steps to Reproduce:
1.emerge mpqc
2.mpqc test.in
3.

Actual Results:  
mpqc test.in
[cut cut]
ClassDesc::load_class looking for "./classes"
ClassDesc::load_class("CLKS"): load failed
Either "CLKS" is an invalid class name or the code
for "CLKS" was not linked into the executable.
Segmentation fault


Expected Results:  
mpqc test.in
[cut cut]
  Reading file /usr/share/mpqc/2.2.2/atominfo.kv.
  Molecule: setting point group to c1

  IntCoorGen: generated 119 coordinates.
  Forming optimization coordinates:
[cut cut]


gcc-3.4.1; binutils-2.15.90.0.3-r3; CFLAGS="-O2";
Comment 1 Tom Gall (RETIRED) gentoo-dev 2004-08-29 18:48:45 UTC
moving this over to ppc64, where it looks like it belongs.
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2005-05-10 11:48:17 UTC
can you please provide that test.in file.

Also mpqc-2.2.3 has been released some while ago, but is not yet in portage. Could you try this version?
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2005-05-12 23:07:21 UTC
as I don't have a test case and the user doesn't submit the test.in, I cannot test this. Please reopen if a test case is provided.
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2005-05-15 03:21:32 UTC
boris provided me a test4.in. thanks!
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2005-05-15 03:23:42 UTC
Created attachment 58941 [details]
test4.in

The test4.in for testing. We'll have to wait for 2.2.3 to get into portage
untill we can test that. maybe it is fixed.. I just don't want to spend time on
a bug, which might be already fixed in a newer version. ;-)
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2005-05-18 11:58:05 UTC
how about adding IUSE="static" and build the package shared without that set.
Something like: if ! ( use static && use ppc64 ) then ...
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2005-05-18 12:29:53 UTC
Created attachment 59233 [details]
mpqc-ebuild.patch

this is a diff which applies against mpqc-2.2.2-r1.ebuild and makes use of
--enable-shared. now test4.in works for me.

basicly the solution was given in the bug report itself.. thx! ;-)
Comment 8 Markus Rothe (RETIRED) gentoo-dev 2005-06-11 09:24:45 UTC
I finaly could run `mpqc test4.in` with success! 
 
I've added a patch to the ebuild so that --enable-shared is used on ppc64.  
  
sorry, that this took so so so long.. 
 
also added ~ppc64 of cause.