Recent

Author Topic: Any OSX 64bits user?  (Read 6170 times)

senso

  • Newbie
  • Posts: 6
Any OSX 64bits user?
« on: November 01, 2010, 01:40:04 pm »
I have troubles to use gdb debogger under OSX64.

see http://www.lazarus.freepascal.org/index.php/topic,10668.0.html

am I the only 64 user?

thanks for your help.


Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Any OSX 64bits user?
« Reply #1 on: November 01, 2010, 01:53:36 pm »
I have troubles to use gdb debogger under OSX64.

see http://www.lazarus.freepascal.org/index.php/topic,10668.0.html

am I the only 64 user?


Mac OS X 64 bit does not exist. Unlike on Linux and Windows, there is no difference whatsoever for user-level programs depending on whether the system was booted with a 32 or 64 bit kernel (both kernels are included in Mac OS X 10.6, and which one is used depends on your machine and its EFI boot rom version).

The problem posted in the other thread is shown by this warning from gdb:
Quote
[WARNING] Debugger: Unknown record: unable to read unknown load command 0x80000022

There are two possible things that can cause this:

1) you are trying to load a program compiled with the default options on Mac OS X 10.6 on a machine running an earlier version of Mac OS X. When you want a program to run on earlier versions of Mac OS X, you must however always specifically target that Mac OS X version and the SDK (this is the same for FPC/Lazarus and C/C++/Objective-C/... and any other compiled language).

See http://wiki.freepascal.org/OS_X_Programming_Tips#Compiling_under_10.5_for_10.4_and_below for details.

2) you are using a gdb version from an older Mac OS X version on Mac OS X 10.6. That is not supported by Apple. Install Xcode 3.2 or later under Mac OS X 10.6, and make sure that you do not deselect "install support for UNIX development" (it is selected by default, so do not switch it off).

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Any OSX 64bits user?
« Reply #2 on: November 01, 2010, 01:55:54 pm »
The problem posted in the other thread is shown by this warning from gdb:

Actually, that's the problem of the original poster in the other thread, which was not you. Please don't post references to other threads without any further information, to avoid wasting people's time by letting them type in responses that have little to do with the problem you are experiencing.

senso

  • Newbie
  • Posts: 6
Re: Any OSX 64bits user?
« Reply #3 on: November 01, 2010, 03:39:05 pm »
hello,
thanks for your help.
I use 10.6.3.
I've installed all required packages, on a totally clean mac as you suggested
Then I try to compile the simplest project we can imagine.
The compiler works fine because the app's works outside of the IDE/Debugger.

I Only have troubles gdb.
So is it specific to my config or am I the only 10.6.3 user?


 

TinyPortal © 2005-2018