【发布时间】:2011-11-16 18:33:23
【问题描述】:
我正在尝试在我的笔记本电脑上安装 Nachos,我在笔记本电脑上安装了 Ubuntu 11.04。
代码是用 C 语言编写的,所以要构建它,我假设我需要交叉编译器。这就是我的问题所在。我使用命令下载了 MIPS 交叉编译器的源代码
wget http://mll.csie.ntu.edu.tw/course/os_f08/assignment/mips-decstation.linux-xgcc.gz
然后我用
解压了它tar zxvf mips-decstation.linux-xgcc.gz
这没关系,但是当我尝试使用 make 构建 nachos os 的源代码时,我得到了这个错误 -
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. make: *** [bitmap.o] Error 1
我正在尝试按照此处给出的说明进行操作 - http://mll.csie.ntu.edu.tw/course/os_f08/217.htm 并且一切正常,除非我尝试使用 make。
【问题讨论】:
-
感谢您的建议,程序现在开始编译但我收到此错误_嗨,现在我遇到此错误 - /usr/bin/ld: skipping incompatible /usr/lib/x86_64- linux-gnu/gcc/x86_64-linux-gnu/4.5.2/libstdc++.a 搜索时 -lstdc++ /usr/bin/ld: 找不到 -lstdc++ collect2: ld 返回 1 退出状态 make: *** [nachos]错误 1 有关如何解决此问题的任何想法?我该怎么办?
标签: ubuntu gcc mips cross-compiling nachos