kvm学习(1)

编译最新的linux内核代码,make的时候先后报了2个错误:

$ make -j 8
  DESCEND  objtool
make[4]: *** No rule to make target '/usr/include/x86_64-linux-gnu/bits/sigset.h', needed by '/home/gary/git/linux/tools/objtool/fixdep.o'.  Stop.
....
  DESCEND  objtool
make[4]: *** No rule to make target '/usr/include/xlocale.h', needed by '/home/gary/git/linux/tools/objtool/fixdep.o'.  Stop.
....

但是用apt-file find sigset.h却找不到对应的package,只能找到相近的package叫libnewlib-dev
。尝试安装,仍然报错;尝试手动链接,可以编译了。

sudo apt-get install libnewlib-dev
sudo ln -s /usr/include/newlib/sys/_sigset.h /usr/include/x86_64-linux-gnu/bits/sigset.h
sudo ln -s /usr/include/newlib/xlocale.h /usr/include/xlocale.h

你可能感兴趣的:(linux)