-------------------------------------------------------------------------------
又开始折腾了, 静态编译 gcc-5.4.0 dwarf2
-------------------------------------------------------------------------------
http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.xz
-------------------------------------------------------------------------------
./configure \
--prefix=/usr/local \
--disable-shared \
--enable-static
make && make install
-------------------------------------------------------------------------------
ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
-------------------------------------------------------------------------------
./configure \
--prefix=/usr/local \
--disable-shared \
--enable-static
make && make install
-------------------------------------------------------------------------------
https://gmplib.org/download/gmp/gmp-6.1.1.tar.xz
-------------------------------------------------------------------------------
./configure \
--host=i686-w64-mingw32 \
--build=i686-w64-mingw32 \
--target=i686-w64-mingw32 \
--host=i686-w64-mingw32 \
--prefix=/usr/local \
--disable-shared \
--enable-static \
--enable-cxx

configure: summary of build options:

Version: GNU MP 6.1.1
Host type: i686-w64-mingw32
ABI: 32
Install prefix: /usr/local
Compiler: gcc
Static libraries: yes
Shared libraries: no

__declspec(dllexport) fix to --> __attribute__((visibility ("default")))
__declspec(dllimport) fix to -->

make && make install

-------------------------------------------------------------------------------
http://isl.gforge.inria.fr/isl-0.17.1.tar.xz
-------------------------------------------------------------------------------
./configure \
--host=i686-w64-mingw32 \
--build=i686-w64-mingw32 \
--target=i686-w64-mingw32 \
--host=i686-w64-mingw32 \
--disable-shared \
--enable-static
make && make install
-------------------------------------------------------------------------------
http://www.mr511.de/software/libelf-0.8.13.tar.gz
-------------------------------------------------------------------------------
./configure \
--prefix=/usr/local \
--disable-shared \
--enable-static
make && make install
-------------------------------------------------------------------------------
http://bugseng.com/products/ppl/download/ftp/releases/1.2/ppl-1.2.tar.xz don't install the ppl-1.2
http://bugseng.com/products/ppl/download/ftp/releases/0.11.2/ppl-0.11.2.tar.bz2
http://bugseng.com/products/ppl/download/ftp/releases/0.12.1/ppl-0.12.1.tar.xz
-------------------------------------------------------------------------------
./configure \
--prefix=/usr/local \
--disable-shared \
--enable-static \
--enable-cxx \
--with-gmp=/usr/local

make && make install
===============================================================================
configure: error: Cannot find GMP version 4.1.3 or higher.
GMP is the GNU Multi-Precision library:
see http://www.swox.com/gmp/ for more information.
When compiling the GMP library, do not forget to enable the C++ interface:
add --enable-cxx to the configuration options.

So I also faced the same issue and what I did was:

1) Went inside gmp-6.1.1 folder
2) make distclean
3) ./configure --prefix=/usr/local ... add --enable-cxx
4) make && make install
5) Went inside ppl-0.12.1 folder
6) ./configure --prefix=/usr/local ...
7) make & make install

Took some 10-20 mins to compile and things were fine.
===============================================================================
GMP version 5.1.0 (and, presumably, later versions) defines std::numeric_limits.
src/mp_std_bits.cc | 6 ++++++
src/mp_std_bits_defs.hh | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/mp_std_bits.cc b/src/mp_std_bits.cc
index c8da535..918b9af 100644
--- a/src/mp_std_bits.cc
+++ b/src/mp_std_bits.cc
@@ -25,6 +25,9 @@ site: http://bugseng.com/products/ppl/ . */
#include "ppl-config.h"
#include "mp_std_bits_defs.hh"

+#if __GNU_MP_VERSION ::is_specialized;
const int std::numeric_limits::digits;
const int std::numeric_limits::digits10;
@@ -70,3 +73,6 @@ const bool std::numeric_limits::is_modulo;
const bool std::numeric_limits::traps;
const bool std::numeric_limits::tininess_before;
const std::float_round_style std::numeric_limits::round_style;
+
+#endif // __GNU_MP_VERSION
mingw32-gcc-5.4.0-win32-dwarf2-2016-08-21.7z

mingw32-gcc-5.4.0-win32-sjlj-2016-08-21.7z

gcc-5.4.0 static dwarf2 compile的更多相关文章

  1. GCC 4.9.0 公布,提升 C++11 和 C++14 特性

    from :http://www.oschina.net/news/51084/gcc-4-9-0 GCC 4.9.0 公布,此版本号是个主要版本号更新,包含了 GCC 4.8.x 系列和之前的 GC ...

  2. gcc 6.2.0/6.3.0/8.2.0 编译安装

    参考:http://www.linuxfromscratch.org/blfs/view/stable/general/gcc.html 下载地址在这里:https://ftp.gnu.org/gnu ...

  3. 编译安装GCC 5.2.0

    https://blog.atime.me/note/install-gcc-5.2.0-from-source.html 记录编译GCC 5.2.0时遇到的问题和解决方法,以备日后查询. 平时使用的 ...

  4. ubuntu 13.04 编译 安装 升级 gcc 4.9.0 address sanitizer

    @ 前记: 最近查一个线上项目的crash,review代码无果,crash几率低,不可在本地环境重现.之后在线上好几个服务器跑valgrind就不crash了.个人猜测可能是跑valgrind后性能 ...

  5. GCC 7.3.0版本编译http-parser-2.1问题

    http-paser是一个用c编写的http消息解析器,地址:https://github.com/nodejs/http-parser,目前版本2.9 今天用gcc 7.3.0编译其2.1版本时,编 ...

  6. ubuntu中编译安装gcc 9.2.0

    一切都和其他源码安装软件是一样的: 一.下载源代码: http://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz 二.解压文件 tar xvf gcc- ...

  7. VC和gcc在保证功能static对线程安全的差异变量

    VC和gcc不同,不能保证静态变量的线程安全性.这就给我们的程序带来了非常大的安全隐患和诸多不便.这一点应该引起我们的重视!尤其是在构造函数耗时比較长的时候.非常可能给程序带来意想不到的结果.本文从測 ...

  8. Centos7升级gcc学习笔记 gcc 4.8.5 -> gcc 5.4.0

    摘自:https://www.cnblogs.com/highway-9/p/5628852.html 一.安装开发必备环境: yum groupinstall "Development T ...

  9. static cross compile gtk-2.16.6+gtk-directfb+arm-linux (arm-linux-gcc-3.4.4+glib-2.3.5)

    ----------------------------------------------------------------------- In Ubuntu 10.4 Desktop and & ...

随机推荐

  1. CDN技术

    CDN 是构建在数据网络上的一种分布式的内容分发网. CDN 的作用是采用流媒体服务器集群技术,克服单机系统输出带宽及并发能力不足的缺点,可极大提升系统支持的并发流数目,减少或避免单点失效带来的不良影 ...

  2. Win7电脑无法启用无线连接或无线连不上网

    1. 上不去网,看是否是无线网卡禁止. 2. 打开控制面板--网络和Internet--查看网络状态和任务--更改网络适配器 3. 4.若启用后无线网络连接仍为灰色,继续往下看 5.点击开始,找到运行 ...

  3. [MongoDB]增删改查

    摘要 上篇文章学习了mongodb在windows上的安装,以及如何开启mongodb,最后列举了简单的增删改查操作.本篇将继续深入学习一下增删改查. 相关文章 [MongoDB]入门操作 CRUD ...

  4. 分布式缓存之 memcache 实现分布式缓存

    最近想搞点分布式,但是不知道整点什么,来点简单的吧. 今天讲下memcache的分布式缓存 首先下载memcache的服务器端 百度下可以找到 然后执行安装和开启(关闭服务器)命令(还有其他的命令 可 ...

  5. django book

    一.安装配置 1.下载地址: https://www.djangoproject.com/download/ 2.安装: tar zxvf Django-1.6.1.tar.gz && ...

  6. python4delphi 使用

    Python 开发桌面程序, 之前写过一个使用IronPython的博客. 下面这个方案使用 delphi 作为主开发语言,通过 python4delphi 控件包将 python 作为 script ...

  7. 密码学初级教程(六)数字签名 Digital Signature

    密码学家工具箱中的6个重要的工具: 对称密码 公钥密码 单向散列函数 消息认证码 数字签名 伪随机数生成器 提问: 有了消息认证码为什么还要有数字签名? 因为消息认证码无法防止否认.消息认证码可以识别 ...

  8. 【AngularJS】—— 10 指令的复用

    前面练习了如何自定义指令,这里练习一下指令在不同的控制器中如何复用. —— 来自<慕课网 指令3> 首先看一下一个小例子,通过自定义指令,捕获鼠标事件,并触发控制器中的方法. 单个控制器的 ...

  9. SQL 分组去重

    select * from (select p.province_name, p.province_code, c.city_name, c.city_code, c.city_id, ROW_NUM ...

  10. firefox, chrome常见插件

    firefox: firebug flagfox adblock autoproxy foxyproxy firegestures httpfox httprequester colorzilla j ...