Hi all. I need gcc 4.2 to compile old project. I tried to build gcc 4.2 in several ways and with several configurations and at the end I had the same error log. I'm stuck in it for about 3 days T_T. My process: 1 - cloned gcc repository and change to branch gcc-4.2. 2 - created dir in parallel with code. 3 - run *sudo ../gcc-4.2.0/configure --enable-languages=c,c++ --disable-stage1-checking --disable-multilib --disable-werror --disable-bootstrap* 4 - I open Makefile and change : CC = gcc CXX = g++ to CC = gcc -fgnu89-inline CXX = g++ -fgnu89-inline (https://unix.stackexchange.com/questions/219708/arch-compiling-toplev-o-fails-in-gcc-install) Because I had same behavior. 5 - sudo make -j1 After 10 minutes my build crash with msg: ... ../../gcc-4.2.0/gcc/config/i386/i386.h:155: error: storage class specified for parameter ‘x86_partial_reg_dependency’ ../../gcc-4.2.0/gcc/config/i386/i386.h:155: error: storage class specified for parameter ‘x86_memory_mismatch_stall’ ../../gcc-4.2.0/gcc/config/i386/i386.h:156: error: storage class specified for parameter ‘x86_accumulate_outgoing_args’ ../../gcc-4.2.0/gcc/config/i386/i386.h:156: error: storage class specified for parameter ‘x86_prologue_using_move’ ../../gcc-4.2.0/gcc/config/i386/i386.h:157: error: storage class specified for parameter ‘x86_epilogue_using_move’ ../../gcc-4.2.0/gcc/config/i386/i386.h:157: error: storage class specified for parameter ‘x86_decompose_lea’ ../../gcc-4.2.0/gcc/config/i386/i386.h:158: error: storage class specified for parameter ‘x86_arch_always_fancy_math_387’ ../../gcc-4.2.0/gcc/config/i386/i386.h:158: error: storage class specified for parameter ‘x86_shift1’ ../../gcc-4.2.0/gcc/config/i386/i386.h:159: error: storage class specified for parameter ‘x86_sse_partial_reg_dependency’ ../../gcc-4.2.0/gcc/config/i386/i386.h:159: error: storage class specified for parameter ‘x86_sse_split_regs’ ../../gcc-4.2.0/gcc/config/i386/i386.h:160: error: storage class specified for parameter ‘x86_sse_typeless_stores’ ../../gcc-4.2.0/gcc/config/i386/i386.h:160: error: storage class specified for parameter ‘x86_sse_load0_by_pxor’ ../../gcc-4.2.0/gcc/config/i386/i386.h:161: error: storage class specified for parameter ‘x86_use_ffreep’ ../../gcc-4.2.0/gcc/config/i386/i386.h:162: error: storage class specified for parameter ‘x86_inter_unit_moves’ ../../gcc-4.2.0/gcc/config/i386/i386.h:162: error: storage class specified for parameter ‘x86_schedule’ ../../gcc-4.2.0/gcc/config/i386/i386.h:163: error: storage class specified for parameter ‘x86_use_bt’ ../../gcc-4.2.0/gcc/config/i386/i386.h:164: error: storage class specified for parameter ‘x86_cmpxchg’ ../../gcc-4.2.0/gcc/config/i386/i386.h:164: error: storage class specified for parameter ‘x86_cmpxchg8b’ ../../gcc-4.2.0/gcc/config/i386/i386.h:164: error: storage class specified for parameter ‘x86_cmpxchg16b’ ../../gcc-4.2.0/gcc/config/i386/i386.h:164: error: storage class specified for parameter ‘x86_xadd’ ../../gcc-4.2.0/gcc/config/i386/i386.h:165: error: storage class specified for parameter ‘x86_use_incdec’ ../../gcc-4.2.0/gcc/config/i386/i386.h:166: error: storage class specified for parameter ‘x86_pad_returns’ ../../gcc-4.2.0/gcc/config/i386/i386.h:167: error: storage class specified for parameter ‘x86_partial_flag_reg_stall’ ../../gcc-4.2.0/gcc/config/i386/i386.h:168: error: storage class specified for parameter ‘x86_prefetch_sse’ ../../gcc-4.2.0/gcc/config/i386/i386.h:282: error: storage class specified for parameter ‘host_detect_local_cpu’ ../../gcc-4.2.0/gcc/config/i386/i386.h:1087: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:1443: error: storage class specified for parameter ‘CUMULATIVE_ARGS’ ../../gcc-4.2.0/gcc/config/i386/i386.h:1956: error: storage class specified for parameter ‘dbx_register_map’ ../../gcc-4.2.0/gcc/config/i386/i386.h:1957: error: storage class specified for parameter ‘dbx64_register_map’ ../../gcc-4.2.0/gcc/config/i386/i386.h:1958: error: storage class specified for parameter ‘svr4_dbx_register_map’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2086: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:2088: error: storage class specified for parameter ‘ix86_tune’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2089: error: storage class specified for parameter ‘ix86_arch’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2095: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:2097: error: storage class specified for parameter ‘ix86_fpmath’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2104: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:2106: error: storage class specified for parameter ‘ix86_tls_dialect’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2116: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:2118: error: storage class specified for parameter ‘ix86_cmodel’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2128: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:2130: error: storage class specified for parameter ‘ix86_asm_dialect’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2131: error: storage class specified for parameter ‘ix86_preferred_stack_boundary’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2132: error: storage class specified for parameter ‘ix86_branch_cost’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2132: error: storage class specified for parameter ‘ix86_section_threshold’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2135: error: storage class specified for parameter ‘regclass_map’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2137: error: storage class specified for parameter ‘ix86_compare_op0’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2138: error: storage class specified for parameter ‘ix86_compare_op1’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2139: error: storage class specified for parameter ‘ix86_compare_emitted’ ../../gcc-4.2.0/gcc/config/i386/i386.h:2163: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:2174: warning: empty declaration ../../gcc-4.2.0/gcc/config/i386/i386.h:2254: warning: empty declaration In file included from ../../gcc-4.2.0/gcc/crtstuff.c:71: ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:36: error: expected declaration specifiers before ‘#pragma’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:44: error: expected declaration specifiers before ‘;’ token ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:75: warning: empty declaration ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:89: warning: empty declaration ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:96: warning: empty declaration ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:100: error: storage class specified for parameter ‘__register_frame_info_bases’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:101: error: storage class specified for parameter ‘__register_frame_info’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:102: error: storage class specified for parameter ‘__register_frame’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:104: error: storage class specified for parameter ‘__register_frame_info_table_bases’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:105: error: storage class specified for parameter ‘__register_frame_info_table’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:106: error: storage class specified for parameter ‘__register_frame_table’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:107: error: storage class specified for parameter ‘__deregister_frame_info’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:108: error: storage class specified for parameter ‘__deregister_frame_info_bases’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:109: error: storage class specified for parameter ‘__deregister_frame’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:112: error: storage class specified for parameter ‘sword’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:113: error: storage class specified for parameter ‘uword’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:114: error: storage class specified for parameter ‘uaddr’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:115: error: storage class specified for parameter ‘saddr’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:116: error: storage class specified for parameter ‘ubyte’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:142: error: expected specifier-qualifier-list before ‘uword’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:146: warning: empty declaration ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:151: error: expected specifier-qualifier-list before ‘uword’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:154: warning: empty declaration ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:156: error: storage class specified for parameter ‘fde’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:175: warning: type defaults to ‘int’ in declaration of ‘fde’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:175: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:185: error: expected declaration specifiers before ‘#pragma’ In file included from /usr/include/elf.h:28, from /usr/include/link.h:24, from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/stdint.h:26:24: error: bits/wchar.h: No such file or directory /usr/include/stdint.h:27:27: error: bits/wordsize.h: No such file or directory In file included from /usr/include/elf.h:28, from /usr/include/link.h:24, from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/stdint.h:37: error: storage class specified for parameter ‘int16_t’ /usr/include/stdint.h:38: error: storage class specified for parameter ‘int32_t’ /usr/include/stdint.h:42: error: expected declaration specifiers before ‘__extension__’ /usr/include/stdint.h:48: error: storage class specified for parameter ‘uint8_t’ /usr/include/stdint.h:49: error: storage class specified for parameter ‘uint16_t’ /usr/include/stdint.h:51: error: storage class specified for parameter ‘uint32_t’ /usr/include/stdint.h:57: error: expected declaration specifiers before ‘__extension__’ /usr/include/stdint.h:65: error: storage class specified for parameter ‘int_least8_t’ /usr/include/stdint.h:66: error: storage class specified for parameter ‘int_least16_t’ /usr/include/stdint.h:67: error: storage class specified for parameter ‘int_least32_t’ /usr/include/stdint.h:71: error: expected declaration specifiers before ‘__extension__’ /usr/include/stdint.h:76: error: storage class specified for parameter ‘uint_least8_t’ /usr/include/stdint.h:77: error: storage class specified for parameter ‘uint_least16_t’ /usr/include/stdint.h:78: error: storage class specified for parameter ‘uint_least32_t’ /usr/include/stdint.h:82: error: expected declaration specifiers before ‘__extension__’ /usr/include/stdint.h:90: error: storage class specified for parameter ‘int_fast8_t’ /usr/include/stdint.h:96: error: storage class specified for parameter ‘int_fast16_t’ /usr/include/stdint.h:97: error: storage class specified for parameter ‘int_fast32_t’ /usr/include/stdint.h:98: error: expected declaration specifiers before ‘__extension__’ /usr/include/stdint.h:103: error: storage class specified for parameter ‘uint_fast8_t’ /usr/include/stdint.h:109: error: storage class specified for parameter ‘uint_fast16_t’ /usr/include/stdint.h:110: error: storage class specified for parameter ‘uint_fast32_t’ /usr/include/stdint.h:111: error: expected declaration specifiers before ‘__extension__’ /usr/include/stdint.h:128: error: storage class specified for parameter ‘uintptr_t’ /usr/include/stdint.h:137: error: expected declaration specifiers before ‘__extension__’ /usr/include/stdint.h:139: error: expected declaration specifiers before ‘__extension__’ In file included from /usr/include/link.h:24, from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/elf.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Half’ /usr/include/elf.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Half’ /usr/include/elf.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Word’ /usr/include/elf.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Sword’ /usr/include/elf.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Word’ /usr/include/elf.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Sword’ /usr/include/elf.h:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Xword’ /usr/include/elf.h:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Sxword’ /usr/include/elf.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Xword’ /usr/include/elf.h:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Sxword’ /usr/include/elf.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Addr’ /usr/include/elf.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Addr’ /usr/include/elf.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Off’ /usr/include/elf.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Off’ /usr/include/elf.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Section’ /usr/include/elf.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Section’ /usr/include/elf.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Versym’ /usr/include/elf.h:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf64_Versym’ /usr/include/elf.h:70: error: expected specifier-qualifier-list before ‘Elf32_Half’ /usr/include/elf.h:83: error: storage class specified for parameter ‘Elf32_Ehdr’ /usr/include/elf.h:88: error: expected specifier-qualifier-list before ‘Elf64_Half’ /usr/include/elf.h:101: error: storage class specified for parameter ‘Elf64_Ehdr’ /usr/include/elf.h:275: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:285: error: storage class specified for parameter ‘Elf32_Shdr’ /usr/include/elf.h:289: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:299: error: storage class specified for parameter ‘Elf64_Shdr’ /usr/include/elf.h:382: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:385: error: storage class specified for parameter ‘Elf32_Chdr’ /usr/include/elf.h:389: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:393: error: storage class specified for parameter ‘Elf64_Chdr’ /usr/include/elf.h:409: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:415: error: storage class specified for parameter ‘Elf32_Sym’ /usr/include/elf.h:419: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:425: error: storage class specified for parameter ‘Elf64_Sym’ /usr/include/elf.h:432: error: expected specifier-qualifier-list before ‘Elf32_Half’ /usr/include/elf.h:434: error: storage class specified for parameter ‘Elf32_Syminfo’ /usr/include/elf.h:438: error: expected specifier-qualifier-list before ‘Elf64_Half’ /usr/include/elf.h:440: error: storage class specified for parameter ‘Elf64_Syminfo’ /usr/include/elf.h:524: error: expected specifier-qualifier-list before ‘Elf32_Addr’ /usr/include/elf.h:526: error: storage class specified for parameter ‘Elf32_Rel’ /usr/include/elf.h:535: error: expected specifier-qualifier-list before ‘Elf64_Addr’ /usr/include/elf.h:537: error: storage class specified for parameter ‘Elf64_Rel’ /usr/include/elf.h:543: error: expected specifier-qualifier-list before ‘Elf32_Addr’ /usr/include/elf.h:546: error: storage class specified for parameter ‘Elf32_Rela’ /usr/include/elf.h:550: error: expected specifier-qualifier-list before ‘Elf64_Addr’ /usr/include/elf.h:553: error: storage class specified for parameter ‘Elf64_Rela’ /usr/include/elf.h:569: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:577: error: storage class specified for parameter ‘Elf32_Phdr’ /usr/include/elf.h:581: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:589: error: storage class specified for parameter ‘Elf64_Phdr’ /usr/include/elf.h:680: error: expected specifier-qualifier-list before ‘Elf32_Sword’ /usr/include/elf.h:686: error: storage class specified for parameter ‘Elf32_Dyn’ /usr/include/elf.h:690: error: expected specifier-qualifier-list before ‘Elf64_Sxword’ /usr/include/elf.h:696: error: storage class specified for parameter ‘Elf64_Dyn’ /usr/include/elf.h:856: error: expected specifier-qualifier-list before ‘Elf32_Half’ /usr/include/elf.h:864: error: storage class specified for parameter ‘Elf32_Verdef’ /usr/include/elf.h:868: error: expected specifier-qualifier-list before ‘Elf64_Half’ /usr/include/elf.h:876: error: storage class specified for parameter ‘Elf64_Verdef’ /usr/include/elf.h:898: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:901: error: storage class specified for parameter ‘Elf32_Verdaux’ /usr/include/elf.h:905: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:908: error: storage class specified for parameter ‘Elf64_Verdaux’ /usr/include/elf.h:915: error: expected specifier-qualifier-list before ‘Elf32_Half’ /usr/include/elf.h:922: error: storage class specified for parameter ‘Elf32_Verneed’ /usr/include/elf.h:926: error: expected specifier-qualifier-list before ‘Elf64_Half’ /usr/include/elf.h:933: error: storage class specified for parameter ‘Elf64_Verneed’ /usr/include/elf.h:945: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:951: error: storage class specified for parameter ‘Elf32_Vernaux’ /usr/include/elf.h:955: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:961: error: storage class specified for parameter ‘Elf64_Vernaux’ /usr/include/elf.h:979: error: expected specifier-qualifier-list before ‘uint32_t’ /usr/include/elf.h:987: error: storage class specified for parameter ‘Elf32_auxv_t’ /usr/include/elf.h:991: error: expected specifier-qualifier-list before ‘uint64_t’ /usr/include/elf.h:999: error: storage class specified for parameter ‘Elf64_auxv_t’ In file included from /usr/include/link.h:24, from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/elf.h:1001:23: error: bits/auxv.h: No such file or directory /usr/include/elf.h:1007: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:1010: error: storage class specified for parameter ‘Elf32_Nhdr’ /usr/include/elf.h:1014: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:1017: error: storage class specified for parameter ‘Elf64_Nhdr’ /usr/include/elf.h:1071: error: expected specifier-qualifier-list before ‘Elf32_Xword’ /usr/include/elf.h:1076: error: storage class specified for parameter ‘Elf32_Move’ /usr/include/elf.h:1080: error: expected specifier-qualifier-list before ‘Elf64_Xword’ /usr/include/elf.h:1085: error: storage class specified for parameter ‘Elf64_Move’ /usr/include/elf.h:1460: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:1465: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:1468: error: storage class specified for parameter ‘Elf32_gptab’ /usr/include/elf.h:1474: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:1477: error: storage class specified for parameter ‘Elf32_RegInfo’ /usr/include/elf.h:1486: error: expected specifier-qualifier-list before ‘Elf32_Section’ /usr/include/elf.h:1489: error: storage class specified for parameter ‘Elf_Options’ /usr/include/elf.h:1534: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:1536: error: storage class specified for parameter ‘Elf_Options_Hw’ /usr/include/elf.h:1700: error: expected specifier-qualifier-list before ‘Elf32_Word’ /usr/include/elf.h:1705: error: storage class specified for parameter ‘Elf32_Lib’ /usr/include/elf.h:1709: error: expected specifier-qualifier-list before ‘Elf64_Word’ /usr/include/elf.h:1714: error: storage class specified for parameter ‘Elf64_Lib’ /usr/include/elf.h:1729: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Elf32_Conflict’ /usr/include/elf.h:1734: error: expected specifier-qualifier-list before ‘Elf32_Half’ /usr/include/elf.h:1754: error: storage class specified for parameter ‘Elf_MIPS_ABIFlags_v0’ /usr/include/elf.h:3501: error: expected declaration specifiers before ‘__END_DECLS’ In file included from /usr/include/link.h:25, from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/dlfcn.h:27:24: error: bits/dlfcn.h: No such file or directory In file included from /usr/include/link.h:25, from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/dlfcn.h:52: error: expected declaration specifiers before ‘__BEGIN_DECLS’ /usr/include/dlfcn.h:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROWNL’ /usr/include/dlfcn.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/dlfcn.h:69: error: expected ‘)’ before ‘__nsid’ /usr/include/dlfcn.h:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/dlfcn.h:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/dlfcn.h:94: error: storage class specified for parameter ‘Dl_info’ /usr/include/dlfcn.h:98: error: expected declaration specifiers or ‘...’ before ‘Dl_info’ /usr/include/dlfcn.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/dlfcn.h:102: error: expected declaration specifiers or ‘...’ before ‘Dl_info’ /usr/include/dlfcn.h:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/dlfcn.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/dlfcn.h:175: error: storage class specified for parameter ‘Dl_serpath’ /usr/include/dlfcn.h:183: error: expected specifier-qualifier-list before ‘Dl_serpath’ /usr/include/dlfcn.h:184: error: storage class specified for parameter ‘Dl_serinfo’ /usr/include/dlfcn.h:188: error: expected declaration specifiers before ‘__END_DECLS’ In file included from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/link.h:34:63: error: bits/elfclass.h: No such file or directory /usr/include/link.h:35:23: error: bits/link.h: No such file or directory In file included from ../../gcc-4.2.0/gcc/crtstuff.c:92: /usr/include/link.h:64: error: expected declaration specifiers before ‘;’ token /usr/include/link.h:67: error: storage class specified for parameter ‘_r_debug’ /usr/include/link.h:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_DYNAMIC’ /usr/include/link.h:89: error: expected specifier-qualifier-list before ‘Elf__ELF_NATIVE_CLASS_Addr’ /usr/include/link.h:140: error: expected specifier-qualifier-list before ‘Elf__ELF_NATIVE_CLASS_Addr’ /usr/include/link.h:165: error: expected declaration specifiers before ‘__BEGIN_DECLS’ /usr/include/link.h:175: error: storage class specified for parameter ‘la_version’ /usr/include/link.h:176: error: expected ‘)’ before ‘*’ token /usr/include/link.h:177: error: expected declaration specifiers or ‘...’ before ‘uintptr_t’ /usr/include/link.h:178: error: storage class specified for parameter ‘la_objsearch’ /usr/include/link.h:179: error: expected declaration specifiers or ‘...’ before ‘Lmid_t’ /usr/include/link.h:180: error: expected declaration specifiers or ‘...’ before ‘uintptr_t’ /usr/include/link.h:180: error: storage class specified for parameter ‘la_objopen’ /usr/include/link.h:181: error: expected ‘)’ before ‘*’ token /usr/include/link.h:182: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘la_symbind32’ /usr/include/link.h:185: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘la_symbind64’ /usr/include/link.h:188: error: expected ‘)’ before ‘*’ token /usr/include/link.h:190: error: expected declaration specifiers before ‘__END_DECLS’ ../../gcc-4.2.0/gcc/crtstuff.c:133: error: storage class specified for parameter ‘__register_frame_info_bases’ ../../gcc-4.2.0/gcc/crtstuff.c:133: warning: ‘weak’ attribute ignored ../../gcc-4.2.0/gcc/crtstuff.c:133: error: redefinition of parameter ‘__register_frame_info_bases’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:100: error: previous definition of ‘__register_frame_info_bases’ was here ../../gcc-4.2.0/gcc/crtstuff.c:135: error: storage class specified for parameter ‘__deregister_frame_info’ ../../gcc-4.2.0/gcc/crtstuff.c:135: warning: ‘weak’ attribute ignored ../../gcc-4.2.0/gcc/crtstuff.c:135: error: redefinition of parameter ‘__deregister_frame_info’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:107: error: previous definition of ‘__deregister_frame_info’ was here ../../gcc-4.2.0/gcc/crtstuff.c:137: error: storage class specified for parameter ‘__deregister_frame_info_bases’ ../../gcc-4.2.0/gcc/crtstuff.c:137: warning: ‘weak’ attribute ignored ../../gcc-4.2.0/gcc/crtstuff.c:137: error: redefinition of parameter ‘__deregister_frame_info_bases’ ../../gcc-4.2.0/gcc/unwind-dw2-fde.h:108: error: previous definition of ‘__deregister_frame_info_bases’ was here ../../gcc-4.2.0/gcc/crtstuff.c:138: error: storage class specified for parameter ‘__do_global_ctors_1’ ../../gcc-4.2.0/gcc/crtstuff.c:141: error: storage class specified for parameter ‘_Jv_RegisterClasses’ ../../gcc-4.2.0/gcc/crtstuff.c:141: warning: ‘weak’ attribute ignored ../../gcc-4.2.0/gcc/crtstuff.c:146: error: storage class specified for parameter ‘func_ptr’ ../../gcc-4.2.0/gcc/crtstuff.c:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__CTOR_LIST__’ ../../gcc-4.2.0/gcc/crtstuff.c:186: error: expected declaration specifiers before ‘;’ token ../../gcc-4.2.0/gcc/crtstuff.c:197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DTOR_LIST__’ ../../gcc-4.2.0/gcc/crtstuff.c:199: error: expected declaration specifiers before ‘;’ token ../../gcc-4.2.0/gcc/crtstuff.c:215: error: storage class specified for parameter ‘__JCR_LIST__’ ../../gcc-4.2.0/gcc/crtstuff.c:215: error: parameter ‘__JCR_LIST__’ is initialized ../../gcc-4.2.0/gcc/crtstuff.c:215: error: section attribute not allowed for ‘__JCR_LIST__’ ../../gcc-4.2.0/gcc/crtstuff.c:215: error: alignment may not be specified for ‘__JCR_LIST__’ ../../gcc-4.2.0/gcc/crtstuff.c:215: error: empty scalar initializer ../../gcc-4.2.0/gcc/crtstuff.c:215: error: (near initialization for ‘__JCR_LIST__’) ../../gcc-4.2.0/gcc/crtstuff.c:232: error: storage class specified for parameter ‘__dso_handle’ ../../gcc-4.2.0/gcc/crtstuff.c:232: warning: ‘__visibility__’ attribute ignored ../../gcc-4.2.0/gcc/crtstuff.c:237: error: parameter ‘__dso_handle’ is initialized ../../gcc-4.2.0/gcc/crtstuff.c:237: error: redefinition of parameter ‘__dso_handle’ ../../gcc-4.2.0/gcc/crtstuff.c:232: error: previous definition of ‘__dso_handle’ was here ../../gcc-4.2.0/gcc/crtstuff.c:242: error: storage class specified for parameter ‘__cxa_finalize’ ../../gcc-4.2.0/gcc/crtstuff.c:242: warning: ‘weak’ attribute ignored ../../gcc-4.2.0/gcc/crtstuff.c:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token ../../gcc-4.2.0/gcc/crtstuff.c:308: error: expected declaration specifiers before ‘asm’ ../../gcc-4.2.0/gcc/crtstuff.c:322: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token ../../gcc-4.2.0/gcc/crtstuff.c:348: error: expected declaration specifiers before ‘asm’ ../../gcc-4.2.0/gcc/crtstuff.c:348: error: old-style parameter declarations in prototyped function definition ../../gcc-4.2.0/gcc/crtstuff.c:348: error: expected ‘{’ at end of input Makefile:1553: recipe for target 'crtbegin.o' failed make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory '/home/felipem/Downloads/gcc-4.2/build/gcc' Makefile:4308: recipe for target 'all-gcc' failed make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory '/home/felipem/Downloads/gcc-4.2/build' Makefile:650: recipe for target 'all' failed make: *** [all] Error 2 Please, I anyone can help with it, will be very good =]. -- *Felipe Moura de Oliveira* *Universidade Federal de Minas Gerais* Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0> <https://twitter.com/FelipeMOliveir?lang=pt-br>