#9030: rubiks is building part 32-bit and part 64-bit on OpenSolaris x64.
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone:
Component: algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
'rubiks' has code to attempt to build it 64-bit, but that does not seem to
be fully functional, as parts are built 32-bit and parts are built 64-bit.
{{{
rubiks-20070912.p10/dist/debian/changelog
rubiks-20070912.p10/spkg-install
Finished extraction
****************************************************
Host system
uname -a:
SunOS hawk 5.11 snv_134 i86pc i386 i86pc
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.4.4/configure --prefix=/usr/local/gcc-4.4.4
--with-as=/usr/local/binutils-2.20/bin/as --with-ld=/usr/ccs/bin/ld
--with-gmp=/usr/local --with-mpfr=/usr/local
Thread model: posix
gcc version 4.4.4 (GCC)
****************************************************
Building a 64-bit version of rubiks
Code will be built with debugging information present. Set 'SAGE_DEBUG' to
'no' if you don't want that.
Using CC=gcc
Using CXX=g++
Using FC=
Using F77=
Using SAGE_FORTRAN=/usr/local/gcc-4.4.4/bin/gfortran
Using SAGE_FORTRAN_LIB=/usr/local/gcc-4.4.4/lib/amd64/libgfortran.so
The following environment variables will be exported
Using CFLAGS= -O2 -m64 -g -Wall
Using CXXFLAGS= -O2 -m64 -g -Wall
Using FCFLAGS= -O2 -m64 -g -Wall
Using F77FLAGS= -O2 -m64 -g -Wall
Using CPPFLAGS=
Using LDFLAGS= -m64
Using ABI=
configure scripts and/or makefiles might override these later
Building Rubiks cube solvers
for dir in dietz/cu2 dietz/mcube dietz/solver dik reid; do \
(cd ${dir} && make all)\
done
make[1]: Entering directory
`/export/home/drkirkby/sage-4.4.2/spkg/build/rubiks-20070912.p10/src/dietz/cu2'
g++ -O2 -m64 -g -Wall -c cu2.cpp
g++ -O2 -m64 -g -Wall -c main.cpp
g++ -O2 -m64 -g -Wall -o cubex cubex.o main.o
<snip lots of 64-bit builds builds and lots of warnings>
gcc -O2 -m64 -g -Wall -m64 optimal.c -o optimal
gcc -O2 -m64 -g -Wall -m64 twist.c -o twist
<snip>
cp reid/optimal /export/home/drkirkby/sage-4.4.2/local/bin
cp dietz/solver/cubex /export/home/drkirkby/sage-4.4.2/local/bin
cp dietz/mcube/mcube /export/home/drkirkby/sage-4.4.2/local/bin
cp dietz/cu2/cu2 /export/home/drkirkby/sage-4.4.2/local/bin
cp dik/dikcube /export/home/drkirkby/sage-4.4.2/local/bin
cp dik/size222 /export/home/drkirkby/sage-4.4.2/local/bin
}}}
When we check files, I note some are built 32-bit and some are built
64-bit.
{{{
drkir...@hawk:~/sage-4.4.2$ file local/bin/size222
local/bin/size222: ELF 32-bit LSB executable 80386 Version 1 [FPU],
dynamically linked, not stripped, no debugging information available
drkir...@hawk:~/sage-4.4.2$ file local/bin/optimal
local/bin/optimal: ELF 64-bit LSB executable AMD64 Version 1,
dynamically linked, not stripped
}}}
I expect this would happen on any platform where the default is 32-bit,
suggesting to me this never even worked 64-bit on OS X systems where
32-bit was the default.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9030>
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.