#9358: zn_poly passes all tests on on Solaris 10 64-bit SPARC, but fails to
install
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone: sage-4.5
Component: solaris | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Changes (by drkirkby):
* cc: jhpalmieri, jsp (added)
Old description:
> znpoly passes about 40 self-tests, but fails to install properly.
>
> {{{
> zn_array_mulmid_fft()... ok
> zn_array_mul_fft_dft()... ok
> zn_array_invert()... ok
>
> All tests passed.
> gcc -O3 -g -m64 -fPIC -L.
> -I/export/home/drkirkby/sage-4.5.alpha0/local/include
> -I./include -DNDEBUG -o src/tuning.o -c src/tuning.c
> In file included from ./include/zn_poly.h:75,
> from ./include/zn_poly_internal.h:41,
> from src/tuning.c:28:
> ./include/wide_arith.h:297:2: warning: #warning No assembly
> implementation of wi
> de multiplication available for this machine; using generic C code
> instead.
> ar -r libzn_poly.a src/array.o src/invert.o src/ks_support.o src/mulmid.o
> src/mu
> lmid_ks.o src/misc.o src/mpn_mulmid.o src/mul.o src/mul_fft.o
> src/mul_fft_dft.o
> src/mul_ks.o src/nuss.o src/pack.o src/pmf.o src/pmfvec_fft.o
> src/tuning.o src/z
> n_mod.o
> ar: creating libzn_poly.a
> ranlib libzn_poly.a
> gcc -shared -m64 -Wl,-soname,libzn_poly-`cat VERSION`.so -o
> libzn_poly-`cat VER
> SION`.so src/array.o src/invert.o src/ks_support.o src/mulmid.o
> src/mulmid_ks.o
> src/misc.o src/mpn_mulmid.o src/mul.o src/mul_fft.o src/mul_fft_dft.o
> src/mul_ks
> .o src/nuss.o src/pack.o src/pmf.o src/pmfvec_fft.o src/tuning.o
> src/zn_mod.o -L
> /export/home/drkirkby/sage-4.5.alpha0/local/lib -lgmp -lm
> ld: warning: option -o appears more than once, first setting taken
> ld: fatal: file libzn_poly-0.9.so: unknown file type
> ld: fatal: File processing errors. No output written to libzn_poly-0.9.so
> collect2: ld returned 1 exit status
> make: *** [libzn_poly.so] Error 1
> Error building zn_poly shared library.
>
> real 1m38.825s
> user 1m34.368s
> sys 0m3.849s
> sage: An error occurred while installing zn_poly-0.9.p4
> }}}
>
> This looks like a problem in spkg-install, which is undoubtedly my fault.
> The script has in if/elif/else/fi which considers
>
> * A 64-bit build
> * A Solaris build with the Sun linker.
>
> It does '''not''' cover the possibility of a 64-bit build on Solaris with
> the Sun linker.
>
> This should be hopefully quite easy to fix.
New description:
== Hardware & associated software ==
* Sun Blade 1000
* 2 x 900 MHz UltraSPARC III+ CPUs
* 2 GB RAM
* 8 GB swap
* Solaris 10 03/2005 (first release of Solaris 10)
* 147 GB SEAGATE-ST3146807FC 2 Gbit/s 15,000 rpm fiber channel disk
(FCAL)
* UFS local file systems.
* gcc 4.4.3 (uses Sun linker and assembler)
* 64-bit build - SAGE64 was exported to "yes"
== How GCC was configured ==
GCC can be configured several ways on Solaris. For Solaris 10 SPARC, use
of both the Sun linker and Sun assembler are usually recommended, which is
what was done here.
{{{
drkir...@redstart:~$ gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.3/configure --prefix=/usr/local/gcc-4.4.3
--with-mpfr=/usr/local/gcc-4.4.3 --with-build-time-tools=/usr/ccs/bin
--with-gmp=/usr/local/gcc-4.4.3 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.4.3 (GCC)
}}}
== The problem ==
znpoly passes about 40 self-tests, but fails to install properly.
{{{
zn_array_mulmid_fft()... ok
zn_array_mul_fft_dft()... ok
zn_array_invert()... ok
All tests passed.
gcc -O3 -g -m64 -fPIC -L.
-I/export/home/drkirkby/sage-4.5.alpha0/local/include
-I./include -DNDEBUG -o src/tuning.o -c src/tuning.c
In file included from ./include/zn_poly.h:75,
from ./include/zn_poly_internal.h:41,
from src/tuning.c:28:
./include/wide_arith.h:297:2: warning: #warning No assembly implementation
of wi
de multiplication available for this machine; using generic C code
instead.
ar -r libzn_poly.a src/array.o src/invert.o src/ks_support.o src/mulmid.o
src/mu
lmid_ks.o src/misc.o src/mpn_mulmid.o src/mul.o src/mul_fft.o
src/mul_fft_dft.o
src/mul_ks.o src/nuss.o src/pack.o src/pmf.o src/pmfvec_fft.o src/tuning.o
src/z
n_mod.o
ar: creating libzn_poly.a
ranlib libzn_poly.a
gcc -shared -m64 -Wl,-soname,libzn_poly-`cat VERSION`.so -o
libzn_poly-`cat VER
SION`.so src/array.o src/invert.o src/ks_support.o src/mulmid.o
src/mulmid_ks.o
src/misc.o src/mpn_mulmid.o src/mul.o src/mul_fft.o src/mul_fft_dft.o
src/mul_ks
.o src/nuss.o src/pack.o src/pmf.o src/pmfvec_fft.o src/tuning.o
src/zn_mod.o -L
/export/home/drkirkby/sage-4.5.alpha0/local/lib -lgmp -lm
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libzn_poly-0.9.so: unknown file type
ld: fatal: File processing errors. No output written to libzn_poly-0.9.so
collect2: ld returned 1 exit status
make: *** [libzn_poly.so] Error 1
Error building zn_poly shared library.
real 1m38.825s
user 1m34.368s
sys 0m3.849s
sage: An error occurred while installing zn_poly-0.9.p4
}}}
This looks like a problem in spkg-install, which was written to consider
two Solaris/64-bit releated possibilities.
* A 64-bit build
* A Solaris build with the Sun linker.
It does '''not''' cover the possibility of a 64-bit build on Solaris with
the Sun linker. Clearly that was an oversight on my part.
== Likely solution ==
This should be hopefully quite easy to fix. spkg-install needs to consider
the possibility of a 64-bit Solaris build with the Sun linker.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9358#comment:1>
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.