#8086: numpy fails to build on Open Solaris x64 - 32 / 64-bit mixup
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.2
Component: solaris | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Description changed by drkirkby:
Old description:
> == Build environment ==
> * Sun Ultra 27 3.33 GHz Intel W3580 Xeon. Quad core. 8 threads. 12 GB
> RAM
> * !OpenSolaris 2009.06 snv_111b X86
> * Sage 4.3.1.alpha1 (with a few packages hacked to work on 64-bit)
> * gcc 4.3.4 configured with Sun linker and GNU assembler from binutils
> version 2.20.
> * 64-bit build. SAGE64 was set to yes, plus various other tricks to get
> -m64 into packages.
> == The problem ==
> numpy is failing to build. It looks like there is a mix of 32 and 64-bit
> objects.
>
> {{{
> numpy-1.3.0.p2/src/setup.py
> numpy-1.3.0.p2/src/MANIFEST.in
> numpy-1.3.0.p2/.hgtags
> Finished extraction
> ****************************************************
> Host system
> uname -a:
> SunOS hawk 5.11 snv_111b i86pc i386 i86pc
> ****************************************************
> ****************************************************
> CC Version
> gcc -v
> Using built-in specs.
> Target: i386-pc-solaris2.11
> Configured with: ../gcc-4.3.4/configure --prefix=/usr/local/gcc-4.3.4
> -GNU-assembler-Sun-linker --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.3.4 (GCC)
> ****************************************************
> Running from numpy source directory.
> F2PY Version 2
> blas_opt_info:
> blas_mkl_info:
> libraries mkl,vml,guide not found in
> /export/home/drkirkby/sage-4.3.1/local/lib
> NOT AVAILABLE
>
> atlas_blas_threads_info:
> Setting PTATLAS=ATLAS
> libraries ptf77blas,ptcblas,atlas not found in
> /export/home/drkirkby/sage-4.3.1/local/lib
> NOT AVAILABLE
>
> atlas_blas_info:
> FOUND:
> libraries = ['f77blas', 'cblas', 'atlas']
> library_dirs = ['/export/home/drkirkby/sage-4.3.1/local/lib']
> language = c
> include_dirs = ['/export/home/drkirkby/sage-4.3.1/local/include']
>
> /export/home/drkirkby/sage-4.3.1/spkg/build/numpy-1.3.0.p2/src/numpy/distutils/command/config.py:361:
> DeprecationWarning:
> +++++++++++++++++++++++++++++++++++++++++++++++++
> Usage of get_output is deprecated: please do not
> use it anymore, and avoid configuration checks
> involving running executable on the target machine.
> +++++++++++++++++++++++++++++++++++++++++++++++++
>
> DeprecationWarning)
> customize Sage_FCompiler_1
> customize Sage_FCompiler_1
> customize Sage_FCompiler_1 using config
> compiling '_configtest.c':
>
> /* This file is generated from numpy/distutils/system_info.py */
> void ATL_buildinfo(void);
> int main(void) {
> ATL_buildinfo();
> return 0;
> }
> C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
> prototypes -fPIC
>
> compile options: '-c'
> gcc: _configtest.c
> gcc _configtest.o -L/export/home/drkirkby/sage-4.3.1/local/lib -lf77blas
> -lcblas -latlas -o _configtest
> ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libf77blas.so:
> wrong ELF class: ELFCLASS64
> ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libcblas.so:
> wrong ELF class: ELFCLASS64
> ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libatlas.so:
> wrong ELF class: ELFCLASS64
> ld: fatal: file processing errors. No output written to _configtest
> collect2: ld returned 1 exit status
> ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libf77blas.so:
> wrong ELF class: ELFCLASS64
> ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libcblas.so:
> wrong ELF class: ELFCLASS64
> ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libatlas.so:
> wrong ELF class: ELFCLASS64
> ld: fatal: file processing errors. No output written to _configtest
> collect2: ld returned 1 exit status
> failure.
> removing: _configtest.c _configtest.o
> Status: 255
> Output:
> FOUND:
> libraries = ['f77blas', 'cblas', 'atlas']
> library_dirs = ['/export/home/drkirkby/sage-4.3.1/local/lib']
> language = c
> define_macros = [('NO_ATLAS_INFO', 2)]
> include_dirs = ['/export/home/drkirkby/sage-4.3.1/local/include']
>
> lapack_opt_info:
> lapack_mkl_info:
> }}}
New description:
== Build environment ==
* Sun Ultra 27 3.33 GHz Intel W3580 Xeon. Quad core. 8 threads. 12 GB RAM
* !OpenSolaris 2009.06 snv_111b X86
* Sage 4.3.1 (with a few packages hacked to work on 64-bit)
* gcc 4.3.4 configured with Sun linker and GNU assembler from binutils
version 2.20.
* 64-bit build. SAGE64 was set to yes, plus various other tricks to get
-m64 into packages.
== The problem ==
numpy is failing to build. It looks like there is a mix of 32 and 64-bit
objects.
{{{
numpy-1.3.0.p2/src/setup.py
numpy-1.3.0.p2/src/MANIFEST.in
numpy-1.3.0.p2/.hgtags
Finished extraction
****************************************************
Host system
uname -a:
SunOS hawk 5.11 snv_111b i86pc i386 i86pc
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.3.4/configure --prefix=/usr/local/gcc-4.3.4-GNU-
assembler-Sun-linker --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.3.4 (GCC)
****************************************************
Running from numpy source directory.
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in
/export/home/drkirkby/sage-4.3.1/local/lib
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in
/export/home/drkirkby/sage-4.3.1/local/lib
NOT AVAILABLE
atlas_blas_info:
FOUND:
libraries = ['f77blas', 'cblas', 'atlas']
library_dirs = ['/export/home/drkirkby/sage-4.3.1/local/lib']
language = c
include_dirs = ['/export/home/drkirkby/sage-4.3.1/local/include']
/export/home/drkirkby/sage-4.3.1/spkg/build/numpy-1.3.0.p2/src/numpy/distutils/command/config.py:361:
DeprecationWarning:
+++++++++++++++++++++++++++++++++++++++++++++++++
Usage of get_output is deprecated: please do not
use it anymore, and avoid configuration checks
involving running executable on the target machine.
+++++++++++++++++++++++++++++++++++++++++++++++++
DeprecationWarning)
customize Sage_FCompiler_1
customize Sage_FCompiler_1
customize Sage_FCompiler_1 using config
compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
prototypes -fPIC
compile options: '-c'
gcc: _configtest.c
gcc _configtest.o -L/export/home/drkirkby/sage-4.3.1/local/lib -lf77blas
-lcblas -latlas -o _configtest
ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libf77blas.so:
wrong ELF class: ELFCLASS64
ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libcblas.so:
wrong ELF class: ELFCLASS64
ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libatlas.so:
wrong ELF class: ELFCLASS64
ld: fatal: file processing errors. No output written to _configtest
collect2: ld returned 1 exit status
ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libf77blas.so:
wrong ELF class: ELFCLASS64
ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libcblas.so:
wrong ELF class: ELFCLASS64
ld: fatal: file /export/home/drkirkby/sage-4.3.1/local/lib/libatlas.so:
wrong ELF class: ELFCLASS64
ld: fatal: file processing errors. No output written to _configtest
collect2: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
Status: 255
Output:
FOUND:
libraries = ['f77blas', 'cblas', 'atlas']
library_dirs = ['/export/home/drkirkby/sage-4.3.1/local/lib']
language = c
define_macros = [('NO_ATLAS_INFO', 2)]
include_dirs = ['/export/home/drkirkby/sage-4.3.1/local/include']
lapack_opt_info:
lapack_mkl_info:
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8086#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.