Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › OSx86 Core & 10.X › Build x86_64 binaries with AMD
5,232 reads · 2012-01-17 – 2012-02-20
Note 10.X Core AMD OSx86

Build x86_64 binaries with AMD

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…

Primary Author
@ghostec Published 2012-01-17
Collection
OSx86 Core & 10.X
Archival Footprint
5,232 historical reads · 3 curated field notes (from 5 dispatches) · 2012-01-17 – 2012-02-20
Credited Voices (3)
@ghostec (2)@wastez (2)@Andrewpaul

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? =)

Author Updates & Technical Revisions

Follow-up dispatches by @ghostec

Author Update #1 @ghostec 2012-01-18

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".

Synthesized Community Field Notes

3 technical responses curated from 5 original dispatches

Field Note #1 @wastez 2012-01-18

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.

Field Note #2 @wastez 2012-01-23

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.

Field Note #3 @Andrewpaul 2012-02-20

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,
tec hyv.com/questions/compilation-error-mac-os-x-1068-snow-leopard-64-bit

Sources & Contributor Provenance (3 credited usernames · Thread #7565)
UsernameDossier ContributionDispatchesActive Window
@ghostecPrimary Author22012-01-17 → 2012-01-18
@wastezContributor22012-01-18 → 2012-01-23
@AndrewpaulContributor12012-02-20