InfiniteMac  


Reply
 
Thread tools Display modes
  #1  
Old 01-17-2012, 12:12 AM
ghostec ghostec is online now
Puma
 
Join Date: Jan 2012
Posts: 29
Build x86_64 binaries with AMD

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
Reply With Quote
  #2  
Old 01-18-2012, 07:50 AM
wastez's Avatar
wastez wastez is offline
 
Join Date: Oct 2010
Posts: 156
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.

Motherboard: MSI K9AG Neo2-Digital
Chipset: AMD 690G + SB600
CPU: AMD Phenom II 945 4x 3.0GHz
RAM: 8 GB DDR2 800 MHz
Graphics: MSI ATI Radeon 5770 OC- Edition
Sound: ALC 888 + GR Session I/O + HDMI from Graphics
Storage: SSD Corsair Force 3 120GB + 4x Samsung F3 1TB
___________________________________________
Mac OS-X 10.6.8 Snow Leopard
AnV 10.8.0 Legacy Kernel V2 - 64 Bit Mode
cparm module Bootloader - AMD Version


Everything injected via dsdt!!!

Last edited by wastez; 01-18-2012 at 07:55 AM.
Reply With Quote
  #3  
Old 01-18-2012, 06:03 PM
ghostec ghostec is online now
Puma
 
Join Date: Jan 2012
Posts: 29
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".
Reply With Quote
  #4  
Old 01-23-2012, 07:39 PM
wastez's Avatar
wastez wastez is offline
 
Join Date: Oct 2010
Posts: 156
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.

Motherboard: MSI K9AG Neo2-Digital
Chipset: AMD 690G + SB600
CPU: AMD Phenom II 945 4x 3.0GHz
RAM: 8 GB DDR2 800 MHz
Graphics: MSI ATI Radeon 5770 OC- Edition
Sound: ALC 888 + GR Session I/O + HDMI from Graphics
Storage: SSD Corsair Force 3 120GB + 4x Samsung F3 1TB
___________________________________________
Mac OS-X 10.6.8 Snow Leopard
AnV 10.8.0 Legacy Kernel V2 - 64 Bit Mode
cparm module Bootloader - AMD Version


Everything injected via dsdt!!!
Reply With Quote
  #5  
Old 02-20-2012, 01:35 PM
Andrewpaul Andrewpaul is offline
Cheetah
 
Join Date: Feb 2012
Posts: 1
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/comp...leopard-64-bit

Last edited by Andrewpaul; 02-20-2012 at 01:38 PM.
Reply With Quote