Debugger "Failed to load file: Architecture of file not recognized" lazarus / 12-Debugger ---------------------------------------------------------------------- Alex_Cher · 2008-12-27 16:39 I have Mac OS 10.5 and Lazarus 0.9.2.7 Package LNet works in Windows but does not work in Mac OS. To make this package work I tried to reconfigure and recompile Lazarus with different options. But this changes did not take any positive effect. But after that on start any project Lazarus shows error message Debugger "Failed to load file: Architecture of file not recognized". To fix it I tried everything, include uninstalling Lazarus with FPC and removing from system all files and folders which tave name like *azarus* and *fpc*. But after new installation of Lazarus and FPC (this or newer or older version) the error appears again. ---------------------------------------------------------------------- Marc · 2008-12-28 00:54 Open a command prompt and do a "file your_exe" and paste the results here. Does your_exe run without debugger ? ---------------------------------------------------------------------- Alex_Cher · 2008-12-28 15:07 Thank you for your reply. My simplest project (p1) conteins only one form and a button on it. Yes, it runs. Command prompt's output is: ./open p1.app TCarbonWindow.SetScrollInfo TODO TCarbonWindow.SetScrollInfo TODO TCarbonWindow.SetScrollInfo TODO ---------------------------------------------------------------------- Marc · 2008-12-29 13:44 and what if you do Code: [Select]gdb p1.app run ---------------------------------------------------------------------- Alex_Cher · 2008-12-30 22:30 Ooops... GDB returns the same error. Here is terminal's output: gdb p1.app GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB.  Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Architecture of file not recognized. (gdb) run Starting program: /Users/brother/Documents/p1.app/Contents/MacOS/p1 warning: Couldn't set the process group, error: 0 Program exited with code 055. (gdb) So, I see that GDB is configured for i386. Could you explain me how to reconfigure it back to PowerPC. I really don't remember how I have made this configuration. Thanks in advance. Alex. ---------------------------------------------------------------------- Marc · 2008-12-30 23:09 are you sure you have a powerPC apple ? All recent models are afaik x86. The configured for i386 is a configuration during the compilation of gdb, so unless you recently "updated" gdb with the wrong architecture. it is nothing you can configure yourself. if you have an intel mac, you should use ppc386 as compiler and not ppcppc ---------------------------------------------------------------------- Alex_Cher · 2009-01-01 07:47 You are right! I checked my Mac's configuration. It's  architecture is i386. Thank you for your replies. PS: But it is strange for me, I've installed several programs (include Lazarus) for PowerPC architecture and they work correctly. ---------------------------------------------------------------------- Marc · 2009-01-02 00:05 Running ppc programs is made possible by "Rosetta" a ppc emulator