【发布时间】:2018-01-23 16:50:11
【问题描述】:
我正在重写二进制代码。我这样做的原因是在不访问其源代码的情况下强化二进制代码。所以我打算做的是在汇编级别重写,因为在反汇编上重写要困难得多。
我想要的是我想要健壮的程序的.s 汇编文件。海合会就是其中之一。我试图破解 GCC Makefile 并将 -save-temps 添加到其中的每个 CFLAGS 和 CXXFLAGS 中。我在编译 coreutils 时做了同样的事情,我成功地为 coreutils 中的任何程序获取了.s 文件,例如ls、cat 等。但是,在 GCC Makefile 中做同样的事情我得到了错误.这是我使用的配置命令:
../gcc-svn/configure --prefix=/opt/mygcc
这是我得到的部分错误(其中大部分是有意义的重新定义错误):
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:73:10: error: redefinition of ‘struct std::__true_type’
struct __true_type { };
^~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:73:10: note: previous definition of ‘struct std::__true_type’
struct __true_type { };
^~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:74:10: error: redefinition of ‘struct std::__false_type’
struct __false_type { };
^~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:74:10: note: previous definition of ‘struct std::__false_type’
struct __false_type { };
^~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:77:12: error: redefinition of ‘struct std::__truth_type<<anonymous> >’
struct __truth_type
^~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:77:12: note: previous definition of ‘struct std::__truth_type<<anonymous> >’
struct __truth_type
^~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:81:12: error: redefinition of ‘struct std::__truth_type<true>’
struct __truth_type<true>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:81:12: note: previous definition of ‘struct std::__truth_type<true>’
struct __truth_type<true>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:87:12: error: redefinition of ‘struct std::__traitor<_Sp, _Tp>’
struct __traitor
^~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:87:12: note: previous definition of ‘struct std::__traitor<_Sp, _Tp>’
struct __traitor
^~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:95:12: error: redefinition of ‘struct std::__are_same< <template-parameter-1-1>, <template-parameter-1-2> >’
struct __are_same
^~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:95:12: note: previous definition of ‘struct std::__are_same< <template-parameter-1-1>, <template-parameter-1-2> >’
struct __are_same
^~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:102:12: error: redefinition of ‘struct std::__are_same<_Tp, _Tp>’
struct __are_same<_Tp, _Tp>
^~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:102:12: note: previous definition of ‘struct std::__are_same<_Tp, _Tp>’
struct __are_same<_Tp, _Tp>
^~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:110:12: error: redefinition of ‘struct std::__is_void<_Tp>’
struct __is_void
^~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:110:12: note: previous definition of ‘struct std::__is_void<_Tp>’
struct __is_void
^~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:117:12: error: redefinition of ‘struct std::__is_void<void>’
struct __is_void<void>
^~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:117:12: note: previous definition of ‘struct std::__is_void<void>’
struct __is_void<void>
^~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:127:12: error: redefinition of ‘struct std::__is_integer<_Tp>’
struct __is_integer
^~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:127:12: note: previous definition of ‘struct std::__is_integer<_Tp>’
struct __is_integer
^~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:138:12: error: redefinition of ‘struct std::__is_integer<bool>’
struct __is_integer<bool>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:138:12: note: previous definition of ‘struct std::__is_integer<bool>’
struct __is_integer<bool>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:145:12: error: redefinition of ‘struct std::__is_integer<char>’
struct __is_integer<char>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:145:12: note: previous definition of ‘struct std::__is_integer<char>’
struct __is_integer<char>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:152:12: error: redefinition of ‘struct std::__is_integer<signed char>’
struct __is_integer<signed char>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:152:12: note: previous definition of ‘struct std::__is_integer<signed char>’
struct __is_integer<signed char>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:159:12: error: redefinition of ‘struct std::__is_integer<unsigned char>’
struct __is_integer<unsigned char>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:159:12: note: previous definition of ‘struct std::__is_integer<unsigned char>’
struct __is_integer<unsigned char>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:167:12: error: redefinition of ‘struct std::__is_integer<wchar_t>’
struct __is_integer<wchar_t>
^~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:167:12: note: previous definition of ‘struct std::__is_integer<wchar_t>’
struct __is_integer<wchar_t>
^~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:176:12: error: redefinition of ‘struct std::__is_integer<char16_t>’
struct __is_integer<char16_t>
^~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:176:12: note: previous definition of ‘struct std::__is_integer<char16_t>’
struct __is_integer<char16_t>
^~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:183:12: error: redefinition of ‘struct std::__is_integer<char32_t>’
struct __is_integer<char32_t>
^~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:183:12: note: previous definition of ‘struct std::__is_integer<char32_t>’
struct __is_integer<char32_t>
^~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:191:12: error: redefinition of ‘struct std::__is_integer<short int>’
struct __is_integer<short>
^~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:191:12: note: previous definition of ‘struct std::__is_integer<short int>’
struct __is_integer<short>
^~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:198:12: error: redefinition of ‘struct std::__is_integer<short unsigned int>’
struct __is_integer<unsigned short>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:198:12: note: previous definition of ‘struct std::__is_integer<short unsigned int>’
struct __is_integer<unsigned short>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:205:12: error: redefinition of ‘struct std::__is_integer<int>’
struct __is_integer<int>
^~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:205:12: note: previous definition of ‘struct std::__is_integer<int>’
struct __is_integer<int>
^~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:212:12: error: redefinition of ‘struct std::__is_integer<unsigned int>’
struct __is_integer<unsigned int>
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:212:12: note: previous definition of ‘struct std::__is_integer<unsigned int>’
struct __is_integer<unsigned int>
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:219:12: error: redefinition of ‘struct std::__is_integer<long int>’
struct __is_integer<long>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:219:12: note: previous definition of ‘struct std::__is_integer<long int>’
struct __is_integer<long>
^~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:226:12: error: redefinition of ‘struct std::__is_integer<long unsigned int>’
struct __is_integer<unsigned long>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:226:12: note: previous definition of ‘struct std::__is_integer<long unsigned int>’
struct __is_integer<unsigned long>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:233:12: error: redefinition of ‘struct std::__is_integer<long long int>’
struct __is_integer<long long>
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:233:12: note: previous definition of ‘struct std::__is_integer<long long int>’
struct __is_integer<long long>
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:240:12: error: redefinition of ‘struct std::__is_integer<long long unsigned int>’
struct __is_integer<unsigned long long>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:240:12: note: previous definition of ‘struct std::__is_integer<long long unsigned int>’
struct __is_integer<unsigned long long>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:261:19: error: redefinition of ‘struct std::__is_integer<__int128>’
__INT_N(__GLIBCXX_TYPE_INT_N_0)
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:261:19: note: previous definition of ‘struct std::__is_integer<__int128>’
__INT_N(__GLIBCXX_TYPE_INT_N_0)
^~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:261:76: error: redefinition of ‘struct std::__is_integer<__int128 unsigned>’
__INT_N(__GLIBCXX_TYPE_INT_N_0)
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:261:115: note: previous definition of ‘struct std::__is_integer<__int128 unsigned>’
__INT_N(__GLIBCXX_TYPE_INT_N_0)
^
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:61,
from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/tr1/array:34,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdtr1c++.h:31:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:279:12: error: redefinition of ‘struct std::__is_floating<_Tp>’
struct __is_floating
^~~~~~~~~~~~~
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/cmath:42,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:41:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/cpp_type_traits.h:279:12: note: previous definition of ‘struct std::__is_floating<_Tp>’
struct __is_floating
^~~~~~~~~~~~~
<AND THERE ARE MORE ERRORS IN BETWEEN BUT IT TAKES LOTS OF SPACE.>
In file included from ~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/algorithm:60,
from ~/gcc/gcc-svn/libstdc++-v3/include/precompiled/stdc++.h:65:
~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include/utility:321:12: note: previous definition of ‘struct std::integer_sequence<_Tp, _Idx>’
struct integer_sequence
^~~~~~~~~~~~~~~~
Makefile:1752: recipe for target 'x86_64-pc-linux-gnu/bits/stdtr1c++.h.gch/O2g.gch' failed
make[5]: *** [x86_64-pc-linux-gnu/bits/stdtr1c++.h.gch/O2g.gch] Error 1
make[5]: Leaving directory '~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3/include'
Makefile:511: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3'
Makefile:418: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '~/gcc/objdir-makehack/x86_64-pc-linux-gnu/libstdc++-v3'
Makefile:15895: recipe for target 'all-stage1-target-libstdc++-v3' failed
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory '~/gcc/objdir-makehack'
Makefile:24352: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '~/gcc/objdir-makehack'
Makefile:944: recipe for target 'all' failed
make: *** [all] Error 2
知道如何获取 GCC .s 文件或消除这些错误的系统方法是什么?
【问题讨论】:
-
你为什么要汇编文件?请编辑您的问题以激发它。它闻起来强烈有点像XY problem。你不会得到一个单个汇编文件,而是成千上万个。
-
您应该在问题中提及您的研究项目。可能还有其他一些方法(我正在考虑编写自己的 GCC 插件)。我可能会对你的研究项目本身感兴趣....
-
如果发现大端 x86-{32,64} CPU,请报警。
-
开关不是我的问题,现在对我来说也没什么大不了的。所以我把它们从我的问题中删除了。
-
我为我的问题增加了更多动力。请问我为什么得到-1?我是社区的新手,如果您让我知道我的错误,我将不胜感激。谢谢。
标签: linux gcc makefile configure autoconf