Hi all,
I searched for this issue in recent archives, and I did not see it. If I
missed it, please redirect me.
It seems like the search capability of the archives could be improved…
Environment
OSX 10.6.7
XCODE 4.0.2
Python 2.6.6 (python.com install, not stock Apple 2.6.whatever – this was
required by matplotlib.py)
Since there are no Binary Packages of cx_freeze for OSX, I am forced to build
from sources. If there are binaries someplace (on the internet), please let me
know where.
The issue I am seeing is that the build is trying to make a FAT version of
something (), and there is no PPC assembler, since 10.6 and DevTools for it
only support Intel processors.
Anyone trying to build from source on OSX 10.6 with XCODE 4.0.2 is going to see
this problem.
I have made the following, possibly not expected changes
1) $ sudo ln -s gcc-4.2 gcc-4.0
2) export MACOSX_DEPLOYMENT_TARGET=10.6
Change #1 could be the source of my problem. Am I using the 'wrong' version of
XCODE? Can cx_freeze only be built with XCODE 3.x?
Change#2 got rid of a warning, but did not affect the real issue…
OK, I just noticed that
1) The build is not using the tools in the Developer directory, it is using the
OSX tools in the /usr/bin directory…
2) The Developer directory () DOES have gcc-4.0.
I do not think that this will impact the PPC issue, but it seems odd…
Should I put the developer tools in my $PATH?
There is no gcc-4.0 in /usr/bin/. But there is in XCODE 4. Why is the version
of GCC hard coded like this? To prevent using older versions of the compiler
which are incompatible, or to prevent using newer versions of the compiler
which do not have PPC assemblers? I do not think Apple made an Intel version
of gcc which created PPC output (from what I have read).
PS - Here is the relevant text from monitor…
$ python setup.py build
adding base module named StringIO
adding base module named UserDict
adding base module named _abcoll
…
…
…
copying cx_Freeze/main.py -> build/lib.macosx-10.6-fat-2.6/cx_Freeze
copying cx_Freeze/windist.py -> build/lib.macosx-10.6-fat-2.6/cx_Freeze
running build_ext
building 'cx_Freeze.util' extension
creating build/temp.macosx-10.6-fat-2.6/source
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2
-DNDEBUG -g -O3
-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
source/util.c -o build/temp.macosx-10.6-fat-2.6/source/util.o
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler
(/usr/bin/../libexec/gcc/darwin/ppc/as or
/usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
lipo: can't open input file:
/var/folders/gY/gY+p1oTwEcCtFzSEJM0A9++++TI/-Tmp-//ccHbKE3K.out (No such file
or directory)
error: command 'gcc-4.0' failed with exit status 1
OK, realizing my possible mistake, I try an experiment.
3) Remove the soft link of
4) sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0
/usr/bin/gcc-4.0
Here I may have crossed things up badly. Using a single tool from one area,
and everything else from elsewhere.
NOW I get the error I have seen in the archive, but have not seen FIXED in the
archives. At least I know I am no longer alone…
I am now getting: lipo: can't figure out the architecture type of:
/var/folders/gY/gY+p1oTwEcCtFzSEJM0A9++++TI/-Tmp-//ccSJXe5M.out
…
…
…
building 'cx_Freeze.util' extension
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2
-DNDEBUG -g -O3
-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
source/util.c -o build/temp.macosx-10.6-fat-2.6/source/util.o
gcc-4.0: installation problem, cannot exec
'/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/powerpc-apple-darwin10-gcc-4.0.1':
No such file or directory
lipo: can't figure out the architecture type of:
/var/folders/gY/gY+p1oTwEcCtFzSEJM0A9++++TI/-Tmp-//ccSJXe5M.out
error: command 'gcc-4.0' failed with exit status 255
Is there a global I can set to turn off the attempt to make both FAT and PPC
versions of everything?
I tried setting Target to OSX 10.6, that only got rid of one warning, the
attempts to build FAT versions (and the expected failures) goes on.
I look forward to your responses.
Thank you!
--Dave
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users