473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Atlas and NumPy Problems

Hello all,

I am hoping someone out there will be able to help me. I am trying to install
a program that utilizes NumPy. In installing NumPy, I realized that I was
lacking Atlas. I ran into the following problems installing Atlas and NumPy,
as I realized that NumPy could be installed using the Mac OSX veclib already
built in. If anyone has any ideas on how to fix either of these, I would be
most grateful.

I am fairly new to Python (I've been learning it myself), so I apologize if
these questions are a bit foolish. I've been fighting these problems for
days, and I'm out of ideas.

I am running OS X v10.3, gcc v3.3, Python v2.3, ScientificPython v2.4.3, and
am attempting to install NumPy 23.7

Thank you!

-Justin
ATLAS install problem:

n file included from
/Users/jalemkul/Desktop/ATLAS/include/
atlas_prefetch.h:8, from
.../ATL_col2blk.c:33:/Users/jalemkul/Desktop/ATLAS/
include/atlas_altivec.h:6:27: altivec.h: No such file or
directory../ATL_col2blk.c: In function
`ATL_dcol2blk_aX':../ATL_col2blk.c:79: error: `vector' undeclared (first use
in this
function)../ATL_col2blk.c:79: error: (Each undeclared identifier is reported
only once../
ATL_col2blk.c:79: error: for each function it appears in.)../ATL_col2blk.c:79:
error: parse
error before "float"../ATL_col2blk.c:80: error: parse error before
"float"make[7]: ***
[ATL_dcol2blk_aX.o] Error 1make[7]: *** Waiting for unfinished
jobs....make[6]: *** [dlib]
Error 2make[5]: *** [dmmlib]
Error 2make[4]: *** [res/atlas_cacheedge.h]
Error2make[3]: *** [dinstall]
Error 2make[2]: *** [MMinstall]
Error 2 STAGE2-1-2: CacheEdge
DETECTIONmake -f Makefile INSTALL_LOG/atlas_cacheedge.h pre=d 2>&1 |
../xatlas_tee
INSTALL_LOG/dMMCACHEEDGE.LOGcd /Users/jalemkul/Desktop/ATLAS/tune/blas/gemm/
OSX_UNKNOWNAltiVec_2 ; make res/atlas_cacheedge.h pre=dmake dRunFindCEcd
/Users/
jalemkul/Desktop/ATLAS/src/blas/gemm/OSX_UNKNOWNAltiVec_2 ; make dlibmake
auxillib
dcleanuplib dusergemmcd /Users/jalemkul/Desktop/ATLAS/src/auxil/
OSX_UNKNOWNAltiVec_2 ; make libmake[7]: Nothing to be done for `lib'.cd KERNEL
; make
-f dMakefile dlibmake[7]: Nothing to be done for `dlib'.cd
/Users/jalemkul/Desktop/ATLAS/
src/blas/gemm/OSX_UNKNOWNAltiVec_2 ; make dusermmmake[7]: `dusermm' is up to
date.make -j 2 dlib.grd/usr/bin//gcc -o ATL_dcol2blk_aX.o -c -DL2SIZE=4194304
-I/Users/
jalemkul/Desktop/ATLAS/include -I/Users/jalemkul/Desktop/ATLAS/include/
OSX_UNKNOWNAltiVec_2 -I/Users/jalemkul/Desktop/ATLAS/include/contrib
-DATL_OS_OSX -DATL_AltiVec -DATL_AVgcc -DATL_AS_OSX_PPC -DATL_NCPU=2 -O
-maltivec -mabi=altivec -DDREAL -DALPHAX ../ATL_col2blk.c
/usr/bin//gcc -o ATL_drow2blkT_aX.o -c -DL2SIZE=4194304
-I/Users/jalemkul/Desktop/
ATLAS/include -I/Users/jalemkul/Desktop/ATLAS/include/OSX_UNKNOWNAltiVec_2
-I/Users/
jalemkul/Desktop/ATLAS/include/contrib -DATL_OS_OSX -DATL_AltiVec
-DATL_AVgcc
-DATL_AS_OSX_PPC -DATL_NCPU=2 -O -maltivec -mabi=altivec -DDREAL -DALPHAX ../
ATL_row2blkT.c
In file included from
/Users/jalemkul/Desktop/ATLAS/include/atlas_prefetch.h:8,
from ../ATL_row2blkT.c:32:
/Users/jalemkul/Desktop/ATLAS/include/atlas_altivec.h:6:27: altivec.h: No such
file or
directory
.../ATL_row2blkT.c: In function `ATL_drow2blkT_NB_aX':
.../ATL_row2blkT.c:64: error: `vector' undeclared (first use in this function)
.../ATL_row2blkT.c:64: error: (Each undeclared identifier is reported only once
.../ATL_row2blkT.c:64: error: for each function it appears in.)
.../ATL_row2blkT.c:64: error: parse error before "float"
.../ATL_row2blkT.c:65: error: parse error before "float"
.../ATL_row2blkT.c:74: error: parse error before "float"
.../ATL_row2blkT.c:75: error: parse error before "float"
In file included from
/Users/jalemkul/Desktop/ATLAS/include/atlas_prefetch.h:8,
from ../ATL_col2blk.c:33:
/Users/jalemkul/Desktop/ATLAS/include/atlas_altivec.h:6:27: altivec.h: No such
file or
directory
.../ATL_col2blk.c: In function `ATL_dcol2blk_aX':
.../ATL_col2blk.c:79: error: `vector' undeclared (first use in this function)
make[6]: *** [ATL_drow2blkT_aX.o] Error 1
make[6]: *** Waiting for unfinished jobs....
.../ATL_col2blk.c:79: error: (Each undeclared identifier is reported only once
.../ATL_col2blk.c:79: error: for each function it appears in.)
.../ATL_col2blk.c:79: error: parse error before "float"
.../ATL_col2blk.c:80: error: parse error before "float"
make[6]: *** [ATL_dcol2blk_aX.o] Error 1
make[5]: *** [dlib] Error 2
make[4]: *** [dmmlib] Error 2
make[3]: *** [res/atlas_cacheedge.h] Error 2
make[2]: ***
[/Users/jalemkul/Desktop/ATLAS/tune/blas/gemm/OSX_UNKNOWNAltiVec_2/
res/atlas_cachedge.h] Error 2
ERROR 572 DURING CACHE EDGE DETECTION!!.
cd ../.. ; make error_report arch=OSX_UNKNOWNAltiVec_2
make -f Make.top error_report arch=OSX_UNKNOWNAltiVec_2
uname -a 2>&1 >> bin/OSX_UNKNOWNAltiVec_2/INSTALL_LOG/ERROR.LOG
/usr/bin//gcc -v 2>&1 >> bin/OSX_UNKNOWNAltiVec_2/INSTALL_LOG/ERROR.LOG
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
/usr/bin//gcc -V 2>&1 >> bin/OSX_UNKNOWNAltiVec_2/INSTALL_LOG/ERROR.LOG
gcc: `-V' option must have argument
make[4]: [error_report] Error 1 (ignored)
/usr/bin//gcc --version 2>&1 >>
bin/OSX_UNKNOWNAltiVec_2/INSTALL_LOG/ERROR.LOG
/usr/bin//tar cf error_OSX_UNKNOWNAltiVec_2.tar Make.OSX_UNKNOWNAltiVec_2
bin/
OSX_UNKNOWNAltiVec_2/INSTALL_LOG/*
/usr/bin//gzip --best error_OSX_UNKNOWNAltiVec_2.tar
mv error_OSX_UNKNOWNAltiVec_2.tar.gz error_OSX_UNKNOWNAltiVec_2.tgz
Error report error_<ARCH>.tgz has been created in your top-level ATLAS
directory. Be sure to include this file in any help request.
First, make sure this error is not covered in the ATLAS errata file,
http://math-atlas.sourceforge.net/errata.html
All known errors, and most common mistakes/system problems are documented
in this file, so it will save everyone hassle in the long run if you take
the time to scope it out before sending e-mail to the help list.

If this does not have the solution to your problem, and you can't figure out
what went wrong, submit a support request to the ATLAS support tracker, as
discussed here:
http://math-atlas.sourceforge.net/faq.html#help

In the above examples, <ARCH> should be replaced with your architecture
string, such as "Linux_PIII" or "FreeBSD_21264".

make[1]: *** [install] Error 255
make: *** [install] Error 2
NumPy install problem:

warning: no library file corresponding to '/System/Library' found (skipping)
gcc -Wl,-F. -Wl,-F. -bundle -framework Python
build/temp.darwin-7.7.0-Power_Macintosh
-2.3/Packages/dotblas/dotblas/_dotblas.o -L/System/Library -o
build/lib.darwin-7.7.0-
Power_Macintosh-2.3/_dotblas.so
ld: Undefined symbols:
_cblas_caxpy
_cblas_cdotc_sub
_cblas_cdotu_sub
_cblas_cgemm
_cblas_cgemv
_cblas_daxpy
_cblas_ddot
_cblas_dgemm
_cblas_dgemv
_cblas_saxpy
_cblas_sdot
_cblas_sgemm
_cblas_sgemv
_cblas_zaxpy
_cblas_zdotc_sub
_cblas_zdotu_sub
_cblas_zgemm
_cblas_zgemv
error: command 'gcc' failed with exit status 1

Jul 18 '05 #1
2 3530
Justin Lemkul wrote:
Hello all,

I am hoping someone out there will be able to help me. I am trying to install
a program that utilizes NumPy. In installing NumPy, I realized that I was
lacking Atlas. I ran into the following problems installing Atlas and NumPy,
as I realized that NumPy could be installed using the Mac OSX veclib already
built in. If anyone has any ideas on how to fix either of these, I would be
most grateful.

I am fairly new to Python (I've been learning it myself), so I apologize if
these questions are a bit foolish. I've been fighting these problems for
days, and I'm out of ideas.

I am running OS X v10.3, gcc v3.3, Python v2.3, ScientificPython v2.4.3, and
am attempting to install NumPy 23.7


Did you try to follow my advice from the other thread? What does your
setup.py look like?

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #2
Robert Kern wrote:
Justin Lemkul wrote:
Hello all,

I am hoping someone out there will be able to help me. I am trying to
install a program that utilizes NumPy. In installing NumPy, I
realized that I was lacking Atlas. I ran into the following problems
installing Atlas and NumPy, as I realized that NumPy could be
installed using the Mac OSX veclib already built in. If anyone has
any ideas on how to fix either of these, I would be most grateful.

I am fairly new to Python (I've been learning it myself), so I
apologize if these questions are a bit foolish. I've been fighting
these problems for days, and I'm out of ideas.

I am running OS X v10.3, gcc v3.3, Python v2.3, ScientificPython
v2.4.3, and am attempting to install NumPy 23.7

Did you try to follow my advice from the other thread? What does your
setup.py look like?


For the record, he did in fact follow my advice (removing the
ATLAS-specific defaults and letting setup.py autodetect the vecLib
framework), and it turns out my advice was incomplete.

One also needs to add

extra_link_args=extra_link_args,

to the argument list of the Extension() call for the _dotblas module.

It worked fine on my machine because I had modified my Python config to
use "-undefined dynamic_lookup" instead of explicit -framework arguments
(this change is necessary for the neighborly cohabitation of different
Python versions, I believe. See the PythonMac-SIG archives for more
information).

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pepijn Kenter | last post by:
Hi all. I'm new to python and want to use it for an assignment. I have succesfully implemented a galois field class including the _repr__, __mul__, __div__, __add__ and __sub__ methods....
9
by: drife | last post by:
Hello, Could someone please provide instructions for install Numeric with ATLAS and LAPACK? I've actually done this correctly, I think. But I don't see any difference in the speed. I'm...
15
by: nikie | last post by:
I'm a little bit stuck with NumPy here, and neither the docs nor trial&error seems to lead me anywhere: I've got a set of data points (x/y-coordinates) and want to fit a straight line through...
13
by: Gary Wessle | last post by:
Hi I am trying to install NumPy in my debian/testing linux 2.6.15-1-686. with no numpy for debian/testing, I am left alone, since the experimental version available by debian will result in a...
15
by: greg.landrum | last post by:
After using numeric for almost ten years, I decided to attempt to switch a large codebase (python and C++) to using numpy. Here's are some comments about how that went. - The code to...
2
by: robert | last post by:
in Gnuplot (Gnuplot.utils) the input array will be converted to a Numeric float array as shown below. When I insert a numpy array into Gnuplot like that below, numbers 7.44 are cast to 7.0 Why is...
5
by: robert | last post by:
Turning algs for old NumPy modules into numpy code I suffer from this: Upon further processing of returns of numpy calculations, lots of data in an apps object tree will become elementary numpy...
3
by: Duncan Smith | last post by:
Hello, Since moving to numpy I've had a few problems with my existing code. It basically revolves around the numpy scalar types. e.g. ------------------------------------------------ array(,...
0
by: Gary Herron | last post by:
Marlin Rowley wrote: Numpy can do this for you. First, do you really mean the array to contain lists of one string each? If so: kludge here array(, dtype='|S1') array(, ,
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.