ubuntu16.04 内核4.4.0-28-generic 编译2Q出错

 出错部分:
 
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including static vs shared).
Makefile:28: recipe for target '/home/kg/OpenWrt/openwrt/build_dir/host/mpc-1.0.2/.configured' failed
make[3]: *** [/home/kg/OpenWrt/openwrt/build_dir/host/mpc-1.0.2/.configured] Error 1
make[3]: Leaving directory '/home/kg/OpenWrt/openwrt/tools/mpc'
tools/Makefile:122: recipe for target 'tools/mpc/compile' failed
make[2]: *** [tools/mpc/compile] Error 2
make[2]: Leaving directory '/home/kg/OpenWrt/openwrt'
tools/Makefile:121: recipe for target '/home/kg/OpenWrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy' failed
make[1]: *** [/home/kg/OpenWrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy] Error 2
make[1]: Leaving directory '/home/kg/OpenWrt/openwrt'
/home/kg/OpenWrt/openwrt/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2
 
下载了mpfr-3.1.4 源码 并安装了!
 
 
已邀请:

xzmu - 10w

赞同来自:

gcc的问题,你用lede代码来编译2q吧,你的ubuntu太新了

贵和 - 90后开发

赞同来自:

用lede 编译时出现的warning 和 error ,  这也是内核太新的缘故吗?
 /devextras.h:210:0: warning: "DT_UNKNOWN" redefined
 #define DT_UNKNOWN 0
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:100:0: note: this is the location of the previous definition
 # define DT_UNKNOWN DT_UNKNOWN
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:211:0: warning: "DT_FIFO" redefined
 #define DT_FIFO  1
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:102:0: note: this is the location of the previous definition
 # define DT_FIFO DT_FIFO
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:212:0: warning: "DT_CHR" redefined
 #define DT_CHR  2
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:104:0: note: this is the location of the previous definition
 # define DT_CHR  DT_CHR
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:213:0: warning: "DT_DIR" redefined
 #define DT_DIR  4
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:106:0: note: this is the location of the previous definition
 # define DT_DIR  DT_DIR
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:214:0: warning: "DT_BLK" redefined
 #define DT_BLK  6
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:108:0: note: this is the location of the previous definition
 # define DT_BLK  DT_BLK
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:215:0: warning: "DT_REG" redefined
 #define DT_REG  8
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:110:0: note: this is the location of the previous definition
 # define DT_REG  DT_REG
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:216:0: warning: "DT_LNK" redefined
 #define DT_LNK  10
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:112:0: note: this is the location of the previous definition
 # define DT_LNK  DT_LNK
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:217:0: warning: "DT_SOCK" redefined
 #define DT_SOCK  12
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:114:0: note: this is the location of the previous definition
 # define DT_SOCK DT_SOCK
 ^
In file included from ../yaffs_guts.h:23:0,
                 from mkyaffs2image.c:36:
../devextras.h:218:0: warning: "DT_WHT" redefined
 #define DT_WHT  14
 ^
In file included from mkyaffs2image.c:31:0:
/usr/include/dirent.h:116:0: note: this is the location of the previous definition
 # define DT_WHT  DT_WHT
 ^
mkyaffs2image.c: In function 'main':
mkyaffs2image.c:470:6: error: environment variable SOURCE_DATE_EPOCH must expand to a non-negative integer less than or equal to 253402300799
      fprintf(stderr,"mkyaffs2image: image building tool for YAFFS2 built "__DAT
      ^
mkyaffs2image.c: In function 'process_directory':
mkyaffs2image.c:369:8: warning: ignoring return value of 'readlink', declared with attribute warn_unused_result [-Wunused-result]
        readlink(full_name,symname,sizeof(symname) -1);
        ^
Makefile:43: recipe for target 'mkyaffs2image.o' failed
make[4]: *** [mkyaffs2image.o] Error 1
make[4]: Leaving directory '/home/kg/WRTnoe_lede/source-master/build_dir/host/yaffs2_android/yaffs2/utils'
Makefile:39: recipe for target '/home/kg/WRTnoe_lede/source-master/build_dir/host/yaffs2_android/.built' failed
make[3]: *** [/home/kg/WRTnoe_lede/source-master/build_dir/host/yaffs2_android/.built] Error 2
make[3]: Leaving directory '/home/kg/WRTnoe_lede/source-master/tools/yaffs2'
tools/Makefile:139: recipe for target 'tools/yaffs2/compile' failed
make[2]: *** [tools/yaffs2/compile] Error 2

xzmu - 10w

赞同来自:

yaffs2??你到底选的啥编译啊

xzmu - 10w

赞同来自:

方便把你的.config这个配置文件打包成zip上传过来不?

贵和 - 90后开发

赞同来自:

yaffs2??  这个东西我也不知道是什么,   直接下载后,就选了 wrtnode2Q 的类型  就make V=s 
 
是 source-master 下面的 .config吧

xzmu - 10w

赞同来自:

你上传对了么???你检查一下

贵和 - 90后开发

赞同来自:

source-master 下面的啊,难道是内核树哪里的.config?
 

xzmu - 10w

赞同来自:

你自己打开一下你那个压缩包。。。检查一下

贵和 - 90后开发

赞同来自:

我下载了,用写字板可以打开

xzmu - 10w

赞同来自:

你用正规一些的压缩软件压缩吧。。。我这里7zip和winrar打开了之后都是出现一个点击解压.html文件,没有正常的内容

贵和 - 90后开发

赞同来自:

config压缩包

xzmu - 10w

赞同来自:

QQ截图20160719103449.png


QQ截图20160719103457.png

 

贵和 - 90后开发

赞同来自:

是用的winrar啊.....  不行的话,通过QQ传给你可好?
config.png

 

xzmu - 10w

赞同来自:

已经可以打开,正在检查

xzmu - 10w

赞同来自:

要不这样吧,尝试着把ubuntu的系统降低回老一些的版本,我这边用的是debian 8 ,编译正常的

要回复问题请先登录注册