First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 141206
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Mathematics related packages <sci-mathematics@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Soroosh Yazdani <syazdani@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pari-2.3.0.ebuild sci-mathematics/pari-2.3.0.ebuild text/plain Soroosh Yazdani 2006-07-20 13:42 0000 2.65 KB Details
sparc-pari-2.3.2.patch Allow FEATURES=test to work on sparc for pari-2.3.2 patch Ferris McCormick 2007-09-14 14:02 0000 459 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 141206 depends on: Show dependency tree
Show dependency graph
Bug 141206 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-07-20 13:40 0000
Hi,

here is an ebuild for compiling pari-2.3.0. The ebuild is copied from
pari-2.1.*, but I had to change a few changes to make pari compile on my
system. I don't know if that will compile for all systems or not. I will add
more use flags to the ebuild soon. (For the record, I'm using gcc 4.1.0, on an
amd64 computer. I like others to test this ebuild on other systems, and send me
feedback.)

Here is a description of pari, copied from their website: 
PARI/GP is a widely used computer algebra system designed for fast computations
in number theory (factorizations, algebraic number theory, elliptic curves...),
but also contains a large number of other useful functions to compute with
mathematical entities such as matrices, polynomials, power series, algebraic
numbers, etc., and a lot of transcendental functions.

------- Comment #1 From Soroosh Yazdani 2006-07-20 13:42:29 0000 -------
Created an attachment (id=92342) [edit]
sci-mathematics/pari-2.3.0.ebuild

------- Comment #2 From Jakub Moc (RETIRED) 2006-07-20 13:52:11 0000 -------
*** Bug 121466 has been marked as a duplicate of this bug. ***

------- Comment #3 From Markus Dittrich 2006-07-23 04:33:36 0000 -------
Hi Soroosh,

Thank you very much for your ebuild. I've just committed a 
pari-2.3.0 ebuild to portage. It is currently package.mask'ed
pending further testing. Please give it a try and report back.

Thanks,
Markus

------- Comment #4 From Andrey Grozin 2006-08-10 11:46:54 0000 -------
Works for me (x86, gcc-3.4.6-r1). Please don't gzip *.pdf documentation.
Andrey

------- Comment #5 From Marti Raudsepp 2006-08-10 12:26:56 0000 -------
Could this ebuild adopt the 'gmp' USE flag from bug 121466? The GMP kernel is
generally quicker in terms of raw computation throughput, ref:
http://pari.math.u-bordeaux.fr/benchs/timings-int.html

------- Comment #6 From Markus Dittrich 2006-08-23 12:07:12 0000 -------
Hi folks,

I just removed pari-2.3.0 from package.mask. Sorry it took so long
but it somehow disappeared from my radar screen. 

@ Marti: As soon as I have some time I will have a look at the gmp 
kernel stuff.

Thanks,
Markus

------- Comment #7 From Ferris McCormick 2006-08-24 05:11:29 0000 -------
Reopening ---
On sparc, this version of pari seems to build fine, but at install, we get:
========================================

ln -s Olinux-sparc64/gp-dyn ../gp
make: `../gp' is up to date.
>>> Source compiled.
 * Testing pari kernel ...
make: *** [test-kernel] Error 1                                                
                                  [ !! ]

>>> Install pari-2.3.0 into /var/tmp/portage/pari-2.3.0/image/ category sci-mathematics
Making install in Olinux-sparcv9
Please run Configure first!
make: *** [install] Error 1

!!! ERROR: sci-mathematics/pari-2.3.0 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_install
  ebuild.sh, line 1017:   Called src_install
  pari-2.3.0.ebuild, line 73:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if
relevant.
===============================================
This is with FEATURES=test, but that is not relevant to the failure:
pari has built in Olinux-sparc64, but wants to install from Olinux-sparcv9, and
FEATURES=test fails because of this mismatch.

Comparing with pari-2.1.7-r1 suggests that the correct build directory is
Olinux-sparc64, and the Olinux-sparcv9 is a regression to an earlier failure
which, I believe, Jason Wever fixed once upon a time.

Note that with pari-2.1.7-r1, FEATURES=test doesn't test anything, but if we
make test-compat
make bench
they both run without error on sparc+pari-2.1.7-r1

With pari-2.3.0,  by playing with the files in config so that arch-osname
returns sparc64 instead of sparcv9, things work better, but either the tests
(make bench & make test-compat) nor run for a VERY long time or the never
terminate.  Specifically, for make test-bench, we see
* Testing nfields       for gp-sta..
forever.
Otherwise, benchmark tests with 2.3.0 are significantly faster than with
2.1.7-r1.

The fix for getting 2.3.0 to install on sparc/linux is a matter of getting
everyone to agree on what to call the build directory;  I don't know about the
problems with the tests.  If I get a chance, I'll pursue it, but no promises
unless all tests are known to run successfully on everything else.

------- Comment #8 From Ferris McCormick 2006-08-24 05:24:47 0000 -------
And for what it's worth, on amd64, the build is into Olinux-x86_64, which
suggests that the Olinux-sparcv9 is (1) a regression, and (2) incorrect.
On amd64, both 'make bench' and 'make test-compat' run fine (with the nfields
test taking about 4 or 5 times longer than anything else.  If sparc should show
a similar profile, that means nfields should take perhaps 2 or 3 seconds on
sparc, but if it indeed will ever terminate, the run time for is must be
measured in hours.

------- Comment #9 From P.L.Hayes 2006-08-28 08:51:55 0000 -------
This ebuild doesn't install the documentation properly. It doesn't set GPDOCDIR
- not sure if that's some new requirement in pari-gp - but it doesn't install
the *.dvi files anyway.

(16:46) gp > ??
Could not find translation file, docdir='/usr/bin' at /usr/bin/gphelp line 152.

(16:46) gp > 

------- Comment #10 From Markus Dittrich 2007-07-16 22:53:59 0000 -------
Hi Ferris,

Do these build problems on sparc persists with pari-2.3.2? I would
like to move pari-2.3.2 into stable soon if at all possible.

Thanks much,
Markus

------- Comment #11 From Jeroen Roovers 2007-09-13 16:29:19 0000 -------
(In reply to comment #10)
> Hi Ferris,
> 
> Do these build problems on sparc persists with pari-2.3.2? I would
> like to move pari-2.3.2 into stable soon if at all possible.

No, nothing has changed between 2.3.0 and 2.3.2. Same error messages.

------- Comment #12 From Jeroen Roovers 2007-09-13 18:50:46 0000 -------
According to [1] it's the ebuild that needs to be adapted.


[1] http://www.math.u-bordeaux.fr/~belabas/pari/doc/faq.html#sparc64

------- Comment #13 From Ferris McCormick 2007-09-13 20:13:50 0000 -------
(In reply to comment #12)
> According to [1] it's the ebuild that needs to be adapted.
> 
> 
> [1] http://www.math.u-bordeaux.fr/~belabas/pari/doc/faq.html#sparc64
> 

If I understand the solution in [1], in the ebuild, in the sparc-specific
portion you would somehow want to force the portable native kernel?

the 'make test-kernel' is trying to test Olinux-sparcv9 but pari has built in
Olinux-sparc64, so of course the test can't find the build directory.

As a test, if by hand I 'ln -s Olinux-sparc64 Olinux-sparcv9' then make
test-kernel prints out OK.

On sparc/linux, you always get 32-bin userland, so perhaps you want it to build
Olinux-sparcv9 --- pari does not seem to contain any assembler code, so that
should be OK.

And indeed, if in the ebuild I force
myhost="sparcv9-linux"
when the ebuild detects sparc, everything seems good.  

------- Comment #14 From Markus Dittrich 2007-09-14 12:46:20 0000 -------
That sounds great! Would you be able to whip up a small patch
for sparc that I could apply to the 2.3.2 ebuild?

Thanks,
Markus

------- Comment #15 From Ferris McCormick 2007-09-14 14:02:43 0000 -------
Created an attachment (id=130911) [edit]
Allow FEATURES=test to work on sparc for pari-2.3.2

One-line patch to pari-2.3.2.ebuild which builds into directory Olinux-sparcv9
instead of Olinux-sparc64.  For me, at least, this allows a build of pari to
succeed with FEATURES=test.  So far as I can tell, what gets built remains the
same because a pari build uses CFLAGS, and sparc/linux supports only 32-bit
userland.  Olinux-sparc64 suggests an actual 64-bit version of pari.

------- Comment #16 From Markus Dittrich 2007-09-15 12:41:38 0000 -------
Thanks much, Ferris! This is now in portage.

Seems like we're done with this bug. Should there be additional
problems with sparc and pari please open a new bug.

Thanks,
Markus

First Last Prev Next    No search results available      Search page      Enter new bug