编译minix需要多长时间?

时间:2016-08-09 20:54:31

标签: unix compilation operating-system cross-compiling minix

我通过git下载了Minix源代码:

 git clone git://git.minix3.org/minix minixsrc

然后我按照Crosscompiling MINIX with build.sh 上的说明操作并运行命令

sh build.sh -mi386 -O ../build tools

现在我已经等了大约一个小时才能编译它,它会不断在我的终端上显示这样的信息:

#   compile  libclangSema/SemaExprMember.lo
c++ -O -O2 -fno-rtti -fno-exceptions  -I. -I/home/keeyan/git/minixsrc/tools/llvm-lib/libclangSema/../../llvm/../../external/bsd/llvm/lib/../dist/clang/include -I/home/keeyan/git/minixsrc/tools/llvm-lib/libclangSema/../../llvm/../../external/bsd/llvm/lib/../dist/lld/include -I/home/keeyan/git/minixsrc/tools/llvm-lib/libclangSema/../../llvm/../../external/bsd/llvm/lib/../dist/llvm/include -I/home/keeyan/git/minixsrc/tools/llvm-lib/libclangSema/../../llvm/../../external/bsd/llvm/lib/../dist/mclinker/include -I/home/keeyan/git/minixsrc/tools/llvm-lib/libclangSema/../../llvm/../../external/bsd/llvm/lib/../dist/lldb/include -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCLANG_ENABLE_STATIC_ANALYZER -I/home/keeyan/git/minixsrc/../build/tools/llvm-include -I/home/keeyan/git/minixsrc/../build/tools/llvm/config/include -I/home/keeyan/git/minixsrc/../build/tools/llvm/config/tools/clang/include -I/home/keeyan/git/minixsrc/tools/llvm-lib/libclangSema/../../llvm/../../external/bsd/llvm/lib/../config/mclinker -std=c++11 -std=c++11 -c -o SemaExprMember.lo.o    /home/keeyan/git/minixsrc/tools/llvm-lib/libclangSema/../../llvm/../../external/bsd/llvm/lib/../dist/clang/lib/Sema/SemaExprMember.cpp
mv SemaExprMember.lo.o SemaExprMember.lo

我的问题是,这个过程需要多长时间?有什么不对吗?

系统规格:

操作系统:Linux Mint 18 64bit
CPU:Intel Core i7-5500U CPU @ 2.4GHz x 2

2 个答案:

答案 0 :(得分:1)

我认为应该花很长时间才能完成这项工作。我花了大约2个小时完成sh build.sh -mi386 -O ../build tools c并成功完成,我得到了构建工具。在那个过程之后,我运行了sh build.sh -mi386 -O ../build -U distribution命令,这也需要花费数小时。我最终得到了MINIX的内置发行版,这是对该过程的期望。之后似乎无法将其变成ISO。

答案 1 :(得分:0)

我不知道构建脚本是否会取消设置MAKEFLAGS,但您可以这样做:

MAKEFLAGS=-j\ $(nproc) sh build.sh -mi386 -O ../build tools

nproc返回您CPU中的内核数,因此它将使用所有内核并且速度更快。