[Pythonmac-SIG] Compiling Numeric for OSX-intel

Jeremy Gore jmgore75 at gmail.com
Mon Apr 24 21:06:08 CEST 2006


On Apr 24, 2006, at 1:42 PM, Bob Ippolito wrote:
>
> On Apr 23, 2006, at 4:28 PM, Jeremy wrote:
>
>> I use the old Numeric package quite a bit (numpy is just not ready
>> for primetime) and stupid me, I didn't check if it was available
>> before I installed the Universal binary package for python 2.4.3.
>> Rather than moving backwards, I'd like to try getting it to compile.
>> However, I can't seem to find the cvs/svn with the most recent
>> configuration files.  Where are those?
>>
>> I'd also like to install numarray, numpy, and scipy.  (numpy won't
>> compile due to "can't locate file for : -lcc_dynamic"; this was also
>> a problem for the sources of numarray and Numeric)
>>
>> I'm running a MacBookPro with 10.4.6.
>
> Are you sure you have the latest Xcode installed with the 10.4u  
> SDK?  -lcc_dynamic sounds like compiler mismatch or something.
>
> -bob



I have the latest Xcode, and the 10.4u SDK is installed.  The same  
thing happens whether or not /usr/local/lib/libcc_dynamic.a is absent  
or is symlinked to /usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a.

gcc --version:
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build  
5250)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

/usr/bin/gcc

Here's the output of Numeric 24.2 python setup.py build; the main  
problem seems to be the -lcc_dynamic flag, although the -framework  
vecLib flag also seems to be raising problems.  Either that or -arch  
i386.  :

running build
running build_py
creating build
creating build/lib.macosx-10.4-fat-2.4
copying Lib/ArrayPrinter.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/LinearAlgebra.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/Matrix.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/MLab.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/Numeric.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/numeric_version.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/Precision.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/RandomArray.py -> build/lib.macosx-10.4-fat-2.4
copying Lib/UserArray.py -> build/lib.macosx-10.4-fat-2.4
creating build/lib.macosx-10.4-fat-2.4/FFT
copying Packages/FFT/Lib/__init__.py -> build/lib.macosx-10.4-fat-2.4/ 
FFT
copying Packages/FFT/Lib/FFT.py -> build/lib.macosx-10.4-fat-2.4/FFT
creating build/lib.macosx-10.4-fat-2.4/MA
copying Packages/MA/Lib/__init__.py -> build/lib.macosx-10.4-fat-2.4/MA
copying Packages/MA/Lib/MA.py -> build/lib.macosx-10.4-fat-2.4/MA
copying Packages/MA/Lib/MA_version.py -> build/lib.macosx-10.4- 
fat-2.4/MA
creating build/lib.macosx-10.4-fat-2.4/RNG
copying Packages/RNG/Lib/__init__.py -> build/lib.macosx-10.4-fat-2.4/ 
RNG
copying Packages/RNG/Lib/Statistics.py -> build/lib.macosx-10.4- 
fat-2.4/RNG
creating build/lib.macosx-10.4-fat-2.4/dotblas
copying Packages/dotblas/dotblas/__init__.py -> build/lib.macosx-10.4- 
fat-2.4/dotblas
creating build/lib.macosx-10.4-fat-2.4/Numeric_headers
copying Include/__init__.py -> build/lib.macosx-10.4-fat-2.4/ 
Numeric_headers
creating build/lib.macosx-10.4-fat-2.4/Numeric_headers/Numeric
copying Include/Numeric/arrayobject.h -> build/lib.macosx-10.4- 
fat-2.4/Numeric_headers/Numeric
copying Include/Numeric/f2c.h -> build/lib.macosx-10.4-fat-2.4/ 
Numeric_headers/Numeric
copying Include/Numeric/ranlib.h -> build/lib.macosx-10.4-fat-2.4/ 
Numeric_headers/Numeric
copying Include/Numeric/ufuncobject.h -> build/lib.macosx-10.4- 
fat-2.4/Numeric_headers/Numeric
running build_ext
building '_numpy' extension
creating build/temp.macosx-10.4-fat-2.4
creating build/temp.macosx-10.4-fat-2.4/Src
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
fno-common -dynamic -DNDEBUG -g -O3 -faltivec -lcc_dynamic -framework  
vecLib -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/ 
Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c  
Src/_numpymodule.c -o build/temp.macosx-10.4-fat-2.4/Src/_numpymodule.o
i686-apple-darwin8-gcc-4.0.1: -lcc_dynamic: linker input file unused  
because linking not done
i686-apple-darwin8-gcc-4.0.1: -framework: linker input file unused  
because linking not done
i686-apple-darwin8-gcc-4.0.1: vecLib: linker input file unused  
because linking not done
powerpc-apple-darwin8-gcc-4.0.1: -lcc_dynamic: linker input file  
unused because linking not done
powerpc-apple-darwin8-gcc-4.0.1: -framework: linker input file unused  
because linking not done
powerpc-apple-darwin8-gcc-4.0.1: vecLib: linker input file unused  
because linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
fno-common -dynamic -DNDEBUG -g -O3 -faltivec -lcc_dynamic -framework  
vecLib -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/ 
Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c  
Src/arrayobject.c -o build/temp.macosx-10.4-fat-2.4/Src/arrayobject.o
i686-apple-darwin8-gcc-4.0.1: -lcc_dynamic: linker input file unused  
because linking not done
i686-apple-darwin8-gcc-4.0.1: -framework: linker input file unused  
because linking not done
i686-apple-darwin8-gcc-4.0.1: vecLib: linker input file unused  
because linking not done
powerpc-apple-darwin8-gcc-4.0.1: -lcc_dynamic: linker input file  
unused because linking not done
powerpc-apple-darwin8-gcc-4.0.1: -framework: linker input file unused  
because linking not done
powerpc-apple-darwin8-gcc-4.0.1: vecLib: linker input file unused  
because linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
fno-common -dynamic -DNDEBUG -g -O3 -faltivec -lcc_dynamic -framework  
vecLib -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/ 
Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c  
Src/ufuncobject.c -o build/temp.macosx-10.4-fat-2.4/Src/ufuncobject.o
powerpc-apple-darwin8-gcc-4.0.1: -lcc_dynamic: linker input file  
unused because linking not done
powerpc-apple-darwin8-gcc-4.0.1: -framework: linker input file unused  
because linking not done
powerpc-apple-darwin8-gcc-4.0.1: vecLib: linker input file unused  
because linking not done
i686-apple-darwin8-gcc-4.0.1: -lcc_dynamic: linker input file unused  
because linking not done
i686-apple-darwin8-gcc-4.0.1: -framework: linker input file unused  
because linking not done
i686-apple-darwin8-gcc-4.0.1: vecLib: linker input file unused  
because linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g  
-bundle -undefined dynamic_lookup -faltivec -lcc_dynamic -framework  
vecLib build/temp.macosx-10.4-fat-2.4/Src/_numpymodule.o build/ 
temp.macosx-10.4-fat-2.4/Src/arrayobject.o build/temp.macosx-10.4- 
fat-2.4/Src/ufuncobject.o -o build/lib.macosx-10.4-fat-2.4/_numpy.so
/usr/bin/ld: for architecture i386
/usr/bin/ld: can't locate file for: -lcc_dynamic
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't locate file for: -lcc_dynamic
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccCKxQm1.out (No such file or  
directory)
error: command 'gcc' failed with exit status 1

Why is it linking ALWAYS causes problems?  Whose bright idea was it  
to spread all these unix programs and their associated files across  
dozens of directories anyway?  Frameworks don't seem that counter  
intuitive and they're a lot cleaner. 
  


More information about the Pythonmac-SIG mailing list