2017-02-12 177 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

相關問題