【问题标题】:problem compiling vp8 for debugging on Cygwin在 Cygwin 上编译 vp8 以进行调试的问题
【发布时间】:2010-11-27 15:41:15
【问题描述】:

我有以下版本的 Cygwin、yasm、gcc 和 gdb:

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:

$ ./configure --enable-debug
$ make

但是,当我尝试使用 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

有人可以帮我解决这个问题吗?

谢谢,

阿琼

【问题讨论】:

    标签: windows gcc gdb cygwin vp8


    【解决方案1】:

    您的编译器和 binutils 太旧了。大约在 2000 年解决了这个问题,故障来自链接器(请参阅 http://gcc.gnu.org/ml/gcc-bugs/2000-06/msg00768.html

    【讨论】:

    • $ ld --version GNU ld (GNU Binutils) 2.20.51.20100410 $ gcc --version gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
    • 这些似乎是 Cygwin 报告的 ld 和 gcc 的最新版本,因此错误似乎不是由于过时的工具造成的。
    • GCC 3.4.4 的发布日期为 2005 年 5 月 18 日。它已经过时了,而且 Cygwin 有现代编译器(我相信包名为 gcc4)
    猜你喜欢
    • 2013-08-13
    • 1970-01-01
    • 1970-01-01
    • 2013-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-11
    • 1970-01-01
    相关资源
    最近更新 更多