Re: [Numpy-discussion] Problem Building Numpy with Python 2.7.1 and OS X 10.7.3

2012-02-28 Thread Ralf Gommers
On Mon, Feb 27, 2012 at 1:47 AM, Patrick Armstrong  wrote:

> Hi,
>
> On 2012-02-25, at 5:14 AM, Ralf Gommers wrote:
>
> Since you're using pip, I assume that gcc-4.2 is llvm-gcc. As a first
> step, I suggest using plain gcc and not using pip (so just "python setup.py
> install"). Also make sure you follow the recommendations in "version
> specific notes" at http://scipy.org/Installing_SciPy/Mac_OS_X.
>
>
> As is mentioned earlier in the thread, Xcode doesn't distribute plain gcc
> anymore. I've tried building with llvm-gcc, and with clang, and I get the
> same failed result.
>
> To be sure, I tried building with a plain "python setup.py install", and I
> get the same result. Here' my build log with clang:
> https://gist.github.com/1920128
>

Just tried on OS X 10.6 with clang, that works fine. No idea why 10.7 would
be different.
$ export CC=clang
$ python setup.py build_ext -i

Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Problem Building Numpy with Python 2.7.1 and OS X 10.7.3

2012-02-26 Thread Patrick Armstrong
Hi,

On 2012-02-25, at 5:14 AM, Ralf Gommers wrote:
> Since you're using pip, I assume that gcc-4.2 is llvm-gcc. As a first step, I 
> suggest using plain gcc and not using pip (so just "python setup.py 
> install"). Also make sure you follow the recommendations in "version specific 
> notes" at http://scipy.org/Installing_SciPy/Mac_OS_X.

As is mentioned earlier in the thread, Xcode doesn't distribute plain gcc 
anymore. I've tried building with llvm-gcc, and with clang, and I get the same 
failed result. 

To be sure, I tried building with a plain "python setup.py install", and I get 
the same result. Here' my build log with clang: https://gist.github.com/1920128

--patrick___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Problem Building Numpy with Python 2.7.1 and OS X 10.7.3

2012-02-26 Thread Ralf Gommers
On Sun, Feb 26, 2012 at 4:38 PM, Samuel John  wrote:

> Hi
>
> The plain gcc (non-llvm) is no longer there, if you install Lion and
> directly Xcode 4.3.
> Only, if you have the old Xcode 4.2 or lower, then you may have a non-llvm
> gcc.
>
> For Xcode 4.3, I recommend installing the "Command Line Tools for Xcode"
> from the preferences of Xcode. Then you'll have the unix tools and
> compilers for building software.
>
> The solution is to compile numpy and scipy with clang. I had no problems
> so far but I think few people actually compiled it with clang.
>
> The issue #1500 (scipy) may help here.
> http://projects.scipy.org/scipy/ticket/1500
>
>
> On 25.02.2012, at 14:14, Ralf Gommers wrote:
> > Since you're using pip, I assume that gcc-4.2 is llvm-gcc. As a first
> step, I suggest using plain gcc and not using pip (so just "python setup.py
> install"). Also make sure you follow the recommendations in "version
> specific notes" at http://scipy.org/Installing_SciPy/Mac_OS_X.
>
> This website should be updated.
>

Samuel, do you want to take a shot at updating it? You've successfully
compiled both numpy and scipy in a couple of different ways on Lion, so
you'll probably do a much better job there than I could. It's a wiki page,
so you should be able to edit it directly.

Thanks,
Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Problem Building Numpy with Python 2.7.1 and OS X 10.7.3

2012-02-26 Thread Samuel John
Hi

The plain gcc (non-llvm) is no longer there, if you install Lion and directly 
Xcode 4.3.
Only, if you have the old Xcode 4.2 or lower, then you may have a non-llvm gcc.

For Xcode 4.3, I recommend installing the "Command Line Tools for Xcode" from 
the preferences of Xcode. Then you'll have the unix tools and compilers for 
building software.

The solution is to compile numpy and scipy with clang. I had no problems so far 
but I think few people actually compiled it with clang.

The issue #1500 (scipy) may help here. 
http://projects.scipy.org/scipy/ticket/1500


On 25.02.2012, at 14:14, Ralf Gommers wrote:
> Since you're using pip, I assume that gcc-4.2 is llvm-gcc. As a first step, I 
> suggest using plain gcc and not using pip (so just "python setup.py 
> install"). Also make sure you follow the recommendations in "version specific 
> notes" at http://scipy.org/Installing_SciPy/Mac_OS_X.

This website should be updated.

cheers,
 Samuel
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Problem Building Numpy with Python 2.7.1 and OS X 10.7.3

2012-02-25 Thread Ralf Gommers
On Thu, Feb 23, 2012 at 11:28 PM, Patrick Armstrong wrote:

> Hi there,
>
> I'm having a problem building NumPy on Python 2.7.1 and OS X 10.7.3. Here
> is my build log:
>
> https://gist.github.com/1895377
>
> Does anyone have any idea what might be happening? I get a very similar
> error when compiling with clang.
>
> Installing a binary really isn't an option for me due to some specifics of
> my project. Does anyone have an idea what might be wrong?
>
>
Since you're using pip, I assume that gcc-4.2 is llvm-gcc. As a first step,
I suggest using plain gcc and not using pip (so just "python setup.py
install"). Also make sure you follow the recommendations in "version
specific notes" at http://scipy.org/Installing_SciPy/Mac_OS_X.

Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion