Hi,
        When I try to compile Sage 2.10.2 under ppc64 Linux using gcc,
I see that some files are
compiled in 32 bits and some others in 64 bits. Have you noticed this?
When I type:
% make
        I get the following error:
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/PET/src/build/
sage-2.10.2/local/include -I. -g -O2 -MT
libiml_la-nullspace.lo -MD -MP -MF .deps/libiml_la-nullspace.Tpo -c
nullspace.c -o
libiml_la-nullspace.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/PET/src/build/
sage-2.10.2/local/include  -I.
-g -O2  -lm -o libiml.la -rpath /usr/local/PET/src/build/sage-2.10.2/
local/lib libiml_la-basisop.lo
libiml_la-certsolve.lo libiml_la-error.lo libiml_la-latreduce.lo
libiml_la-memalloc.lo
libiml_la-mtrans.lo libiml_la-nonsysolve.lo libiml_la-padiclift.lo
libiml_la-reconsolu.lo
libiml_la-RNSop.lo libiml_la-nullspace.lo -L/usr/local/PET/src/build/
sage-2.10.2/local/lib -lgmp
../repl/librepl.la
gcc -shared  .libs/libiml_la-basisop.o .libs/libiml_la-
certsolve.o .libs/libiml_la-error.o
.libs/libiml_la-latreduce.o .libs/libiml_la-memalloc.o .libs/libiml_la-
mtrans.o
.libs/libiml_la-nonsysolve.o .libs/libiml_la-padiclift.o .libs/
libiml_la-reconsolu.o
.libs/libiml_la-RNSop.o .libs/libiml_la-nullspace.o -Wl,--whole-
archive ../repl/.libs/librepl.a
-Wl,--no-whole-archive  -Wl,--rpath -Wl,/usr/local/PET/src/build/
sage-2.10.2/local/lib -Wl,--rpath
-Wl,/usr/local/PET/src/build/sage-2.10.2/local/lib -L/usr/local/PET/
src/build/sage-2.10.2/local/lib
/usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so -lm  -Wl,-
soname -Wl,libiml.so.0 -o
.libs/libiml.so.0.0.0
/usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so: could not
read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [libiml.la] Error 1
make[4]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg/
build/iml-1.0.1.p9/src/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg/
build/iml-1.0.1.p9/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg/
build/iml-1.0.1.p9/src'
Error building IML

real    0m41.850s
user    0m26.428s
sys     0m10.164s
sage: An error occurred while installing iml-1.0.1.p9
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /usr/local/PET/src/build/sage-2.10.2/install.log.  Describe your
computer, operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/usr/local/PET/src/build/sage-2.10.2/spkg/build/iml-1.0.1.p9 and type
'make'.
Instead type "/usr/local/PET/src/build/sage-2.10.2/sage -sh"
in order to set all environment variables correctly, then cd to
/usr/local/PET/src/build/sage-2.10.2/spkg/build/iml-1.0.1.p9
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/iml-1.0.1.p9] Error 1
make[1]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg'

real    45m41.259s
user    38m16.037s
sys     5m3.453s
build/sage-2.10.2> file /usr/local/PET/src/build/sage-2.10.2/local/lib/
libgmp.so
/usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so: symbolic
link to `libgmp.so.3.4.1'
build/sage-2.10.2> file /usr/local/PET/src/build/sage-2.10.2/local/lib/
libgmp.so.3
libgmp.so.3@      libgmp.so.3.4.1*
build/sage-2.10.2> file /usr/local/PET/src/build/sage-2.10.2/local/lib/
libgmp.so.3.4.1
/usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so.3.4.1: ELF 64-
bit MSB shared object, cisco
7500, version 1 (SYSV), not stripped
build/sage-2.10.2> file .libs/libiml_la-basisop.o
.libs/libiml_la-basisop.o: cannot open `.libs/libiml_la-basisop.o' (No
such file or directory)
build/sage-2.10.2> file `find . -name libiml_la-basisop.o -print`
./spkg/build/iml-1.0.1.p9/src/src/.libs/libiml_la-basisop.o: ELF 32-
bit MSB relocatable, PowerPC or
cisco 4500, version 1 (SYSV), not stripped
./spkg/build/iml-1.0.1.p9/src/src/libiml_la-basisop.o:       ELF 32-
bit MSB relocatable, PowerPC or
cisco 4500, version 1 (SYSV), not stripped
build/sage-2.10.2> which cc
/usr/bin/cc
build/sage-2.10.2> cc -c foo.c
build/sage-2.10.2> file foo.o
foo.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1
(SYSV), not stripped
build/sage-2.10.2> gcc -c foo.c
build/sage-2.10.2> file foo.o
foo.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1
(SYSV), not stripped
build/sage-2.10.2> rm foo.*
build/sage-2.10.2> gcc -v
Using built-in specs.
Target: powerpc64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --
with-local-prefix=/usr/local
--infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --
libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-
checking=release
--with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-
libssp --disable-libgcj--with-slibdir=/lib --with-system-zlib --enable-
shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix= --enable-version-
specific-runtime-libs
--without-system-libunwind --with-cpu=default32 --enable-secureplt --
with-long-double-128
--host=powerpc64-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)


        Should I be looking for a -maix64 or some such flag and remove
it from the Makefiles? The other
problem I have is that -lgfortran on my system pointed to /usr/lib/
libgfortran.so.1 and this crashed
the ATLAS compile. After I manually edited the make script, and typed
make, it tried to rebuild the
whole thing. I wish there was an option to start off from where the
error occured.
        Thanks,
        - Sameer



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to