The error is
c++ -c cf_gcd_charp.cc -w -fno-implicit-templates -I. -I. -I/var/tmp/portage/sci-mathematics/Macaulay2-1.0/work/include -DHAVE_CONFIG_H -march=core2 -O2 -pipe -fomit-frame-pointer -o cf_gcd_charp.o
cf_gcd_charp.cc:4:22: error: iostream.h: No such file or directory
make: *** [cf_gcd_charp.o] Error 1
make: *** Waiting for unfinished jobs....
The program uses deprecated headers.
There is a new version 1.1 available upstream.
This possibly solves the problem.
denkmatte tom # emerge --info
Portage 2.2_rc13 (default-linux/x86/2007.0/desktop, gcc-4.3.2, glibc-2.6.1-r0, 18.104.22.168 i686)
System uname: Linux-22.214.171.124-i686-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-glibc2.0
Timestamp of tree: Thu, 06 Nov 2008 12:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.1.6
sys-devel/autoconf: 2.13, 2.61-r2
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LINGUAS="en en_US de ja es fr it"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/tom-overlay"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Would you be interested in trying out the version bump yourself, and see if it fixes gcc 4.3 compatibility problems?
(In reply to comment #1)
> Would you be interested in trying out the version bump yourself, and see if it
> fixes gcc 4.3 compatibility problems?
Ok, I will have a look.
Thanks a lot and please let us know how things go.
Macaulay2 builds have been tricky at times in the past.
I'll try to look at it myself.
(In reply to comment #2)
> (In reply to comment #1)
> > Would you be interested in trying out the version bump yourself, and see if it
> > fixes gcc 4.3 compatibility problems?
> Ok, I will have a look.
The new version 1.1 still has the old header style and does not build without patching.
upstream quickly responded, the reason are the old version of libfac and factory that we use.
Here's the full answer from Daniel Grayson (firstname.lastname@example.org)
You are using an old version of "factory", a third party library that we
download. That particular issue was fixed by its authors in version 3.0.4, so
you must be using 3.0.3, which is what we specified in Macaulay2 1.1. Now we
are using 3.1.0. This would be easy for you to update in our makefiles. Let
me know if a problem arises. You should keep the libfac library version number
in sync, too.
By the way, the package Singular also provides libfac, so we have two copies of this as soon as we install both packages. If someone is bored it would be useful to make an ebuild for it and strip it from these packages.
(In reply to comment #5)
> upstream quickly responded, the reason are the old version of libfac and
> factory that we use.
> Here's the full answer from Daniel Grayson (email@example.com)
> You are using an old version of "factory", a third party library that we
> download. That particular issue was fixed by its authors in version 3.0.4, so
> you must be using 3.0.3, which is what we specified in Macaulay2 1.1. Now we
> are using 3.1.0. This would be easy for you to update in our makefiles. Let
> me know if a problem arises. You should keep the libfac library version number
> in sync, too.
Sounds like a plan :)
> By the way, the package Singular also provides libfac, so we have two copies of
> this as soon as we install both packages. If someone is bored it would be
> useful to make an ebuild for it and strip it from these packages.
Unfortunately, I am not too bored these days ;)
I'll have a look at everything soon.
Hi, let me announce that there will be version 1.2 of Macaulay2 really soon !
Despite from that, as the developers are very active between version it would be extremely cool to have an ebuild which installs the svn version.
This should be pretty similar to just grabbing a tarball and installing from it.
Created attachment 182118 [details]
New ebuild for Macaulay2-1.2
I have modified the ebuild to build the current version. Please test and comment.
Created attachment 182119 [details, diff]
Patch for an internal library
One more remark on dependencies:
Pari (and probably ntl) must be built with the "gmp" useflag.
I don't know how to realize this. Can EAPI-2 features like
DEPEND app-misc/foo[bar] already be used ?
Created attachment 182239 [details]
New ebuild for Macaulay2-1.2
Sorry for spamming your inbox. This is an updated version which checks for pari being built with gmp useflag and: Tests now work ! (on my machine)
sci-mathematics/Macaulay2-1.2-r2 is in the science overlay.
I don't know anything of Gentoo policies, but is Pmasking the way here ??
It scares users away from testing the new version in the science overlay.
The overlay version has all these issues resolved.
@sci-mathematics: Could somebody look at this version??
removed from main tree.
New versions are being published in the science-overlay.
I took on myself to adjust the dependencies as I have moved mpir
from dev-libs to sci-libs as discussed in bug #293383
May be it should be made a blocker to this bug.
Thanks for updating. Macaulay2 now works with mpir-1.3.1
Version 1.4 of Macaulay2 is now back in the tree.
Thanks everyone contributing!