PDA

View Full Version : Build x86_64 binaries with AMD


ghostec
01-17-2012, 02:12 AM
Hi!

First of all, sorry for possible mistakes with my english skills.

I finally have a almost 100% working OSX in my AMD pc... But..
I need to use homebrew to setup my developing environment, and every single program I try to build with it goes wrong.
I've figured out that the problem was that brew tries to make a Universal (x86_64 + i386) binaries. Then, editing brew formulas to make only i386 solved that.

But is that any way to build x86_64 binaries with AMD? =)

Thx

wastez
01-18-2012, 09:50 AM
Hello,

You donīt have to built the x86_64 because the legacy kernel is a hybrid (since 10.6.4).
Itīs not possible to run 64 bit kernelmode on a amd system.

But itīs possible to run a 64 bit userland with the 32 bit kernel, so all 64 bit apps will work.
You just have to boot with the flags arch=i386 -force64 and you will enter 64 bit userland.
Donīt forget to patch your binaries otherwise the 32 bit apps will crash.

If you have problems i will try to help you.

To help you we need to know your OS version and your specs.

ghostec
01-18-2012, 08:03 PM
Hi!

Thanks for the reply.

I'm with 10.6.8 using Andy's kernel, who patches the apps on the fly, I believe.

My specs:
AMD Phenom II X4 970
M4A87TD-USB3
2x 4GB 1333mhz Corsair
Zotac Geforce 210 1GB

The OSX is running perfectly, I spent 1 week trying to make it work without problems. (Even posted a guide into the right session here)

The only problem I am having is the one I posted above. I've figured out how to build my apps for development with homebrew, the only way it's possible for me is editing the formulas to only build with i386 arch, I'm not able to compile x86_64 =/

This is the error I get:

ident.c:1: error: CPU you selected does not support x86-64 instruction set
ident.c:1: error: CPU you selected does not support x86-64 instruction set
kwset.c:1: error: CPU you selected does not support x86-64 instruction set
kwset.c:1: error: CPU you selected does not support x86-64 instruction set
hex.c:1: error: CPU you selected does not support x86-64 instruction set
hex.c:1: error: CPU you selected does not support x86-64 instruction set

I'm also having problems to run Final Cut X, It freezes after loading and sometimes it get stuck in the "loading compressor support".

wastez
01-23-2012, 09:39 PM
Final Cut X will not run on an AMD System cause of missing SSSE3 instructions. ;)
Use final cut pro 7 which will work.

Did you boot into 64 bit mode?
You can try to disable on the fly patching cause some apps will not work without compressing it with upx.
Just use the flag std_dyld=Yes and patch your dyld binaries.

I never had problems compiling x86_64 binaries.

Andrewpaul
02-20-2012, 03:35 PM
Hi,
If you click on the very top item (with the app icon) in the files pane on the left, this will bring up a screen in the editor that has a validate settings button at the bottom center. Click that and it will bring down a sheet with suggestions for fixing the app. Just click "perform changes" and that should update it so it runs on Xcode 4.

Hope your problem is solved,
http://www.techyv.com/questions/compilation-error-mac-os-x-1068-snow-leopard-64-bit