#7781: Update prereq to version 0.6
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: GeorgSWeber
Type: defect | Status: positive_review
Priority: major | Milestone: sage-4.3.1
Component: build | Keywords: gcc AIX HP-UX IRIX Tru64 Solaris
Work_issues: | Author: David Kirkby
Upstream: N/A | Reviewer: Minh Van Nguyen
Merged: |
------------------------+---------------------------------------------------
Changes (by mvngu):
* status: needs_review => positive_review
* reviewer: => Minh Van Nguyen
Comment:
As of Sage 4.3, some files are not propertly under revision control:
{{{
[mv...@boxen base]$ pwd
/scratch/mvngu/sage-src/sage-4.3-7781/spkg/base
[mv...@boxen base]$ hg st
M sage-env
M sage-spkg
! prereq-0.3-install
? prereq-0.5-install
? prereq-0.5.tar
}}}
The release manager needs to first do the following:
1. Check in changes to `sage-env` and `sage-spkg` with "hg ci"
1. Remove the file `prereq-0.3-install` from revision control using "hg
remove".
1. Delete `prereq-0.5-install` and `prereq-0.5.tar`.
1. Edit `.hgignore` to ignore the file `prereq-0.6.tar`.
After going through the above steps, then get
http://boxen.math.washington.edu/home/kirkby/portability/prereq-0.6/prereq-0.6-install
put it under `SAGE_ROOT/spkg/base` and commit it in David Kirkby's name.
Also get
http://boxen.math.washington.edu/home/kirkby/portability/prereq-0.6/prereq-0.6.tar
and put it under `SAGE_ROOT/spkg/base` as well. Here are the results of my
tests on various combinations of platform and hardware:
1. AIX 6.1 64-bit (machine from OpenAIX at
http://www.metamodul.com/10.html), PowerPC_POWER5 @ 2097 MHz, GCC 4.2.4
--- build failed when trying to compile bzip2-1.0.5:
{{{
gcc -fPIC -c bzip2.c
In file included from /usr/include/fcntl.h:188,
from bzip2.c:70:
/usr/include/unistd.h:909: error: expected ')' before '[' token
/usr/include/unistd.h:910: error: expected declaration specifiers or '...'
befor
e 'rid_t'
make[2]: *** [bzip2.o] Error 1
make[2]: Leaving directory
`/home/mvngu/sandbox/sage-4.3-7781/spkg/build/bzip2-1
.0.5'
Error building bzip2
make[1]: *** [installed/bzip2-1.0.5] Error 1
make[1]: Leaving directory `/home/mvngu/sandbox/sage-4.3-7781/spkg'
install.log (97%)
real 0m9.234s
user 0m2.410s
sys 0m0.743s
Error building Sage.
}}}
This is expected, as AIX is not yet supported. As expected, a message
would be printed warning about AIX being an unsupported platform. To get
pass the message, one could set the SAGE_PORT=yes and then issue "make".
1. Cygwin 1.5.25(0.156/4/2) 32-bit (winxp1 on boxen.math), Intel(R)
Xeon(R) CPU X7460 @ 2.66GHz, GCC 4.3.2 20080827 (beta) 2 --- build failed
when trying to compile python-2.6.2.p4:
{{{
gcc -L/home/mvngu/scratch/sage-4.3-7781/local/lib -o python.exe \
Modules/python.o \
libpython2.6.dll.a -ldl -lm
make[2]: *** [sharedmods] Error 57
make[2]: Leaving directory
`/home/mvngu/scratch/sage-4.3-7781/spkg/build/python-
2.6.2.p4/src'
Error building Python.
}}}
This is expected, as Sage is not supported on Cygwin. As expected, a
message would be printed warning about Cygwin being an unsupported
platform. To get pass the message, one could set the SAGE_PORT=yes and
then issue "make".
1. HP-UX B.11.11 (David Kirkby's HP-UX machine), GCC 4.3.3 --- build
failed when trying to compile cliquer-1.2.p2:
{{{
configure scripts and/or makefiles might override these later
Cannot determine your platform or it is not supported... exiting
real 0m0.078s
user 0m0.050s
sys 0m0.020s
sage: An error occurred while installing cliquer-1.2.p2
}}}
This is expected. I think one can build cliquer by some suitable editing
of that spkg's file spkg-install. As of Sage 4.3, only Linux, Mac OS X,
and Solaris are supported by that installation script. As expected, a
message would be printed warning about HP-UX being an unsupported
platform. To get pass the message, one could set the SAGE_PORT=yes and
then issue "make".
1. Solaris 10 (fulvia on SkyNet), i386 processor @ 2400 MHz, GCC 4.4.2
--- build failed when trying to compile gnutls-2.2.1.p4:
{{{
serv.o: In function `peer_print_info':
/home/mvngu/usr/fulvia/sandbox/sage-4.3-7781/spkg/build/gnutls-2.2.1.p4/src/src/serv.c:489:
undefined reference to `gnutls_x509_crt_print'
common.o: In function `print_x509_info':
/home/mvngu/usr/fulvia/sandbox/sage-4.3-7781/spkg/build/gnutls-2.2.1.p4/src/src/common.c:151:
undefined reference to `gnutls_x509_crt_check_hostname'
../libextra/.libs/libgnutls-extra.so: undefined reference to
`_gnutls_hostname_compare'
collect2: ld returned 1 exit status
make[5]: *** [gnutls-serv] Error 1
make[5]: Leaving directory
`/home/mvngu/usr/fulvia/sandbox/sage-4.3-7781/spkg/build/gnutls-2.2.1.p4/src/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/mvngu/usr/fulvia/sandbox/sage-4.3-7781/spkg/build/gnutls-2.2.1.p4/src/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/mvngu/usr/fulvia/sandbox/sage-4.3-7781/spkg/build/gnutls-2.2.1.p4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/mvngu/usr/fulvia/sandbox/sage-4.3-7781/spkg/build/gnutls-2.2.1.p4/src'
failed to build GNUTLS
real 36m28.030s
user 0m46.756s
sys 0m58.655s
sage: An error occurred while installing gnutls-2.2.1.p4
}}}
This is expected as x86 Solaris is not yet supported. As expected, a
message would be printed warning about non-SPARC Solaris being an
unsupported platform. To get pass the message, one could set the
SAGE_PORT=yes and then issue "make".
1. Ubuntu 8.04.3 LTS (boxen.math), Intel(R) Xeon(R) CPU X7460 @ 2.66GHz,
GCC 4.2.4 --- build OK, all doctests pass.
1. Mac OS X 10.6.2 (bsd.math), Dual-Core Intel Xeon @ 2.66 GHz, GCC 4.2.1
--- build OK, many doctest failures as expected.
1. Solaris 10 (t2.math), SPARC, GCC 4.4.1 --- build wasn't successful as
expected.
For the above test platforms, the updated prereq package works as
advertised.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7781#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.