1. make时遇到一个标志位不被支持,需要升级gcc,升级gcc需要hop5的源:
[root@centos ~]# cat /etc/yum.repos.d/hop5.repo [hop5]name=hop5baseurl=http://www.hop5.in/yum/el6/gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-HOP5
yum update gcc
2. make modules_install时提示137错误:
需要增大虚拟机内存或swap分区。
3. make install时提示:
[root@mon1 linux-3.15.5]# make install
sh /software/linux-3.15.5/arch/x86/boot/install.sh 3.15.5 arch/x86/boot/bzImage \ System.map "/boot" ERROR: modinfo: could not find module ipt_addrtype ERROR: modinfo: could not find module libcrc32c ERROR: modinfo: could not find module vboxsf ERROR: modinfo: could not find module autofs4 ERROR: modinfo: could not find module ipv6 ERROR: modinfo: could not find module exportfs ERROR: modinfo: could not find module microcode ERROR: modinfo: could not find module snd_page_alloc ERROR: modinfo: could not find module vboxguest ERROR: modinfo: could not find module vboxvideo参考:http://smilejay.com/2013/11/kernel-install-error-could-not-find-module/
4. 编译时提示如下错误:
[root@centos linux-3.17.4]# make menuconfig HOSTLD scripts/kconfig/mconf/usr/bin/ld: scripts/kconfig/lxdialog/checklist.o: undefined reference to symbol 'acs_map'/usr/bin/ld: note: 'acs_map' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line/lib64/libtinfo.so.5: could not read symbols: Invalid operationcollect2: error: ld returned 1 exit statusmake[1]: *** [scripts/kconfig/mconf] Error 1make: *** [menuconfig] Error 2
解决方法是编辑 linux-3.17.4/scripts/kconfig/Makefile,加入:
HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) -ltinfo
-ltinfo
没错,加入-ltinfo就可以了。