设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
LFS(LinuxfromScratch)
›
CLFS 编译uclibc出现错误 cc1: error: unrecognized com ...
返回列表
查看:
2880
|
回复:
2
CLFS 编译uclibc出现错误 cc1: error: unrecognized command line option "
[复制链接]
paraller
paraller
当前离线
积分
36
IP卡
狗仔卡
发表于 2008-12-24 21:43:56
|
显示全部楼层
|
阅读模式
根据手册Cross-Compiled Linux From Scratch - Embedded - Version SVN-0.0.1-20081203-arm
CLFS for arm:
编译到uClibc-0.9.30-rc3就出现了如下的错误:
GEN include/bits/sysnum.h
cc1: error: unrecognized command line option "-m32"
cc1: error: unrecognized command line option "-m32"
GEN include/bits/uClibc_config.h
LN include/pthread.h
LN include/semaphore.h
LN include/bits/pthreadtypes.h
LN include/fpu_control.h
LN include/dl-osinfo.h
LN include/hp-timing.h
LN include/bits/atomic.h
LN include/bits/byteswap.h
LN include/bits/cmathcalls.h
LN include/bits/confname.h
LN include/bits/dirent.h
LN include/bits/dlfcn.h
LN include/bits/elfclass.h
LN include/bits/environments.h
LN include/bits/errno.h
LN include/bits/fenvinline.h
LN include/bits/getopt.h
LN include/bits/huge_valf.h
LN include/bits/huge_vall.h
LN include/bits/in.h
LN include/bits/inf.h
LN include/bits/initspin.h
LN include/bits/ioctl-types.h
LN include/bits/ioctls.h
LN include/bits/ipc.h
LN include/bits/kernel_sigaction.h
LN include/bits/local_lim.h
LN include/bits/locale.h
LN include/bits/mathcalls.h
LN include/bits/mathinline.h
LN include/bits/mqueue.h
LN include/bits/msq.h
LN include/bits/nan.h
LN include/bits/netdb.h
LN include/bits/poll.h
LN include/bits/posix1_lim.h
LN include/bits/posix2_lim.h
LN include/bits/posix_opt.h
LN include/bits/resource.h
LN include/bits/sched.h
LN include/bits/select.h
LN include/bits/sem.h
LN include/bits/sigaction.h
LN include/bits/sigcontext.h
LN include/bits/siginfo.h
LN include/bits/signum.h
LN include/bits/sigset.h
LN include/bits/sigstack.h
LN include/bits/sigthread.h
LN include/bits/sockaddr.h
LN include/bits/socket.h
LN include/bits/stat.h
LN include/bits/statfs.h
LN include/bits/statvfs.h
LN include/bits/stdio.h
LN include/bits/stdio_lim.h
LN include/bits/termios.h
LN include/bits/time.h
LN include/bits/types.h
LN include/bits/typesizes.h
LN include/bits/uClibc_clk_tck.h
LN include/bits/uClibc_ctype.h
LN include/bits/uClibc_errno.h
LN include/bits/uClibc_fpmax.h
LN include/bits/uClibc_local_lim.h
LN include/bits/uClibc_locale.h
LN include/bits/uClibc_mutex.h
LN include/bits/uClibc_page.h
LN include/bits/uClibc_pthread.h
LN include/bits/uClibc_stdio.h
LN include/bits/uClibc_touplow.h
LN include/bits/uClibc_uintmaxtostr.h
LN include/bits/uClibc_uwchar.h
LN include/bits/uClibc_va_copy.h
LN include/bits/uio.h
LN include/bits/ustat.h
LN include/bits/utmp.h
LN include/bits/utmpx.h
LN include/bits/utsname.h
LN include/bits/waitflags.h
LN include/bits/waitstatus.h
LN include/bits/wchar.h
LN include/bits/xopen_lim.h
LN include/bits/arm_asm.h
LN include/bits/armsigctx.h
LN include/bits/endian.h
LN include/bits/fcntl.h
LN include/bits/fenv.h
LN include/bits/huge_val.h
LN include/bits/kernel_stat.h
LN include/bits/kernel_types.h
LN include/bits/mathdef.h
LN include/bits/mman.h
LN include/bits/setjmp.h
LN include/bits/shm.h
LN include/bits/sigcontextinfo.h
LN include/bits/stackinfo.h
LN include/bits/syscalls.h
LN include/bits/uClibc_arch_features.h
LN include/bits/wordsize.h
LN include/sys/acct.h
LN include/sys/epoll.h
LN include/sys/inotify.h
LN include/sys/prctl.h
LN include/sys/ptrace.h
LN include/sys/elf.h
LN include/sys/io.h
LN include/sys/procfs.h
LN include/sys/ucontext.h
LN include/sys/user.h
AS lib/crt1.o
cc1: error: unrecognized command line option "-m32"
make: *** [lib/crt1.o] Error 1
-m32是根据ARM板设置的$BUILD值.
ARM板是32位的,但不是MIPS架构.所以我选择了下面的32-Bit All Others 的值:-m32
Table 6.1. List of Build Variables
ABI BUILD=Value
32-Bit MIPS -mabi=32
32-Bit All Others -m32
N32 MIPS -mabi=n32
64-Bit MIPS -mabi=64
64-Bit All Others -m64
请问有谁遇到过这个问题?高手请指点一下.
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
RTL
RTL
当前离线
积分
70
IP卡
狗仔卡
发表于 2008-12-25 00:19:35
|
显示全部楼层
http://gcc.gnu.org/onlinedocs/gc ... ns.html#ARM-Options
ARM 平臺並沒有 -m32 參數
回复
支持
反对
使用道具
举报
显身卡
paraller
paraller
当前离线
积分
36
IP卡
狗仔卡
楼主
|
发表于 2008-12-25 09:38:29
|
显示全部楼层
先谢过楼上.
-mabi=name
Generate code for the specified ABI. Permissible values are: `apcs-gnu', `atpcs', `aapcs', `aapcs-linux' and `iwmmxt'.
这里只指出了特殊的几个ABI值,那么默认值是什么?GCC如何识别是32位还是64位?(不过,不知道现在有没有64位的ARM)
待究
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
Linux 程序设计专题讨论
Archlinux讨论区
shell进阶应用、shell编程
Ubuntu Linux 专题讨论
硬件设备 Linux 驱动
Debian Linux
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表