www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - File format unrecognized?

reply Jeremy <Jeremy_member pathlink.com> writes:
I am using Mingw, build 2.10, and dmd 0.157:

C:\dmd\FreeUniverse>build FreeUniverse.d -debug

C:\dmd\FreeUniverse>objdump FreeUniverse.exe -Dxr
objdump: FreeUniverse.exe: File format not recognized

C:\dmd\FreeUniverse>gdb FreeUniverse.exe
GNU gdb 5.2.1
Copyright 2002 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 "i686-pc-mingw32"..."C:\dmd\FreeUniverse/FreeUniverse
exe": not in executable format: File format not recognized

(gdb) q

C:\dmd\FreeUniverse>FreeUniverse.exe
<runs fine... except for that damn access violation i can't solve>
May 21 2006
next sibling parent reply Walter Bright <newshound digitalmars.com> writes:
Jeremy wrote:
 I am using Mingw, build 2.10, and dmd 0.157:
Mingw and dmd are not compatible with each other. To debug dmd generated executables, try the windbg debugger included with dmd.zip.
May 21 2006
parent reply Jeremy <Jeremy_member pathlink.com> writes:
In article <e4rc8h$1l7a$1 digitaldaemon.com>, Walter Bright says...
Jeremy wrote:
 I am using Mingw, build 2.10, and dmd 0.157:
Mingw and dmd are not compatible with each other. To debug dmd generated executables, try the windbg debugger included with dmd.zip.
Yeah, I eventually figured that out to solve my problem. However, windbg is very limitted use, since "-g" doesn't work :( What is the ETA (if any) on getting "-g" to work, and will dmd be compatible with mingw in the (near) future?
May 22 2006
next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Jeremy wrote:

 What is the ETA (if any) on getting "-g" to work, and will dmd be compatible
 with mingw in the (near) future?
Why not use GDC, if you want it to be GDB and MinGW-compatible ? --anders
May 22 2006
parent reply Jeremy <Jeremy_member pathlink.com> writes:
In article <e4sie1$3ag$1 digitaldaemon.com>,
=?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= says...
Jeremy wrote:

 What is the ETA (if any) on getting "-g" to work, and will dmd be compatible
 with mingw in the (near) future?
Why not use GDC, if you want it to be GDB and MinGW-compatible ? --anders
I do like the GDC project -- but I don't like using v0.140, I want to make sure my application works (and is compiled with) the latest D spec. How does GDC compare with DMD in performance? And I like using 'build', I don't want to make makefiles and such... Maybe I should grab GDC just when I really need GDB compatibility, but otherwise use DMD.
May 22 2006
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Jeremy wrote:

Why not use GDC, if you want it to be GDB and MinGW-compatible ?
I do like the GDC project -- but I don't like using v0.140, I want to make sure my application works (and is compiled with) the latest D spec.
GDC is currently recovering from the absence of David Friedman, so there might be a while yet before any GDC 0.18 with DMD 15x is stable enough for any public consumption - but getting there
 How does GDC compare with DMD in performance? And I like using
 'build', I don't want to make makefiles and such...
As far as my own experiences go, DMD is a lot faster then what GDC is... (in the compile step, I haven't actually benchmarked what they generate) But I do think that Build supports GDC, on the "usual two" platforms ?
 Maybe I should grab GDC just when I really need GDB compatibility, 
 but otherwise use DMD.
That seems to be the current status, yes. Never hurts to test with two compilers either, even if GDC is a bit behind now ("soo last year...") --anders
May 22 2006
prev sibling parent reply Walter Bright <newshound digitalmars.com> writes:
Jeremy wrote:
 In article <e4rc8h$1l7a$1 digitaldaemon.com>, Walter Bright says...
 Jeremy wrote:
 I am using Mingw, build 2.10, and dmd 0.157:
Mingw and dmd are not compatible with each other. To debug dmd generated executables, try the windbg debugger included with dmd.zip.
Yeah, I eventually figured that out to solve my problem. However, windbg is very limitted use, since "-g" doesn't work :( What is the ETA (if any) on getting "-g" to work, and will dmd be compatible with mingw in the (near) future?
What do you mean by it not working? It works when I use it.
May 22 2006
parent Jeremy <Jeremy_member pathlink.com> writes:
In article <e4sofb$ahl$1 digitaldaemon.com>, Walter Bright says...
Jeremy wrote:
 In article <e4rc8h$1l7a$1 digitaldaemon.com>, Walter Bright says...
 Jeremy wrote:
 I am using Mingw, build 2.10, and dmd 0.157:
Mingw and dmd are not compatible with each other. To debug dmd generated executables, try the windbg debugger included with dmd.zip.
Yeah, I eventually figured that out to solve my problem. However, windbg is very limitted use, since "-g" doesn't work :( What is the ETA (if any) on getting "-g" to work, and will dmd be compatible with mingw in the (near) future?
What do you mean by it not working? It works when I use it.
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/37879
May 22 2006
prev sibling parent Carlos Santander <csantander619 gmail.com> writes:
Jeremy escribió:
 I am using Mingw, build 2.10, and dmd 0.157:
 
 C:\dmd\FreeUniverse>build FreeUniverse.d -debug
 
 C:\dmd\FreeUniverse>objdump FreeUniverse.exe -Dxr
 objdump: FreeUniverse.exe: File format not recognized
 
I believe objdump works with .obj not .exe
 C:\dmd\FreeUniverse>gdb FreeUniverse.exe
 GNU gdb 5.2.1
 Copyright 2002 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
"i686-pc-mingw32"..."C:\dmd\FreeUniverse/FreeUniverse
 exe": not in executable format: File format not recognized
 
 (gdb) q
 
 C:\dmd\FreeUniverse>FreeUniverse.exe
 <runs fine... except for that damn access violation i can't solve>
 
 
-- Carlos Santander Bernal
May 22 2006