免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3329 | 回复: 3
打印 上一主题 下一主题

在fedora8下做的交叉编译器拿到debian下不能用? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-21 17:50 |只看该作者 |倒序浏览
我在fedora8下做的针对s3c2410的板子的新编译器GCC-4.2.1-GLIBC-2.7

在fedora下都可以编译2.6.21的内核并且在板子上跑起来

拿到debian下编译都通不过,然后出现以下错误:

/bin/sh: line 1:  7145 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -marm -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7148 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -march=armv6 -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7151 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -march=armv6k -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7154 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -march=armv5te -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7157 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mtune=arm9e -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7160 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mtune=xscale -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7163 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mtune=xscale -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7166 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mtune=arm1136j-s -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7169 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mapcs-32 -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7172 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mno-thumb-interwork -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7175 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -malignment-traps -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7178 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mshort-load-bytes -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7181 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm9tdmi -msoft-float -Uarm -fno-optimize-sibling-calls -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7184 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm9tdmi -msoft-float -Uarm -fno-omit-frame-pointer -g -fno-stack-protector -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7188 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm9tdmi -msoft-float -Uarm -fno-omit-frame-pointer -g -Wdeclaration-after-statement -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
/bin/sh: line 1:  7191 浮点数例外         ( arm-s3c-linux-gnueabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm9tdmi -msoft-float -Uarm -fno-omit-frame-pointer -g -Wno-pointer-sign -S -xc /dev/null -o "$TMP" ) >/dev/null 2>&1
  CHK     include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  CC      arch/arm/kernel/asm-offsets.s
/bin/sh: line 1:  7257 浮点数例外         arm-s3c-linux-gnueabi-gcc -Wp,-MD,arch/arm/kernel/.asm-offsets.s.d -nostdinc -isystem -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm9tdmi -msoft-float -Uarm -fno-omit-frame-pointer -g -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)" -D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)" -fverbose-asm -S -o arch/arm/kernel/asm-offsets.s arch/arm/kernel/asm-offsets.c
make[1]: *** [arch/arm/kernel/asm-offsets.s] 错误 136
make: *** [prepare0] 错误 2


大家给点意见啊!不论水平,给点意见都是好的!

论坛徽章:
0
2 [报告]
发表于 2008-04-21 23:49 |只看该作者
先尝试sudo apt-get install build-essential看看?

论坛徽章:
0
3 [报告]
发表于 2008-04-21 23:52 |只看该作者
http://blog.chinaunix.net/u/25764/showart_512950.html
算了,还是直接看我blog上这篇文章吧。

论坛徽章:
0
4 [报告]
发表于 2008-04-22 10:02 |只看该作者
按你的那种没效果,郁闷,搞不懂那个浮点数例外是什么问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP