用2.95编译器编译的u-boot没问题后,改用3.41编译,出现错误cc1: error: invalid option `short-load-bytes' 因是高版本的编译器不支持-mshort-load-bytes选项,在makefile中将其改为-malignment-traps即可。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/74524/showart_1999730.html
编译时提示错误 cc1: error: invalid option `short-load-bytes' 编译器:arm-linux- 3.4.1 出现以下错误 cc1: error%3 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/39518/showart_1083261.html
installing local zlib...... Checking for gcc... Checking for shared library support... Building shared library libz.so.1.2.5 with gcc. Checking for off64_t... Yes. Checking for fseeko... Yes. Checking for unistd.h... Yes. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). Checking for vsnprintf() in stdio.h... Yes. Checking for return value of vsnprintf()... Yes. Checkin...
How to solve this problem? Treat warning as warning? huh.. Black Thought
本帖最后由 代小花 于 2014-05-24 18:57 编辑 《30天自制操作系统》中: cc1.exe -I$(INCPATH) -Os -Wall -quiet bootpack.gas : bootpack.c Makefile $(cc1) -o bootpack.gas bootpack.c -Os -Wall -quiet这个选项代表什么? .gas是作者自定义的格式还是一种通用的格式? 不要管下面这个图片。
root@huquanqing-laptop:~/vivi# make
~/vi2/opt/host/armv4l/bin/armv4l-unknown-linux-gcc -I/root/vivi/include -I~/vi2/opt/host/armv4l/include/ -Wall -Wstrict-prototypes -O2 -fPIC -fomit-frame-pointer -mapcs-32 -mshort-load-bytes -msoft-float -c -o init/main.o init/main.c
今天出现这个问题了,搜索了好久没发现解法,后来又换回2.4的版本,发现可以编译过,看来是CROSS的版本和LINUX2.6不匹配所致。有不对的还请大家指出 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/61454/showart_2008397.html
Sometime the compiling will be stopped becase of cc1, which's coredump while we compile sth on the FreeBSD in the vmware. Just add the next line to the vmware configuration .vmx MemTrimRate = "0" Note: that's number zero, not the letter O. 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/132/showart_240847.html
在看Computer Systems一书,第七章P463有个小问题,运行cc1命令。 在好多系统里面都试过了,但是不认识这个命令,我知道这是gcc的一个命令。 请高手指点!