• <bdo id='zqGyb'></bdo><ul id='zqGyb'></ul>
    <legend id='zqGyb'><style id='zqGyb'><dir id='zqGyb'><q id='zqGyb'></q></dir></style></legend>
    <i id='zqGyb'><tr id='zqGyb'><dt id='zqGyb'><q id='zqGyb'><span id='zqGyb'><b id='zqGyb'><form id='zqGyb'><ins id='zqGyb'></ins><ul id='zqGyb'></ul><sub id='zqGyb'></sub></form><legend id='zqGyb'></legend><bdo id='zqGyb'><pre id='zqGyb'><center id='zqGyb'></center></pre></bdo></b><th id='zqGyb'></th></span></q></dt></tr></i><div id='zqGyb'><tfoot id='zqGyb'></tfoot><dl id='zqGyb'><fieldset id='zqGyb'></fieldset></dl></div>

      1. <small id='zqGyb'></small><noframes id='zqGyb'>

        <tfoot id='zqGyb'></tfoot>

        g++ 4.7.1 编译错误:“strsignal"的类型冲突

        g++ 4.7.1 compilation error : conflicting types for ‘strsignal’(g++ 4.7.1 编译错误:“strsignal的类型冲突)

                <tbody id='DMNBg'></tbody>
            1. <legend id='DMNBg'><style id='DMNBg'><dir id='DMNBg'><q id='DMNBg'></q></dir></style></legend>
              • <bdo id='DMNBg'></bdo><ul id='DMNBg'></ul>

                  <small id='DMNBg'></small><noframes id='DMNBg'>

                  <i id='DMNBg'><tr id='DMNBg'><dt id='DMNBg'><q id='DMNBg'><span id='DMNBg'><b id='DMNBg'><form id='DMNBg'><ins id='DMNBg'></ins><ul id='DMNBg'></ul><sub id='DMNBg'></sub></form><legend id='DMNBg'></legend><bdo id='DMNBg'><pre id='DMNBg'><center id='DMNBg'></center></pre></bdo></b><th id='DMNBg'></th></span></q></dt></tr></i><div id='DMNBg'><tfoot id='DMNBg'></tfoot><dl id='DMNBg'><fieldset id='DMNBg'></fieldset></dl></div>

                  <tfoot id='DMNBg'></tfoot>
                  本文介绍了g++ 4.7.1 编译错误:“strsignal"的类型冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试从 Ubuntu 12.04 32 位的源代码编译 g++ 4.7.1.目前我已经完全做到了:https://askubuntu.com/questions/168947/how-to-upgrade-g-to-4-7-1除了在 g++ 4.7.1 编译之前,它要求我取消设置 LIBRARY_PATH"(所以我已经这样做了).所以编译开始了,过了一会儿我有以下错误信息:

                  I'm trying to compile g++ 4.7.1 from source on Ubuntu 12.04 32 bits. For the moment I've exactly done that : https://askubuntu.com/questions/168947/how-to-upgrade-g-to-4-7-1 Except just before the compilation of g++ 4.7.1 it asks me to "unset LIBRARY_PATH" (so I've done that). So the compilation starts, and after a while I have the following error message :

                  In file included from ../.././gcc/c-lang.c:24:0:
                  ../.././gcc/system.h:499:20: erreur: conflicting types for ‘strsignal’
                  /usr/include/string.h:566:14: note: previous declaration of ‘strsignal’ was here
                  In file included from ./tm.h:19:0,
                                   from ../.././gcc/c-lang.c:26:
                  ./options.h:3738:2: erreur: #error too many masks for ix86_isa_flags
                  In file included from ../.././gcc/input.h:25:0,
                                   from ../.././gcc/tree.h:27,
                                   from ../.././gcc/c-lang.c:27:
                  ../.././gcc/../libcpp/include/line-map.h:208:38: erreur: ‘CHAR_BIT’ undeclared here (not in a function)
                  ../.././gcc/../libcpp/include/line-map.h:208:3: erreur: bit-field ‘reason’ width not an integer constant
                  ../.././gcc/../libcpp/include/line-map.h:208:3: attention : ‘reason’ is narrower than values of its type [enabled by default]
                  In file included from ../.././gcc/tree.h:32:0,
                                   from ../.././gcc/c-lang.c:27:
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/hwint.h:17:39: erreur: division par zéro dans #if
                  ../.././gcc/real.h:105:9: erreur: #error "REAL_WIDTH > 6 not supported"
                  In file included from ../.././gcc/c-family/c-common.h:26:0,
                                   from ../.././gcc/c-tree.h:25,
                                   from ../.././gcc/c-lang.c:28:
                  ../.././gcc/../libcpp/include/cpplib.h:225:3: erreur: bit-field ‘type’ width not an integer constant
                  ../.././gcc/../libcpp/include/cpplib.h:225:3: attention : ‘type’ is narrower than values of its type [enabled by default]
                  ../.././gcc/../libcpp/include/cpplib.h:267:3: erreur: #error "Cannot find a least-32-bit signed integer type"
                  ../.././gcc/../libcpp/include/cpplib.h:269:35: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cppchar_t’
                  ../.././gcc/../libcpp/include/cpplib.h:270:1: erreur: unknown type name ‘CPPCHAR_SIGNED_T’
                  ../.././gcc/../libcpp/include/cpplib.h:768:1: erreur: unknown type name ‘cppchar_t’
                  ../.././gcc/../libcpp/include/cpplib.h:779:1: erreur: unknown type name ‘cppchar_t’
                  ../.././gcc/../libcpp/include/cpplib.h:779:58: erreur: unknown type name ‘cppchar_t’
                  ../.././gcc/../libcpp/include/cpplib.h:954:1: erreur: unknown type name ‘cppchar_t’
                  

                  (抱歉,有些错误信息是法语:erreur -> errordivision par zéro dans #if -> 在 #if 中被零除).

                  (sorry, some error messages are in french : erreur -> error and division par zéro dans #if -> division by zero in #if).

                  问题是什么以及如何解决?

                  What is the problem and how to solve it ?

                  (另一个小问题:./configure./configure -v 之间有什么区别?)

                  (an other little question : what is the difference between ./configure and ./configure -v ?)

                  system.h 中的 strsignal 行

                  EDIT : the lines of strsignal in system.h

                  /* If the system doesn't provide strsignal, we get it defined in
                     libiberty but no declaration is supplied.  */
                  #if !defined (HAVE_STRSIGNAL) 
                      || (defined (HAVE_DECL_STRSIGNAL) && !HAVE_DECL_STRSIGNAL)
                  # ifndef strsignal
                  extern const char *strsignal (int);
                  # endif
                  #endif
                  

                  推荐答案

                  我遇到了同样的问题.就我而言,我通过取消设置 bash 变量 CPATH、LIBRARY_PATH 和 C_INCLUDE_PATH 来解决它.之后,构建顺利.

                  I had the same problem. In my case, I solved it by unsetting the bash variables CPATH, LIBRARY_PATH and C_INCLUDE_PATH. After that, the build went fine.

                  这篇关于g++ 4.7.1 编译错误:“strsignal"的类型冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Is Type(::x); valid?(是类型(::x);有效的?)
                  Difference between an inline function and static inline function(内联函数和静态内联函数的区别)
                  Compilation fails randomly: quot;cannot open program databasequot;(编译随机失败:“无法打开程序数据库)
                  Too many initializers error for a simple array in bcc32(bcc32 中的简单数组的初始值设定项过多错误)
                  No Member named stoi in namespace std(命名空间 std 中没有名为 stoi 的成员)
                  Error using a constexpr as a template parameter within the same class(在同一个类中使用 constexpr 作为模板参数时出错)
                  • <tfoot id='NDg2D'></tfoot>
                    <i id='NDg2D'><tr id='NDg2D'><dt id='NDg2D'><q id='NDg2D'><span id='NDg2D'><b id='NDg2D'><form id='NDg2D'><ins id='NDg2D'></ins><ul id='NDg2D'></ul><sub id='NDg2D'></sub></form><legend id='NDg2D'></legend><bdo id='NDg2D'><pre id='NDg2D'><center id='NDg2D'></center></pre></bdo></b><th id='NDg2D'></th></span></q></dt></tr></i><div id='NDg2D'><tfoot id='NDg2D'></tfoot><dl id='NDg2D'><fieldset id='NDg2D'></fieldset></dl></div>

                      <small id='NDg2D'></small><noframes id='NDg2D'>

                      • <bdo id='NDg2D'></bdo><ul id='NDg2D'></ul>
                          <tbody id='NDg2D'></tbody>

                          <legend id='NDg2D'><style id='NDg2D'><dir id='NDg2D'><q id='NDg2D'></q></dir></style></legend>