powerpc

python easy_install fails with “assembler for architecture ppc not installed” on Mac OS X

匆匆过客 提交于 2019-11-28 02:57:42
bash-3.2$ sudo easy_install appscript Password: Searching for appscript Reading http://pypi.python.org/simple/appscript/ Reading http://appscript.sourceforge.net Best match: appscript 1.0.0 Downloading http://pypi.python.org/packages/source/a/appscript/appscript-1.0.0.tar.gz#md5=6619b637037ea0f391f45870c13ae38a Processing appscript-1.0.0.tar.gz Running appscript-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-C4d1az/appscript-1.0.0/egg-dist-tmp-yVTHww /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc

How do I create a single makefile for both 32- and 64-bit?

最后都变了- 提交于 2019-11-27 20:44:44
问题 I have a makefile that works transparently for Linux ( x86_64 ) and OS X Intel ( x86_64 ). This uses 64-bit specific GCC options. Is there a way to adjust the makefile so that I could build for 32-bit and 64-bit OS X PPC ( ppc , ppc64 ) without having to maintain separate, arch-specific makefiles — perhaps something like a pre-processor directive that can determine the architecture before building? 回答1: ARCH := $(shell getconf LONG_BIT) CPP_FLAGS_32 := -D32_BIT ... Some 32 specific compiler

Do I really have to worry about alignment when using placement new operator?

断了今生、忘了曾经 提交于 2019-11-27 19:05:19
I read this When should I worry about alignment? but I am still do not know if I have to worry about not aligned pointer returned by placement new operator - like in this example: class A { public: long double a; long long b; A() : a(1.3), b(1234) {} }; char buffer[64]; int main() { // (buffer + 1) used intentionally to have wrong alignment A* a = new (buffer + 1) A(); a->~A(); } __alignof(A) == 4 , (buffer + 1) is not aligned to 4 . But everything works fine - full example here: http://ideone.com/jBrk8 If this depends on architecture then I am using: linux/powerpc/g++ 4.x.x. [UPDATE] Just

python easy_install fails with “assembler for architecture ppc not installed” on Mac OS X

冷暖自知 提交于 2019-11-27 05:01:40
问题 bash-3.2$ sudo easy_install appscript Password: Searching for appscript Reading http://pypi.python.org/simple/appscript/ Reading http://appscript.sourceforge.net Best match: appscript 1.0.0 Downloading http://pypi.python.org/packages/source/a/appscript/appscript-1.0.0.tar.gz#md5=6619b637037ea0f391f45870c13ae38a Processing appscript-1.0.0.tar.gz Running appscript-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-C4d1az/appscript-1.0.0/egg-dist-tmp-yVTHww /usr/libexec/gcc/powerpc-apple

How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?

*爱你&永不变心* 提交于 2019-11-26 09:32:56
Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became impossible. While it is possible to develop applications with Xcode4 that can also run on 10.5 and maybe even on 10.4 systems (by selecting SDK 10.6, but deployment target 10.5 or 10.4), they will only run on Intel Macs because you need at least SDK 10.5 for building PPC applications. Further there are some rare cases, where you really need to build against an SDK prior to 10.6 for full platform support, e.g. if certain deprecated functionality has vanished completely from the 10.6 SDK, but you'll have