[Please keep the discussion on the list.  Thanks!]

On Mar 23, 2012, at 11:46 , Eddy Barratt wrote:

> Thanks Ned, that's great, now I can get numpy to import so I'm definitely 
> getting somewhere. But scipy still won't build, it 'failed with exit status 
> 1'. The error message included the command about LDSHARE in it's final 
> paragraph. I've included the error message at the end of this email, starting 
> from the part where it appears to have run in to issues.
> 
> I have Xcode 4.2.1.
> 
> Thanks for your help. Eddy
> 
> Error Message:
> 
> compiling C sources
> C compiler: clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch 
> x86_64 -Os -w -pipe -march=core2 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes
> 
> compile options: 
> '-I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
>  
> -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
>  
> -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7
>  -c'
> clang: scipy/cluster/src/vq_module.c
> clang: scipy/cluster/src/vq.c
> clang -bundle -undefined dynamic_lookup  -arch i386 x86_64 
> -isysroot/Developer/SDKs/MacOSX10.6.sdk -g 
> build/temp.macosx-10.5-intel-2.7/scipy/cluster/src/vq_module.o 
> build/temp.macosx-10.5-intel-2.7/scipy/cluster/src/vq.o 
> -Lbuild/temp.macosx-10.5-intel-2.7 -o 
> build/lib.macosx-10.5-intel-2.7/scipy/cluster/_vq.so
> clang: error: no such file or directory: 'x86_64'
> clang: error: no such file or directory: 'x86_64'
> error: Command "clang -bundle -undefined dynamic_lookup  -arch i386 x86_64 
> -isysroot/Developer/SDKs/MacOSX10.6.sdk -g 
> build/temp.macosx-10.5-intel-2.7/scipy/cluster/src/vq_module.o 
> build/temp.macosx-10.5-intel-2.7/scipy/cluster/src/vq.o 
> -Lbuild/temp.macosx-10.5-intel-2.7 -o 
> build/lib.macosx-10.5-intel-2.7/scipy/cluster/_vq.so" failed with exit status 
> 1


It looks like a copy and paste error.  Note the environment variable settings I 
suggested were:

$ export CC=clang
$ export LDSHARED='clang -bundle -undefined dynamic_lookup \
    -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -g'

But in the Distutils output I see:  "-arch i386 x86_64"

--
  Ned Deily
  n...@acm.org -- []


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to