Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238471 - sci-mathematics/ginac-1.4.3 stable request
Summary: sci-mathematics/ginac-1.4.3 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Mathematics related packages
URL: http://www.ginac.de/
Whiteboard:
Keywords: STABLEREQ
Depends on: 238444
Blocks:
  Show dependency tree
 
Reported: 2008-09-23 13:23 UTC by Sebastian Luther (few)
Modified: 2009-10-10 18:10 UTC (History)
1 user (show)

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


Attachments
sci-mathematics:ginac-1.4.3:20080928-132623.log (sci-mathematics:ginac-1.4.3:20080928-132623.log,470.31 KB, text/plain)
2008-09-28 13:56 UTC, Markus Meier
Details
build.log (build.log,10.72 KB, text/plain)
2008-09-30 20:35 UTC, Sebastian Luther (few)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Luther (few) 2008-09-23 13:23:49 UTC
Been there for some time, no open bugs. Please mark at least x86 stable.
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2008-09-25 10:11:55 UTC
Arch teams, could you stabilize this one?

To test it once installed, run ginsh and try some examples as in
http://www.ginac.de/tutorial/What-it-can-do-for-you.html

Thanks
Comment 2 Ferris McCormick (RETIRED) gentoo-dev 2008-09-25 12:45:25 UTC
(In reply to comment #1)
> Arch teams, could you stabilize this one?
> 
> To test it once installed, run ginsh and try some examples as in
> http://www.ginac.de/tutorial/What-it-can-do-for-you.html
> 
> Thanks
> 

I tried that on sparc.  Here's what I get instead:
============================
> x=3^150;
77777777977777777877777777677777777377777777377777777077777777677777777
> y=3^149;
77777777677777777277777777577777777777777777477777777377777777277777777
> x/y;
77777777
============================
>  expand((1+a^(1/5)-a^(2/5))^3);
77777777-77777777*a^(77777777/77777777)+77777777*a^(77777777/77777777)+77777777*a-a^(77777777/77777777)
>  
============================== a=Pi;
Pi
> evalf(a);
7777777.7477777777877777777
> 
==============================
For now, sparc declines the invitation.

Comment 3 Markus Meier gentoo-dev 2008-09-28 13:56:24 UTC
Created attachment 166676 [details]
sci-mathematics:ginac-1.4.3:20080928-132623.log

test suite fails on amd64/x86, build log attached.

sci-mathematics/ginac-1.4.3  USE="doc"

Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26.5 x86_64)
=================================================================
System uname: 2.6.26.5 x86_64 Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz
Timestamp of tree: Sun, 28 Sep 2008 11:04:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/mnt/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss encode esd evo examples fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session source spell spl sse sse2 ssl startup-notification svg sysfs tcpd test tiff truetype unicode usb vorbis xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Sebastian Luther (few) 2008-09-28 17:22:42 UTC
(In reply to comment #3)
> Created an attachment (id=166676) [edit]
> sci-mathematics:ginac-1.4.3:20080928-132623.log
> 
> test suite fails on amd64/x86

That's bad. I am running a mostly stable system but have some base-system packages, namely sys-devel/gcc-4.3.1-r1 and sys-libs/glibc-2.8_p20080602, from ~x86. For me these tests don't fail. They only do after downgrading to gcc-4.1.2 (and recompiling cln). 
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2008-09-29 16:28:45 UTC
With the cln fix suggested on Bug 238444, ginac is fine on sparc and can go stable once the fix is incorporated into cln.

On another note, the tutorial for testing ginac at http://www.ginac.de/tutorial/What-it-can-do-for-you.html is a bit misleading.  After the a=3^150; check, we actually have that:

> a = 3^150;
369988485035126972924700782451696644186473100389722973815184405301748249
>  expand((1+a^(1/5)-a^(2/5))^3);
-76177348045865282373834622339696787648077489952280477743262526033023088555780436698151

If you do this, all is well:
> expand((1+z^(1/5)-z^(2/5))^3);
1-z^(6/5)+3*z-5*z^(3/5)+3*z^(1/5)

which is the same as in the example cited, but in a different order.  I'm not going to worry much about that.
Comment 6 Ferris McCormick (RETIRED) gentoo-dev 2008-09-30 14:27:48 UTC
With the fix to cln in Bug #238444, sparc can handle the tutorial examples, but the internal tests give identical results as those Markus attached in Attachment 166676 [details].  On sparc, the stable gcc version is:
sys-devel/gcc-4.1.2
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2008-09-30 16:34:03 UTC
> test suite fails on amd64/x86, build log attached.

I can confirm: works with gcc-4.3 (and icc), not with gcc-4.1.2.
As a result, I will call you later, with either a stable gcc-4.3 or working ginac/testsuite with gcc-4.1.2.
Comment 8 Sebastian Luther (few) 2008-09-30 20:35:34 UTC
Created attachment 166866 [details]
build.log

I tried to figure out if at least one of them could go stable. So I tried 
=sci-mathematics/ginac-1.4.3  and =sci-libs/cln-1.1.13 -> tests fail
=sci-mathematics/ginac-1.3.7  and =sci-libs/cln-1.2.2 -> ginac configure script does not detect cln (see build.log)
Comment 9 Sébastien Fabbro (RETIRED) gentoo-dev 2008-10-20 21:41:00 UTC
I reduced optimization to -O1 for gcc < 4.2 in the ebuild.
Could you guys try to stabilize this guy again?
Thanks!
Comment 10 Markus Meier gentoo-dev 2008-10-24 22:49:51 UTC
amd64/x86 stable
Comment 11 nixnut (RETIRED) gentoo-dev 2008-10-25 16:49:41 UTC
(In reply to comment #9)
> I reduced optimization to -O1 for gcc < 4.2 in the ebuild.
> Could you guys try to stabilize this guy again?
> Thanks!

now one test fails on ppc:

 examining clifford objects.....terminate called after throwing an instance of 'std::logic_error'
  what():  add::eval(): sum of non-commutative objects has non-zero numeric term
/bin/sh: line 4: 20643 Aborted                 ${dir}$tst
FAIL: exam_clifford
Comment 12 nixnut (RETIRED) gentoo-dev 2009-09-27 14:03:03 UTC
1.5.1 stable instead for ppc
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2009-10-10 18:10:11 UTC
sparc stable, closing