博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
编译linux-3.15.5时遇到的几个错误
阅读量:7075 次
发布时间:2019-06-28

本文共 1666 字,大约阅读时间需要 5 分钟。

hot3.png

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就可以了。

转载于:https://my.oschina.net/renguijiayi/blog/291645

你可能感兴趣的文章
nsq使用的TOML配置文件规范文档中文版
查看>>
Linux6.0命令界面与图形界面的切换
查看>>
Linux系统启动5个阶段
查看>>
KeyMob移动广告聚合平台 开发者赚钱平台
查看>>
GNU/Linux下LVM配置管理以及快照卷、物理卷、卷组、逻辑卷的创建和删除
查看>>
kvm虚拟化学习笔记(十三)之kvm虚拟机磁盘文件读取小结
查看>>
Centos6.5 安装淘宝 tengine
查看>>
centos7 内存硬件信息检测
查看>>
SQL Server vs Oracle 简单语法比较
查看>>
javascript 生成一个指定大小的居中div层
查看>>
Jedis cluster集群初始化源码剖析
查看>>
Linux iostat命令详解
查看>>
线程同步辅助类——CountDownLatch
查看>>
Java中的并发工具
查看>>
NetScaler的部署实验之七NetScaler Gateway的配置以及StoreFront集成NetScaler Gateway的配置更改...
查看>>
SVN服务器迁移实战
查看>>
VMware Linux 5.5 tools 的安装
查看>>
后台——使用maven时出现Failure to transfer 错误的解决方法
查看>>
[毕业生的商业软件开发之路]C#可访问级别
查看>>
mysql 查询当天、本周,本月,上一个月的数据
查看>>