+ -
当前位置:首页 → 问答吧 → CLFS 编译uclibc出现错误 cc1: error: unrecognized command line option "-m32"

CLFS 编译uclibc出现错误 cc1: error: unrecognized command line option "-m32"

时间:2008-12-25

来源:互联网

根据手册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
请问有谁遇到过这个问题?高手请指点一下.

作者: paraller   发布时间: 2008-12-25

作者: RTL   发布时间: 2008-12-25

先谢过楼上.
-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)
待究

作者: paraller   发布时间: 2008-12-25

热门下载

更多