Lazarus 1.0.12 on MacOs Mavericks lazarus / 12-Debugger ---------------------------------------------------------------------- digiflash · 2013-10-13 17:58 I compiled gdb and set the dir in the settings. After hitting the "play" button I get this: Debugger Failed to load file /tmp/projekct1.app: Inappropriate ioctl for device. The GDB command: "-environment-cd "\"/tmp"\""" returned the error: ",msg="\"/tmp/\": No such file or directory."" What's wrong?! I signed gdb to get full control of the process. ---------------------------------------------------------------------- Martin_fr · 2013-10-13 18:24 Which version of GDB? Can you try and save the app first  to a different folder? But also, try this: In the Menu > Tools > Options > Debugger There is a grid with options. It has: Code: [Select]   EncodeCurrentDirPath = gdfeDefault Try and set it to an other value, e.g. gdfeNone. On Mac, the default is adjusted for the old gdb 6.3.50  (default = gdfeQuote) ---------------------------------------------------------------------- jwdietrich · 2013-10-13 18:42 Were you able to run code from Lazarus before installing GDB? Did you install the command line tools? ---------------------------------------------------------------------- digiflash · 2013-10-13 18:49 yes, I installed the command line tools. Searched the internet for a while. Followed the instructions on the lazarus page. The new xcode doesn't have gbd so I installed it through homebrew. how can I run code without gdb?! Can I disable the debugger somewhere?! gdb 7.6.1 is my current version. I changed the settings and saved the project. Nothing has changed. ---------------------------------------------------------------------- Martin_fr · 2013-10-13 18:57 You can disable the debugger on the same options page, using the dropdown on top of the page. After the change, Did you get the exact same error, or just a similar one? You may alsoo have to change the EncodeExeFilename. You can attach a log, as follows: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debu g_session It may help find something. --------- The entire situation is new to all of us. All previous MAC had a fixed version of GDB.  And it is only in the past 3 or 4 weeks that the topic "no gdb in xcode" came up. Now using a different GDB may come with a whole set of issues that no one knows yet. ---------------------------------------------------------------------- digiflash · 2013-10-13 19:10 I am able to compile without the debugger. I also tried to change  EncodeExeFilename. Doesn't work for me. Thank you for your support!  Here's the log ---------------------------------------------------------------------- jwdietrich · 2013-10-13 19:43 I was also able to compile and run an app with Lazarus on Mac OS X Mavericks without debugger. I would be very interested, if you are successful to eventually compile and run GDB, see also the bug report 0025157. After all, I think it must be much easier to compile and run GDB than to modify lldb. ---------------------------------------------------------------------- digiflash · 2013-10-13 19:46 ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) brew install https://raw.github.com/Homebrew/homebrew- dupes/master/gdb.rb That's what I did. In /usr/local/bin gdb is working. Is it possible to use older versions of xcode if I install them manually?! ---------------------------------------------------------------------- Martin_fr · 2013-10-13 20:14 Ah,  I think I see what happens the IDE passes the app bundle. But gdb expects the actual exe inside the app bundle. /Users/admin/Documents/project1.app 1) If you can do without, uncheck "generate app bundle" in the project settings. 2) Menu > Run > Run Param > Edit: "Host Application"  /Users/admin/Documents/project1.app/Content/MacOS/project1 ---------------------------------------------------------------------- digiflash · 2013-10-13 20:25 You are the MAN!    Menu > Run > Run Param > Edit: "Host Application"  /Users/admin/Documents/project1.app/Content/MacOS/project1 Important: Missing a "s"  /Users/admin/Documents/project1.app/Contents/MacOS/project1 ---------------------------------------------------------------------- Martin_fr · 2013-10-13 22:07 I am trying to fix that for upcoming versions. But I can not test it (since I do not have a mac) The attached patch should take care of the app bundle (run param > host app). It does not change the EncodeExeFilename, so that may still have to be set by hand. If you could apply it to your lazarus and let me know if it worked, please ? ---------------------------------------------------------------------- digiflash · 2013-10-14 09:30 Yes I will try it. ---------------------------------------------------------------------- Brian Coleman · 2013-11-05 19:13 Hi, See rale's simple solution which solves the problem. http://forum.lazarus.freepascal.org/index.php/topic,22529.msg133081.ht ml#msg133081 Brian Coleman ---------------------------------------------------------------------- wagenheimer · 2013-11-20 18:07 I can't compile my projects on Mavericks.... I installed gcc following there instructions : http://wiki.freepascal. org/Installing_Lazarus_on_MacOS_X#Xcode_5.0.2B_compatibility_.28Mac_OS _X_10.8_and_10.9.29 But I still can't compile my project. It fails with error : Id: file not found: libgcc.a Any idea of how to solve this?