Dr. David Kirkby wrote:
It's gone 2 AM here, and I'm not going to go into a deep debugging
session, but if anyone has any ideas about the error below, let me know.

Systems is a Sun Ultra 27, 3.333 GHz Xeon.
Open Solaris 06/2009
gcc 4.4.2, configured to use the Sun linker (not GNU 'ld')


My system is Open Solaris 0609 in Virtualbox.

j...@opensolaris:~/Downloads/sage-4.3.1.alpha1$ gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.3.2/configure --prefix=/usr --program-suffix=-4.3.2 --infodir=/usr/share/info --mandir=/usr/share/man --libexecdir=/usr/lib --enable-shared --disable-static --disable-libtool-lock --target= --enable-objc-gc --enable-concept-checks --disable-libada --enable-libssp --enable-languages=c,c++,objc,fortran --enable-threads=posix --enable-tls=yes --with-system-zlib --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gnu-as --with-as=/usr/sfw/bin/gas --with-gmp-include=/usr/include/gmp --with-gmp-lib=/usr/lib --with-mpfr-include=/usr/include/mpfr --with-mpfr-lib=/usr/lib --enable-c99 --enable-nls --enable-wchar_t --enable-libstdcxx-allocator=mt --with-pic
Thread model: posix
gcc version 4.3.2 (GCC)

My ATLAS build *almost* finished!

ATLAS install complete.  Examine
ATLAS/bin/<arch>/INSTALL_LOG/SUMMARY.LOG for details.
make[1]: Leaving directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha1/spkg/build/atlas-3.8.3.p9/ATLAS-build'
make clean
make[1]: Entering directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha1/spkg/build/atlas-3.8.3.p9/ATLAS-build'
rm -f *.o x* config?.out *core*
make[1]: Leaving directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha1/spkg/build/atlas-3.8.3.p9/ATLAS-build'
Finished building ATLAS core
The Makefile generated in ATLAS for building shared libraries
assumes the linker is the GNU linker, which it not true in
your setup. (It is generally considered better to use the
Sun linker in /usr/ccs/bin rather than the GNU linker from binutils)
The linker flags in 
/export/home/jaap/Downloads/sage-4.3.1.alpha1/spkg/build/atlas-3.8.3.p9/ATLAS-build/lib/Makefile
 will be changed.
'-shared' will be changed to '-G'
'-soname' will be changed to '-h'
'--whole-archive' will be changed to '-zallextract'
'--no-whole-archive' will be changed to '-zdefaultextract'
A copy of the original Makefile will be copied to Makefile.orig
rm -f libatlas.so liblapack.so
make libatlas.so liblapack.so libf77blas.so libcblas.so liblapack.so
make[1]: Entering directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha1/spkg/build/atlas-3.8.3.p9/ATLAS-build/lib'
ld -melf_x86_64 -G -h libatlas.so -o libatlas.so \
        -z allextract libatlas.a -z defaultextract -lc -lm
ld: warning: file libatlas.a(ATL_flushcache.o): wrong ELF class: ELFCLASS64
ld: fatal: entry point symbol `lf_x86_64' is undefined
make[1]: *** [libatlas.so] Error 1
make[1]: Leaving directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha1/spkg/build/atlas-3.8.3.p9/ATLAS-build/lib'
make: *** [shared] Error 2
Building shared ATLAS libraries failed
Failed to build ATLAS.

real    160m44.403s
user    149m55.637s
sys     8m27.023s
sage: An error occurred while installing atlas-3.8.3.p9


The problem seems to be with the loader ld:

ld -melf_x86_64 -G -h libatlas.so -o libatlas.so \
        -z allextract libatlas.a -z defaultextract -lc -lm

Is this an error in the build script?


How can I save the intermediate results? And build the libraries afterwards?


Thoughts?

Jaap


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to