本帖最后由 代小花 于 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的一个命令。 请高手指点!
先前问了一个问题,就是cc1命令找不到? http://bbs.chinaunix.net/viewthread.php?tid=696784&pid=9936455&page=1&extra=#pid9936455 发现在我的系统里面是在/usr/lib/gcc-lib/i386-redhat-linux/3.2.2 albcamus教了一个办法: gcc -v hello.c 2>&1 |grep cc1 自己复习了一下就是: 1. -v Display the programs invoked by the compiler; 2. 2>&1 1表示屏幕输出 2表示错误输出.把标准出错重定向到标准输出; 3. grep 字符...
我编译内核, 用make menuconfig 时出错: gcc:error tyring to exec 'cc1':excvp:No such file or diretory 编译内核,主要是生成vmlinux.bin 如果用编好的内核文件vmlinux.bin,编译其他的,就可以! 是不是我的Gcc配置有问题? 如果Gcc 编有问题, 那编译其他的也有问题,可是编其他应用是好的!
用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