找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 79|回复: 9

编译android rom时错误bison: cannot execute binary file: Exec forma...

[复制链接]

16

主题

379

回帖

818

积分

高级会员

积分
818
发表于 2016-3-19 22:22:54 | 显示全部楼层 |阅读模式
本帖最后由 greatly 于 2016-3-19 22:24 编辑

系统: Ubuntu 14.04 x86_64

已安装组件:
bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-7-jdk openjdk-7-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev maven

编译出现错误:
/bin/bash: prebuilts/misc/linux-x86/bison/bison: cannot execute binary file: Exec format error
make: *** [/root/cm/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp] Error 126

请MJJ们帮忙看看。

回复

使用道具 举报

44

主题

1076

回帖

2292

积分

金牌会员

积分
2292
发表于 2016-3-19 22:26:31 | 显示全部楼层
wtf,你用哪家的小鸡编译ROM
全球Android交流论坛
回复

使用道具 举报

10

主题

50

回帖

144

积分

注册会员

积分
144
发表于 2016-3-19 23:10:51 | 显示全部楼层
擦,CPU被干死
回复

使用道具 举报

32

主题

252

回帖

604

积分

高级会员

积分
604
发表于 2016-3-20 01:19:04 | 显示全部楼层
朋友,编译arm构架请用交叉编译器
回复

使用道具 举报

8

主题

153

回帖

334

积分

中级会员

积分
334
发表于 2016-3-20 01:38:12 | 显示全部楼层
不懂,楼下帮忙看看
回复

使用道具 举报

16

主题

379

回帖

818

积分

高级会员

积分
818
 楼主| 发表于 2016-3-20 11:22:23 | 显示全部楼层

leoynx 发表于 2016-3-20 01:19

朋友,编译arm构架请用交叉编译器

请教哪个编译器
回复

使用道具 举报

16

主题

379

回帖

818

积分

高级会员

积分
818
 楼主| 发表于 2016-3-20 01:19:00 | 显示全部楼层

xy2938 发表于 2016-3-19 22:26

wtf,你用哪家的小鸡编译ROM
全球Android交流论坛

12欧那云
回复

使用道具 举报

16

主题

379

回帖

818

积分

高级会员

积分
818
 楼主| 发表于 2016-3-20 11:24:11 | 显示全部楼层

xy2938 发表于 2016-3-19 22:26

wtf,你用哪家的小鸡编译ROM
全球Android交流论坛

12欧那云,看样子不行
回复

使用道具 举报

32

主题

252

回帖

604

积分

高级会员

积分
604
发表于 2016-3-19 22:26:00 | 显示全部楼层

greatly 发表于 2016-3-20 11:22

请教哪个编译器

aptitude  install gcc-arm-linux-gnueabi
回复

使用道具 举报

0

主题

1

回帖

4

积分

新手上路

积分
4
发表于 2016-3-20 11:25:25 | 显示全部楼层
apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-7-jdk openjdk-7-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32z1-dev

装完重启一下。
尘封之泪 发表于 2016-3-20 23:49

apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev libsdl1 ...

试了不行,估计和内核有关,暂时没辙了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-2-3 00:07 , Processed in 0.022389 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表