public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] sci-mathematics/reduce on amd64
  2011-10-11  7:43 ` Andrea Arteaga
@ 2011-12-21 10:39   ` Andrey G. Grozin
  2011-12-21 11:01     ` Kacper Kowalik
  0 siblings, 1 reply; 13+ messages in thread
From: Andrey G. Grozin @ 2011-12-21 10:39 UTC (permalink / raw
  To: gentoo-science

Hello *,

Could somebody with amd64 check if sci-mathematics/reduce-20110414 
compiles on this arch? You'll have to keyword it. Upstream says it should 
compile.

Andrey



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-21 10:39   ` [gentoo-science] sci-mathematics/reduce on amd64 Andrey G. Grozin
@ 2011-12-21 11:01     ` Kacper Kowalik
  2011-12-21 11:13       ` Miguel de Val-Borro
  0 siblings, 1 reply; 13+ messages in thread
From: Kacper Kowalik @ 2011-12-21 11:01 UTC (permalink / raw
  To: gentoo-science

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

On 12/21/11 11:39, Andrey G. Grozin wrote:
> Hello *,
> 
> Could somebody with amd64 check if sci-mathematics/reduce-20110414
> compiles on this arch? You'll have to keyword it. Upstream says it
> should compile.

It does and passes test suite. Though it doesn't respect libdir:

/dev/shm/portage/sci-mathematics/reduce-20110414/image/usr/lib/reduce/reduce.fonts/README

Judging by the content it shouldn't be libdir in the first place, rather
/usr/share...
Cheers,
Kacper



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-21 11:01     ` Kacper Kowalik
@ 2011-12-21 11:13       ` Miguel de Val-Borro
  2011-12-21 13:53         ` Andrey G. Grozin
  2011-12-21 14:35         ` Christopher Schwan
  0 siblings, 2 replies; 13+ messages in thread
From: Miguel de Val-Borro @ 2011-12-21 11:13 UTC (permalink / raw
  To: gentoo-science

On Wed, Dec 21, 2011 at 12:01:18PM +0100, Kacper Kowalik wrote:
> On 12/21/11 11:39, Andrey G. Grozin wrote:
> > Hello *,
> > 
> > Could somebody with amd64 check if sci-mathematics/reduce-20110414
> > compiles on this arch? You'll have to keyword it. Upstream says it
> > should compile.
> 
> It does and passes test suite. Though it doesn't respect libdir:
> 
> /dev/shm/portage/sci-mathematics/reduce-20110414/image/usr/lib/reduce/reduce.fonts/README
> 
> Judging by the content it shouldn't be libdir in the first place, rather
> /usr/share...

There is also a warning about an unrecognized configure option:
configure: WARNING: unrecognized options: --with-gui

Here is the full build log on amd64:
http://paste.pocoo.org/show/523967/

Miguel



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-21 11:13       ` Miguel de Val-Borro
@ 2011-12-21 13:53         ` Andrey G. Grozin
  2011-12-21 14:24           ` Burcin Erocal
  2011-12-21 14:35         ` Christopher Schwan
  1 sibling, 1 reply; 13+ messages in thread
From: Andrey G. Grozin @ 2011-12-21 13:53 UTC (permalink / raw
  To: Miguel de Val-Borro; +Cc: gentoo-science

On Wed, 21 Dec 2011, Miguel de Val-Borro wrote:
> There is also a warning about an unrecognized configure option:
> configure: WARNING: unrecognized options: --with-gui
This package is a QA nightmare :-( It bundles modified sources of 
x11-libs/fox (it does not compile with the system fox). First, it compiles 
this bundled fox, and installs it somewhere inside the build tree. Then it 
configures csl (and thus finds this freshly installed fox) and compiles 
it. Then it compiles reduce with csl. During this process, autoconf is 
called from make ("maintainer mode") many times. And each time, the 
arguments of the top-level configure are passed to all configure scripts 
in subdirectories. --with-gui is needed by one configure script (this is 
controlled by the USE flag X; with -X, fox is not built, and csl and 
reduce work at the command line only). But this --with-gui is passed to 
all configure scripts in various directories (fox sources, for example), 
and these scripts don't recognize this option. Ugly, but this works.

> Here is the full build log on amd64:
> http://paste.pocoo.org/show/523967/
Many thanks. Looks OK.

I really want reduce to become more popular. There are only 3 free 
computer algebra systems: maxima, reduce, axiom (I don't count toys like 
yacas; and axiom has forked into axiom, openaxiom, and fricas). reduce is 
mature (from late 60s), powerful and very efficient. So, I have to live 
somehow with the weirdness of its current build system.

I suppose I can keyword it ~amd64, so that more users will have a chance 
to install it.

Andrey



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64 (fwd)
@ 2011-12-21 14:03 Andrey G. Grozin
  2011-12-21 15:30 ` Kacper Kowalik
  0 siblings, 1 reply; 13+ messages in thread
From: Andrey G. Grozin @ 2011-12-21 14:03 UTC (permalink / raw
  To: gentoo-science

On Wed, 21 Dec 2011, Kacper Kowalik wrote:
>> Could somebody with amd64 check if sci-mathematics/reduce-20110414
>> compiles on this arch? You'll have to keyword it. Upstream says it
>> should compile.
> 
> It does and passes test suite. Though it doesn't respect libdir:
> 
> /dev/shm/portage/sci-mathematics/reduce-20110414/image/usr/lib/reduce/reduce.fonts/README
> 
> Judging by the content it shouldn't be libdir in the first place, rather
> /usr/share...
Many thanks for checking.

csl-based reduce, and csl, are really strange. reduce is a compiled binary, and 
it needs to have reduce.img *in the same directory* (same for csl). Both of 
them also want to see reduce.doc and reduce.fonts also in the same directory, 
if they are started in the gui mode (in the command-line mode reduce.fonts and 
reduce.doc are not needed). So, all these files and directories should be 
together somewhere. And not in /usr/share, because reduce is a binary, and 
reduce.img is also processor-dependent, as far as I know. So, I choose 
/usr/lib/reduce; do you have better suggestions? Should it be 
/usr/lib64/reduce on amd64?

Moreover, symlinking /usr/lib/reduce -> /usr/bin/redcsl does not work: the 
program tries to find reduce.img in /usr/bin, and fails. The only way I've 
found is a 2-line script in /usr/bin which execs /usr/lib/reduce/reduce.

Thanks again,
Andrey



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-21 13:53         ` Andrey G. Grozin
@ 2011-12-21 14:24           ` Burcin Erocal
  2011-12-21 14:57             ` Andrey G. Grozin
  0 siblings, 1 reply; 13+ messages in thread
From: Burcin Erocal @ 2011-12-21 14:24 UTC (permalink / raw
  To: gentoo-science

On Wed, 21 Dec 2011 20:53:27 +0700 (NOVT)
"Andrey G. Grozin" <A.G.Grozin@inp.nsk.su> wrote:

> I really want reduce to become more popular. There are only 3 free 
> computer algebra systems: maxima, reduce, axiom (I don't count toys
> like yacas; and axiom has forked into axiom, openaxiom, and fricas).
> reduce is mature (from late 60s), powerful and very efficient. So, I
> have to live somehow with the weirdness of its current build system.

There is also Sage:

http://sagemath.org/

It's far from a "toy" or a specialized system (such as pari/gp,
Singular, Macaulay2, etc.). So it should be mentioned.


Cheers,
Burcin



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-21 11:13       ` Miguel de Val-Borro
  2011-12-21 13:53         ` Andrey G. Grozin
@ 2011-12-21 14:35         ` Christopher Schwan
  1 sibling, 0 replies; 13+ messages in thread
From: Christopher Schwan @ 2011-12-21 14:35 UTC (permalink / raw
  To: gentoo-science

On Wednesday 21 December 2011 12:13:17 Miguel de Val-Borro wrote:
> On Wed, Dec 21, 2011 at 12:01:18PM +0100, Kacper Kowalik wrote:
> > On 12/21/11 11:39, Andrey G. Grozin wrote:
> > > Hello *,
> > > 
> > > Could somebody with amd64 check if sci-mathematics/reduce-20110414
> > > compiles on this arch? You'll have to keyword it. Upstream says it
> > > should compile.
> > 
> > It does and passes test suite. Though it doesn't respect libdir:
> > 
> > /dev/shm/portage/sci-mathematics/reduce-20110414/image/usr/lib/reduce/re
> > duce.fonts/README
> > 
> > Judging by the content it shouldn't be libdir in the first place, rather
> > /usr/share...
> 
> There is also a warning about an unrecognized configure option:
> configure: WARNING: unrecognized options: --with-gui
> 
> Here is the full build log on amd64:
> http://paste.pocoo.org/show/523967/
> 
> Miguel

I also experienced a (random) build failure, see 
http://paste.pocoo.org/show/524020/ . I guess the build failure is caused by 
parallel make, using MAKEOPTS=-j1 I was able to compile reduce. This showed 
some QA failures, see http://paste.pocoo.org/show/524007/ .

Christopher



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-21 14:24           ` Burcin Erocal
@ 2011-12-21 14:57             ` Andrey G. Grozin
  0 siblings, 0 replies; 13+ messages in thread
From: Andrey G. Grozin @ 2011-12-21 14:57 UTC (permalink / raw
  To: gentoo-science

On Wed, 21 Dec 2011, Burcin Erocal wrote:
> There is also Sage:
>
> http://sagemath.org/
>
> It's far from a "toy" or a specialized system (such as pari/gp,
> Singular, Macaulay2, etc.). So it should be mentioned.
Of course, it's not a toy. To a large degree, it's a large collection of 
existing software, "Gentoo of maths", with its own package system. And it 
includes maxima, fricas, pari/gp, gap, singular, R, and many other 
systems. They are all integrated together to some degree, so, sage is 
somewhere in between a monolythic CAS (maxima, reduce, fricas,...) and 
just a collection.

It would be interesting to make reduce one of its packages, too.

Andrey



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64 (fwd)
  2011-12-21 14:03 [gentoo-science] sci-mathematics/reduce on amd64 (fwd) Andrey G. Grozin
@ 2011-12-21 15:30 ` Kacper Kowalik
  2011-12-22 12:26   ` [gentoo-science] sci-mathematics/reduce on amd64 Andrey G. Grozin
  0 siblings, 1 reply; 13+ messages in thread
From: Kacper Kowalik @ 2011-12-21 15:30 UTC (permalink / raw
  To: gentoo-science

On 21.12.2011 15:03, Andrey G. Grozin wrote:
> On Wed, 21 Dec 2011, Kacper Kowalik wrote:
>>> Could somebody with amd64 check if sci-mathematics/reduce-20110414
>>> compiles on this arch? You'll have to keyword it. Upstream says it
>>> should compile.
>>
>> It does and passes test suite. Though it doesn't respect libdir:
>>
>> /dev/shm/portage/sci-mathematics/reduce-20110414/image/usr/lib/reduce/reduce.fonts/README
>>
>>
>> Judging by the content it shouldn't be libdir in the first place, rather
>> /usr/share...
> Many thanks for checking.
>
> csl-based reduce, and csl, are really strange. reduce is a compiled
> binary, and it needs to have reduce.img *in the same directory* (same
> for csl). Both of them also want to see reduce.doc and reduce.fonts also
> in the same directory,

That's a snippet from a build log:

gcc -DHAVE_CONFIG_H -I. 
-I/var/tmp/portage/sci-mathematics/reduce-20110414/work/reduce-20110414/csl/cslbase 
  -Dfontsdir=reduce.fonts -I/usr/include/freetype2 
-DBINDIR=/usr/local/bin -DPKGDATADIR=/usr/local/share/reduce 
-march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2 
-fno-strict-aliasing -O2 -Wall   -MT arith01.o -MD -MP -MF 
.deps/arith01.Tpo -c -o arith01.o 
/var/tmp/portage/sci-mathematics/reduce-20110414/work/reduce-20110414/csl/cslbase/arith01.c

I haven't looked at the code but I have strong feeling that precompiler 
directives:
  fontsdir
  BINDIR
  PKGDATADIR
may help you ;) It looks that removing 'local' is all you need. Then 
place everything which is not a binary and not a lib in usr/share/reduce

> Should it be /usr/lib64/reduce on amd64?
In principle you should always use /usr/$(get_libdir) from mutlilib.eclass.
Cheers,
Kacper



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-21 15:30 ` Kacper Kowalik
@ 2011-12-22 12:26   ` Andrey G. Grozin
  2011-12-22 15:36     ` Honza Macháček
  2011-12-22 16:31     ` Miguel de Val-Borro
  0 siblings, 2 replies; 13+ messages in thread
From: Andrey G. Grozin @ 2011-12-22 12:26 UTC (permalink / raw
  To: gentoo-science

Many thanks to everybody,

I've just committed reduce-20110414-r1 with ~amd64. Could somebody check 
that it actually compiles on amd64?

Andrey



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-22 12:26   ` [gentoo-science] sci-mathematics/reduce on amd64 Andrey G. Grozin
@ 2011-12-22 15:36     ` Honza Macháček
  2011-12-22 16:31     ` Miguel de Val-Borro
  1 sibling, 0 replies; 13+ messages in thread
From: Honza Macháček @ 2011-12-22 15:36 UTC (permalink / raw
  To: gentoo-science

Dne 12/22/2011 01:26 PM, Andrey G. Grozin píše:
> I've just committed reduce-20110414-r1 with ~amd64. Could somebody check 
> that it actually compiles on amd64?

Compiles and seems to work for me.

Portage 2.1.10.41 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r1,
3.0.4-gentoo-r1 x86_64)
System uname:
Linux-3.0.4-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.1
Timestamp of tree: Thu, 22 Dec 2011 14:15:01 +0000

Thanks for your work.

Honza Macháček




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-22 12:26   ` [gentoo-science] sci-mathematics/reduce on amd64 Andrey G. Grozin
  2011-12-22 15:36     ` Honza Macháček
@ 2011-12-22 16:31     ` Miguel de Val-Borro
  2011-12-23 16:24       ` Andrey G. Grozin
  1 sibling, 1 reply; 13+ messages in thread
From: Miguel de Val-Borro @ 2011-12-22 16:31 UTC (permalink / raw
  To: gentoo-science

On Thu, Dec 22, 2011 at 07:26:21PM +0700, Andrey G. Grozin wrote:
> Many thanks to everybody,
> 
> I've just committed reduce-20110414-r1 with ~amd64. Could somebody check 
> that it actually compiles on amd64?

I have upgraded from reduce-20110414 to reduce-20110414-r1 and got  a file
collision during merging:

 * sci-mathematics/reduce-20110414
 *      /usr/lib64/reduce/reduce.doc
 *      /usr/lib64/reduce/reduce.fonts
 * 
 * Package 'sci-mathematics/reduce-20110414-r1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

This is the build log for reduce-20110414-r1:
http://paste.pocoo.org/show/524580/

If reduce-20110414 is unmerged first, then the new revision builds fine.

Thanks,
Miguel



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-science] sci-mathematics/reduce on amd64
  2011-12-22 16:31     ` Miguel de Val-Borro
@ 2011-12-23 16:24       ` Andrey G. Grozin
  0 siblings, 0 replies; 13+ messages in thread
From: Andrey G. Grozin @ 2011-12-23 16:24 UTC (permalink / raw
  To: gentoo-science

On Thu, 22 Dec 2011, Miguel de Val-Borro wrote:
> I have upgraded from reduce-20110414 to reduce-20110414-r1 and got  a file
> collision during merging:
>
> * sci-mathematics/reduce-20110414
> *      /usr/lib64/reduce/reduce.doc
> *      /usr/lib64/reduce/reduce.fonts
> *
> * Package 'sci-mathematics/reduce-20110414-r1' NOT merged due to file
> * collisions. If necessary, refer to your elog messages for the whole
> * content of the above message.
Yes, I saw this behaviour. I think this must be a bug in portage. The 
directories /usr/lib64/reduce/reduce.doc and 
/usr/lib64/reduce/reduce.fonts belong to the old version of reduce, which 
is being removed during this install. Why are they triggering file 
collision??

Andrey



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-12-23 16:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-21 14:03 [gentoo-science] sci-mathematics/reduce on amd64 (fwd) Andrey G. Grozin
2011-12-21 15:30 ` Kacper Kowalik
2011-12-22 12:26   ` [gentoo-science] sci-mathematics/reduce on amd64 Andrey G. Grozin
2011-12-22 15:36     ` Honza Macháček
2011-12-22 16:31     ` Miguel de Val-Borro
2011-12-23 16:24       ` Andrey G. Grozin
  -- strict thread matches above, loose matches on Subject: below --
2011-10-11  4:42 [gentoo-science] blas/lapack stuff Andrey G. Grozin
2011-10-11  7:43 ` Andrea Arteaga
2011-12-21 10:39   ` [gentoo-science] sci-mathematics/reduce on amd64 Andrey G. Grozin
2011-12-21 11:01     ` Kacper Kowalik
2011-12-21 11:13       ` Miguel de Val-Borro
2011-12-21 13:53         ` Andrey G. Grozin
2011-12-21 14:24           ` Burcin Erocal
2011-12-21 14:57             ` Andrey G. Grozin
2011-12-21 14:35         ` Christopher Schwan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox