Sage update
Daniel Smith
des006 at ucsd.edu
Thu Jan 30 17:02:23 UTC 2014
I also tried rebuilding it and got the same error that Mitja saw.
I think the issue may be that the patches (for dealing with the
freebsd1* vs freebsd1.*) aren't getting properly applied. I set
SAGE_KEEP_BUILT_SPKS=yes before trying to build, and when I looked at
the build dir for the mpir-spkg, it looks like the configure.patch file
had the patches reversed. That is, in the file
sage-6.0/build/pkgs/mpir/patches/configure.patch
There are lines that read
-freebsd1.*)
+freebsd1*)
The result, I think, is that patch believes the freebsd1.* lines, which
are the ones we want, are the "old" values, hence the mpir configure
script continues to act as if it were building on FreeBSD-1.x
I'm not entirely sure how
math/sage/files/patch-build_pkgs_mpir_patches_configure.patch
was generated, but it looks to me like a couple of the diffs in there
had newer files as their first argument, e.g.,
+diff -ur src/aclocal.m4 b/aclocal.m4
+--- src/aclocal.m4 2014-01-29 21:06:09.000000000 +0000
++++ b/aclocal.m4 2012-10-03 20:07:32.000000000 +0000
+@@ -2421,7 +2421,7 @@
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+-freebsd1.*)
++freebsd1*)
...
So I think the situation could be fixed by just changing the command
around (the above was generated by
diff -ur src/aclocal.m4 b/aclocal.m4
so instead just take the output of
diff -ur b/aclocal.m4 src/aclocal.m4
and put the patch-build_pkgs_mpir_patches_configure.patch back together
with that output, instead of what the first command generated).
At least, that's what I'm guessing is going on. I hope my explanation
was clear enough.
Thanks!
--
Daniel
On Thu, Jan 30, 2014 at 06:37:29AM -0500, Ajtim wrote:
> On Thursday 30 January 2014 05:31:19 Montgomery-Smith, Stephen wrote:
> > On 01/29/2014 07:26 PM, Montgomery-Smith, Stephen wrote:
> > So I tried it on my slow i386 computer. It dies on the subpackage
> > r-3.0.2.p0. I would be interested if other people are seeing the same
> > problem.
> >
> > I think it is because in the build, it creates libR.so using a command
> > like this:
> >
>
> I did try to build again and I check 387 (Use 387 instead of SSE FPU) and I got:
>
> mpn_bases' can not be used when making a shared object; recompile with -fPIC
> /usr/ports/math/sage/work/sage-6.0/local/lib/libgmp.a: error adding symbols: Bad value
> collect2: ld returned 1 exit status
> make[8]: *** [libmpfr.la] Error 1
> make[8]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0/src/src'
> make[7]: *** [all] Error 2
> make[7]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0/src/src'
> make[6]: *** [all-recursive] Error 1
> make[6]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0/src'
> Error building MPFR.
>
> real 0m17.525s
> user 0m53.171s
> sys 0m12.151s
> ************************************************************************
> Error installing package mpfr-3.1.2.p0
> ************************************************************************
> Please email sage-devel (http://groups.google.com/group/sage-devel)
> explaining the problem and including the relevant part of the log file
> /usr/ports/math/sage/work/sage-6.0/logs/pkgs/mpfr-3.1.2.p0.log
> Describe your computer, operating system, etc.
> If you want to try to fix the problem yourself, *don't* just cd to
> /usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0 and type 'make' or whatever is appropriate.
> Instead, the following commands setup all environment variables
> correctly and load a subshell for you to debug the error:
> (cd '/usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0' && '/usr/ports/math/sage/work/sage-6.0/sage' --sh)
> When you are done debugging, you can type "exit" to leave the subshell.
> ************************************************************************
> make[5]: *** [/usr/ports/math/sage/work/sage-6.0/local/var/lib/sage/installed/mpfr-3.1.2.p0] Error 1
> make[5]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/build'
> make[4]: *** [toolchain-deps] Error 2
> make[4]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/build'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/usr/ports/math/sage/work/sage-6.0/build'
>
> real 1m32.542s
> user 2m35.877s
> sys 0m43.556s
> ***************************************************************
> Error building Sage.
>
> The following package(s) may have failed to build:
>
> package: mpfr-3.1.2.p0
> log file: /usr/ports/math/sage/work/sage-6.0/logs/pkgs/mpfr-3.1.2.p0.log
> build directory: /usr/ports/math/sage/work/sage-6.0/local/var/tmp/sage/build/mpfr-3.1.2.p0
>
> The build directory may contain configuration files and other potentially
> helpful information. WARNING: if you now run 'make' again, the build
> directory will, by default, be deleted. Set the environment variable
> SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
>
> gmake[2]: *** [build] Error 1
> gmake[2]: Leaving directory `/usr/ports/math/sage/work/sage-6.0'
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/ports/math/sage
> *** Error code 1
>
> Thank you.
>
> --
> Mitja
> -------
> http://www.redbubble.com/people/lumiwa
>
More information about the freebsd-ports
mailing list