Numpy on python 2.7a

A. Cavallo a.cavallo at cavallinux.eu
Tue May 5 15:06:17 EDT 2009


Hi,

I'm trying to compile numpy using my own pet project based on the python svn 
code (that's the reason for the 2.7a tag).

It is essentially a /opt python installation and it tailored for linux: its 
main goal is to be installed in parallel so it won't collide with a system 
installed python (this won't impact the sys admin work).

The rpms built so far can be found under:

http://download.opensuse.org/repositories/home:/cavallo71:/python-opt/

It includes several patches both stolen from other sources, some made by 
myself (at some point I plan to do the same for debian based distributions 
when I'll have some spare time) and it contains a smoke test to verify the 
build is ok.

The user willing to activate the "opt-python" has to just source the 
file /opt/opt-python-2.7a0/opt-python-env.sh and he/she will have a fully 
working python (in this way there could be several different python version 
at the same time).

So far so good, I've been able to compile the python imaging library, but it 
fails to compile numpy.

The message I'm receiving is:


============
/opt/opt-python-2.7a0/include/python2.7/pyconfig.h:127:1: warning: this is the 
location of the previous definition
ar: adding 1 object files to build/temp.linux-i686-2.7/libnpymath.a
ar: illegal option -- /
Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] 
[count] archive-file file...
       ar -M [<mri-script]
 commands:
  d            - delete file(s) from the archive
  m[ab]        - move file(s) in the archive
  p            - print file(s) found in the archive
  q[f]         - quick append file(s) to the archive
  r[ab][f][u]  - replace existing or insert new file(s) into the archive
  t            - display contents of archive
  x[o]         - extract file(s) from the archive
 command specific modifiers:
  [a]          - put file(s) after [member-name]
  [b]          - put file(s) before [member-name] (same as [i])
  [N]          - use instance [count] of name
  [f]          - truncate inserted file names
  [P]          - use full path names when matching
  [o]          - preserve original dates
  [u]          - only replace files that are newer than current archive 
contents
 generic modifiers:
  [c]          - do not warn if the library had to be created
  [s]          - create an archive index (cf. ranlib)
  [S]          - do not build a symbol table
  [T]          - make a thin archive
  [v]          - be verbose
  [V]          - display the version number
  @<file>      - read options from <file>
 emulation options:
  No emulation specific options
ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 efi-bsdrv-ia32 
efi-rtdrv-ia32 elf32-little elf32-big elf64-alpha ecoff-litt
lealpha elf64-little elf64-big elf32-littlearm elf32-bigarm elf32-hppa-linux 
elf32-hppa elf64-hppa-linux elf64-hppa elf64-x86-64 elf64-ia64
-little elf64-ia64-big efi-app-ia64 efi-bsdrv-ia64 efi-rtdrv-ia64 elf32-m68k 
a.out-m68k-linux elf32-tradbigmips elf32-tradlittlemips ecoff-
bigmips ecoff-littlemips elf32-ntradbigmips elf64-tradbigmips 
elf32-ntradlittlemips elf64-tradlittlemips elf32-powerpc aixcoff-rs6000 elf32
-powerpcle ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000 elf32-s390 
elf64-s390 elf32-sh-linux elf32-shbig-linux elf32-sparc a.out-
sparc-linux elf64-sparc a.out-sunos-big efi-app-x86_64 efi-bsdrv-x86_64 
efi-rtdrv-x86_64 mach-o-le mach-o-be mach-o-fat pef pef-xlib sym sr
ec symbolsrec tekhex binary ihex trad-core
ar: illegal option -- /
Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] 
[count] archive-file file...


============

Is there any way I can increase the output to discover what went wrong?

Best regards,
Antonio Cavallo



More information about the Python-list mailing list