2017-02-12 162 views
0

我要用QEMU调试内核到GDB。 虽然我曾经在GDB上命令过诸如“make & & sudo make install”,错误已经显示出来。致命错误:gstdint.h:没有这样的文件或目录

错误消息:

make[1]: Leaving directory '/home/ubuntu/work/Kernel/linux-kernel/qemu/binutils-gdb/gdb' 
g++ -std=gnu++11 -g -02 -I. -I. -I./common -I./config -DLOCALEDIR=""/usr/local/share/locale"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gunlib/import -DTUI=1 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -c -o dfp.o -MT dfp.o -MMD -MP -MF .deps/dfp.Tpo dfp.c 
In file included from ../libdecnumber/decNumber.h:37:0, 
       from ../libdecnumber/dpd/decimal128.h:58, 
       from dfp.c:29: 
../libdecnumber/decContext.h:54:61: fatal error: gstdint.h: No such file or directory 
compilation terminated. 
Makefile:1872: recipe for target 'dfp.o' failed 
make: *** [dfp.o] Error 1enter code here 

我该怎么办?请帮帮我。 谢谢。

+0

配置怎么样? (请参阅https://gcc.gnu.org/ml/gcc/2007-04/msg00759.html) – dbrank0

+0

@ dbrank0我使用了'./congifure --disable-werror'。对不起,英语不是我的第一语言。 (另外我不习惯在linux上工作。) – rosa

回答

0

在构建gdb之前,您需要在libdecnumber中运行configure

相关问题