码迷,mamicode.com
首页 > 系统相关 > 详细

Linux上编译CoreCLR源代码

时间:2015-02-05 20:01:08      阅读:333      评论:0      收藏:0      [点我收藏+]

标签:

>>Build日期:2015-2-5。

Linux发行版用的是CentOS 6.5,操作步骤:

1)配置git: git config --global http.sslverify false 

2)签出github上的CoreCLR代码库: git clone https://github.com/dotnet/coreclr.git 

3)安装cmake: yum install cmake 

4)安装clang: yum install clang 

5)运行build命令: sh build.sh 

6)build结果——失败!错误信息如下:

Commencing CoreCLR Repo build
Checking pre-requisites...
Commencing build of native components for amd64/debug
Invoking cmake with arguments: /data/git/coreclr DEBUG
Detected Linux x86_64
-- Configuring done
-- Generating done
-- Build files have been written to: /data/git/coreclr/binaries/CMake
Executing make
[  0%] Building CXX object src/pal/src/CMakeFiles/CoreClrPal.dir/exception/seh.cpp.o
In file included from /data/git/coreclr/src/pal/src/exception/seh.cpp:22:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/typeinfo:34:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception:148:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception_ptr.h:143:13: error: unknown type
      name ‘type_info‘
      const type_info*
            ^
1 error generated.
make[2]: *** [src/pal/src/CMakeFiles/CoreClrPal.dir/exception/seh.cpp.o] Error 1
make[1]: *** [src/pal/src/CMakeFiles/CoreClrPal.dir/all] Error 2
make: *** [all] Error 2
Failed to build coreclr components.

 

Linux上编译CoreCLR源代码

标签:

原文地址:http://www.cnblogs.com/dudu/p/build-coreclr-on-linux.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!