Building ATLAS on Macbook

View: New views
3 Messages — Rating Filter:   Alert me  

Building ATLAS on Macbook

by Ilmar Wilbers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Over the past days I have been trying to successfully build the latest
stable version of Atlas on a Macbook. I successfully built Lapack first,
and tried installing Atlas as follows:

../configure  --prefix=$PREFIX
--with-netlib-lapack=$PREFIX/lib/liblapack.a -Ss kern /sw/bin/gcc-4

make

but keep getting the following error:
ld: in /Users/ilmarw/ext/src/misc/atlas-3.8.0/build/lib/libatlas.a,
archive has no table of contents
collect2: ld returned 1 exit status
make[5]: *** [xdfindCE] Error 1
make[4]: *** [res/atlas_cacheedge.h] Error 2
make[3]: *** [dinstall] Error 2
make[2]: *** [MMinstall] Error 2

and in stage 2-1-2:
ld: in /Users/ilmarw/ext/src/misc/atlas-3.8.0/build/lib/libatlas.a,
archive has no table of contents
collect2: ld returned 1 exit status
make[4]: *** [xdfindCE] Error 1
make[3]: *** [res/atlas_cacheedge.h] Error 2
make[2]: ***
[/Users/ilmarw/ext/src/misc/atlas-3.8.0/build/tune/blas/gemm/res/atlas_cachedge.h]
Error 2
ERROR 639 DURING CACHE EDGE DETECTION!!.

which I assume is just a result of the first error.

I have installed Xcode, and have tried with both the Apple gcc 4.0.1 and
   gcc 4.2.2

Any help would be highly appreciated!

Sincerly, Ilmar

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

Re: Building ATLAS on Macbook

by Clint Whaley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ilmar,

>Over the past days I have been trying to successfully build the latest
>stable version of Atlas on a Macbook. I successfully built Lapack first,
>and tried installing Atlas as follows:

Since you are merely trying to install the package w/o doing anything, well,
develop-y, this should probably have been posted as a support request, as
described:
   http://math-atlas.sourceforge.net/faq.html#help

>ld: in /Users/ilmarw/ext/src/misc/atlas-3.8.0/build/lib/libatlas.a,
>archive has no table of contents

Hmm.  This makes me think your OS wants you to use ranlib, but my OS X boxes
(and I have several) don't seem to demand it.  What's your OS version on
this box?

In the meantime, after your configure step, but before beginning the build,
edit your Make.inc, and change:
   RANLIB   = echo
to
   RANLIB   = ranlib
and see if that fixes you up.  If it does, I still need to find out about
your OS, since it would be nice if I could figure out what OS versions I
need to change configure to using ranlib on . . .

Cheers,
Clint

**************************************************************************
** R. Clint Whaley, PhD ** Assist Prof, UTSA ** www.cs.utsa.edu/~whaley **
**************************************************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

Re: Building ATLAS on Macbook

by Ilmar Wilbers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am sorry about the posting, I should have read the instructions more
carefully.

Replacing RANLIB = echo with RANLIB = ranlib did the trick. I simply
added the following line to the instructions:
    sed -i.bak -e 's/echo/ranlib/' Make.inc

OS details:
ilmarw@dhcp-248-117 SYSDIR$  uname -a
Darwin dhcp-248-117.nomad.chalmers.se 9.1.0 Darwin Kernel Version 9.1.0:
Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386 i386

gcc:
ilmarw@dhcp-248-117 SYSDIR$  gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

Thanks for you help!

Sincerly, Ilmar

Clint Whaley wrote:

> Ilmar,
>
>> Over the past days I have been trying to successfully build the latest
>> stable version of Atlas on a Macbook. I successfully built Lapack first,
>> and tried installing Atlas as follows:
>
> Since you are merely trying to install the package w/o doing anything, well,
> develop-y, this should probably have been posted as a support request, as
> described:
>    http://math-atlas.sourceforge.net/faq.html#help
>
>> ld: in /Users/ilmarw/ext/src/misc/atlas-3.8.0/build/lib/libatlas.a,
>> archive has no table of contents
>
> Hmm.  This makes me think your OS wants you to use ranlib, but my OS X boxes
> (and I have several) don't seem to demand it.  What's your OS version on
> this box?
>
> In the meantime, after your configure step, but before beginning the build,
> edit your Make.inc, and change:
>    RANLIB   = echo
> to
>    RANLIB   = ranlib
> and see if that fixes you up.  If it does, I still need to find out about
> your OS, since it would be nice if I could figure out what OS versions I
> need to change configure to using ranlib on . . .
>
> Cheers,
> Clint
>
> **************************************************************************
> ** R. Clint Whaley, PhD ** Assist Prof, UTSA ** www.cs.utsa.edu/~whaley **
> **************************************************************************
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Math-atlas-devel mailing list
> Math-atlas-devel@...
> https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel