Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sci-mathematics/maxima: emerge fails [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Thu Nov 30, 2006 7:11 am    Post subject: sci-mathematics/maxima: emerge fails [solved] Reply with quote

Copied from Portage & Programming -> error emerging maxima:

On x86 maxima-5.10.0 [~ppc] builds fine, on ppc not, it just hangs with this last message:
Code:
;      - Loading binary file "binary-gcl/bessel.o"
Loading binary-gcl/bessel.o
start address -T 0x11fa7000 Finished loading binary-gcl/bessel.o

;      - Compiling source file
;        "/var/tmp/portage/maxima-5.10.0/work/maxima-5.10.0/src/ellipt.lisp"
Compiling /var/tmp/portage/maxima-5.10.0/work/maxima-5.10.0/src/ellipt.lisp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
Finished compiling binary-gcl/ellipt.o.

;      - Loading binary file "binary-gcl/ellipt.o"
Loading binary-gcl/ellipt.o
reloc for R_PPC_REL24 is overflowing
Error in FUNCALL [or a callee]: Cannot get relocated section contents


Fast links are on: do (use-fast-links nil) for debugging
Broken at CONDITIONS::CLCS-LOAD.
 1 (Continue) Retry loading file "binary-gcl/ellipt.o".
 2 (Abort) Return to debug level 1.
 3 Return to top level.
dbl:>>>Y

I tried also with G3 profile defaults.
Useflags are as follows:
Code:
# emerge -auNDtv maxima

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

Calculating dependencies... done!
[ebuild  N    ] sci-mathematics/maxima-5.10.0  USE="nls tetex unicode -auctex -clisp (-cmucl) -emacs -gcl -sbcl -tk" LINGUAS="-es -pt" 0 kB


The stable maxima-5.9.1 [ppc] fails like this:
Code:
config.status: creating demo/Makefile
config.status: creating plotting/Makefile

Summary:
CMUCL enabled. Executable name: "lisp"
cmucl runtime is ""
default lisp: cmucl
wish executable name: "wish"
Making all in src
make[1]: Entering directory `/var/tmp/portage/maxima-5.9.1/work/maxima-5.9.1/src'
test -d binary-cmucl || mkdir binary-cmucl
test -d binary-cmucl/numerical || mkdir binary-cmucl/numerical
test -d binary-cmucl/numerical/slatec || mkdir binary-cmucl/numerical/slatec
(echo '(progn (load "../lisp-utils/defsystem.lisp") (funcall (intern "OPERATE-ON-SYSTEM" :mk) "maxima" :compile :verbose t))' | lisp -noinit -batch) && \
        (echo '(progn (load "../lisp-utils/defsystem.lisp") (funcall (intern "OPERATE-ON-SYSTEM" :mk) "maxima" :load :verbose t) (ext:save-lisp "binary-cmucl/maxima.core"))' | lisp -noinit -batch)
/bin/sh: lisp: command not found
make[1]: *** [binary-cmucl/maxima.core] Error 127
make[1]: Leaving directory `/var/tmp/portage/maxima-5.9.1/work/maxima-5.9.1/src'
make: *** [all-recursive] Error 1

!!! ERROR: sci-mathematics/maxima-5.9.1 failed.

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme


Last edited by Massimo B. on Fri Dec 01, 2006 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 424

PostPosted: Thu Nov 30, 2006 2:43 pm    Post subject: Reply with quote

It seems like you have a lisp problem to me... perhaps you should add a USE flag to a specific lisp? I think your flags should choose one lisp (and one only). Try adding clisp, it works for me, though I'm not on ppc. (The other USE flags for lisp are cmucl gcl sbcl)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Nov 30, 2006 3:02 pm    Post subject: Reply with quote

The first issue is either an -fPIC issue (missing the flags) or the binary is > 40 megabytes, I'd have to look at the build results to be sure. As for the second issue, try enabling the gcl useflag since gcl is what's used when you don't pick any of the lisp packages.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Nov 30, 2006 11:31 pm    Post subject: Reply with quote

Also I personally noticed at some point that installing maxima over an existing
version was failling (on ppc) removing it and reinstalling it worked - on the other
hand that problem did go away sometime ago

At the moment I am using the ebuild from the gentoo-science overlay.
I am on a G4 and use the following:
Code:
emerge -pv maxima

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

Calculating dependencies... done!
[ebuild   R   ] sci-mathematics/maxima-5.10.0  USE="auctex clisp emacs nls tetex tk unicode (-cmucl) -gcl -sbcl" LINGUAS="-es -pt" 0 kB [2]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
 [2] /usr/portage/local/layman/science

So it looks like I use clisp as well rather than gcl, which is currently not installed on my
machine. auctex and tetex are useful for having nice display in emacs and the like I think.
For the front end I use wxmaxima which is also currently in the gentoo-science overlay
(someone is very sloppy over there you have to recreate your digest manually for the ebuild
to work).
Just as an add-on this is my setting for clisp:
Code:
emerge -pv clisp

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

Calculating dependencies... done!
[ebuild   R   ] dev-lisp/clisp-2.38  USE="X pcre readline zlib -fastcgi -postgres" 0 kB
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Fri Dec 01, 2006 7:40 pm    Post subject: Reply with quote

maxima-5.10.0 with USE "clisp" built fine. Thanks.

But I'm interested in the science overlay now providing the wxmaxima gui. If both portage and overlay provide the same version 5.10.0 is the ebuild the same? checksums are different, I checked that.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sat Dec 02, 2006 4:12 am    Post subject: Reply with quote

The ebuilds look "cosmetically" different I must admit. I just use the
science overlay one because it is shadowing the one in the tree.
If you are interested here is the diff between the 2:
Code:
diff /usr/portage/sci-mathematics/maxima/maxima-5.10.0.ebuild /usr/portage/local/layman/science/sci-mathematics/maxima/maxima-5.10.0.ebuild
3c3
< # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.10.0.ebuild,v 1.1 2006/10/31 11:24:06 je_fro Exp $
---
> # $Header: $
15a16
> # rlwrap is recommended for cmucl and sbcl
26a28
>
44,45c46
<
< # automake version mismatch otherwise (sbcl only)
---
>       # automake version mismatch otherwise (sbcl only)
48c49
< # remove rmaxima if neither cmucl nor sbcl
---
>       # remove rmaxima if neither cmucl nor sbcl
53c54
< # remove xmaxima if no tk in USE
---
>       # remove xmaxima if no tk
62c63
< # enable gcl if no other lisp is selected
---
>       # enable gcl if no other lisp selected
69c70
<       myconf="${myconf} --enable-gcl"
---
>               myconf="${myconf} --enable-gcl"
72c73
< # use existing translated docs
---
>       # enable existing translated doc
83,87c84,88
<       $(use_enable cmucl) \
<       $(use_enable clisp) \
<       $(use_enable sbcl) \
<       ${myconf} \
<       || die "econf failed"
---
>               $(use_enable cmucl) \
>               $(use_enable clisp) \
>               $(use_enable sbcl) \
>               ${myconf} \
>               || die "econf failed"
114,115c115
< # some lisp do not gunzip info files on the fly
<
---
>       # some lisp do not gunzip info files on the fly
124d123
<
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Sat Dec 02, 2006 12:28 pm    Post subject: Reply with quote

wxmaxima is working with maxima 5.10.0 (from portage).
But anyway how do you prefer the overlay version over portage version?
Besides will there be any upstream for the maxima project?

As for the USE "clisp" issue on ppc I did a bugreport.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sat Dec 02, 2006 8:57 pm    Post subject: Reply with quote

paoleela wrote:
wxmaxima is working with maxima 5.10.0 (from portage).
But anyway how do you prefer the overlay version over portage version?

As far as I know you don't. If there are 2 ebuilds with the exact same version
in portage and an overlay the overlay is favored. Don't know what happens with 2
overlays. Probably the last overlay in the list will be used and I don't know how
layman oder its overlays.

paoleela wrote:
Besides will there be any upstream for the maxima project?

Not sure about that. I wouldn't think maxima would go away any time soon.
scilab and octave offer similar capabilities.

As for the overlays some cleaning is in order when there is the kind of conflict of versions.
I may volunter over there to do some minor cleaning and possibly put my own ebuilds :wink:
Also someone put a new version of qtiplot in sunrise but really that should belong to science.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Sat Dec 02, 2006 10:03 pm    Post subject: Reply with quote

But an emerge --update did not favour the new overlay ebuild (version being the same).

octave and scilab are like matlab, they don't know about algebra and symbolic calculation as far as I know. CAS are computer algebra systems like maple or mathematica and also the oldest one maxima etc.
The other way around maxima can also calculate with values like matlab.

Thanks for the hint, with wxmaxima it's far more comfortable to use.

Actually there is no real science sub forum, like there is the #gentoo.science channel.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sat Dec 02, 2006 10:23 pm    Post subject: Reply with quote

paoleela wrote:
But an emerge --update did not favour the new overlay ebuild (version being the same).

Probably not that strange. It's the same version number, an "emerge -pv maxima" to check what would be rebuild
may give a different answer.

paoleela wrote:
octave and scilab are like matlab, they don't know about algebra and symbolic calculation as far as I know. CAS are computer algebra systems like maple or mathematica and also the oldest one maxima etc.
The other way around maxima can also calculate with values like matlab.

I am myself a mathematica person, but being on ppc at work that means switching back to OSX to
use mathematica 4.2 or connecting to some colleagues (x86) linux machine to use version 5.x.
And sometimes just using maxima is enough but I miss the flexibility of mathematica notebooks.
I have limited experience with scilab, octave and mathlab (even thought the university has a site wide license
and the students have access to it) but I thought they, or some of them, had some symbolic capabilities.

paoleela wrote:
Actually there is no real science sub forum, like there is the #gentoo.science channel.

May be we should lobby for one :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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