2010-11-27 111 views
0
編譯VP8調試

我的Cygwin,YASM,GCC和gdb以下版本:問題在Cygwin

$ ./configure --enable-debug 
$ make 

但是:

CYGWIN_NT-5.1 Thorondor 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin 
yasm 1.1.0.2352 
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) 
GNU gdb 6.8.0.20080328-cvs (cygwin-special) 

我用下面的命令編譯VP8當我嘗試使用GDB進行調試時,出現以下錯誤:

$ gdb simple_decoder.exe 
GNU gdb 6.8.0.20080328-cvs (cygwin-special) 
Copyright (C) 2008 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/ 
gpl.html> 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. Type "show 
copying" 
and "show warranty" for details. 
This GDB was configured as "i686-pc-cygwin"... 
Dwarf Error: bad offset (0x4c4000) in compilation unit header (offset 
0x0 + 6) [in module /cygdrive/ 
c/work/vp8/csim/build/simple_decoder.exe] 
(gdb) q 

有人可以幫我解決這個問題嗎?

感謝,

阿瓊

回答

0

你的編譯器和binutils的太舊了。這解決了大約2000,故障來自於連接器(見http://gcc.gnu.org/ml/gcc-bugs/2000-06/msg00768.html

+0

$ LD --version GNU LD(GNU Binutils的)2.20.51.20100410 $ GCC --version 海合會(GCC)3.4.4(cygming特殊,gdc 0.12,使用dmd 0.125) – Arjun 2010-11-29 07:48:14