From mint-bounce@lists.fishpool.fi Tue Jan 22 17:32:03 2008 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Message-ID: Date: Tue, 1 Jan 2008 21:47:54 +0100 From: MiKRO To: mint Subject: [MiNT] gcc 4.2.2 compile error MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: miro.kropacek@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: Status: X-Status: X-Keywords: Hi, I'm trying to build gcc 4.2.2 on my falcon. I successfully compiled binutils 2.18 (but I didn't use them for this compilation, I used original 2.13 version supplied with freemint) but in the gcc compilation process I can't go trough this: gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.2.2/gcc -I../../gcc-4.2.2/gcc/build -I../../gcc-4.2.2/gcc/../include -I../../gcc-4.2.2/gcc/../libcpp/include -I../../gcc-4.2.2/gcc/../libdecnumber -I../libdecnumber -o build/errors.o ../../gcc-4.2.2/gcc/errors.c gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmodes \ build/genmodes.o build/errors.o ../build-m68k-atari-mint1.17a/libiberty/libiberty.a build/genmodes -h > tmp-modes.h /bin/sh ../../gcc-4.2.2/gcc/../move-if-change tmp-modes.h insn-modes.h echo timestamp > s-modes-h gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.2.2/gcc -I../../gcc-4.2.2/gcc/build -I../../gcc-4.2.2/gcc/../include -I../../gcc-4.2.2/gcc/../libcpp/include -I../../gcc-4.2.2/gcc/../libdecnumber -I../libdecnumber -o build/genconstants.o ../../gcc-4.2.2/gcc/genconstants.c In file included from tm.h:14, from ../../gcc-4.2.2/gcc/genconstants.c:31: ../../gcc-4.2.2/gcc/config/m68k/mint.h:133: parse error before `(' ../../gcc-4.2.2/gcc/config/m68k/mint.h:133: warning: type defaults to `int' in declaration of `gen_rtx_REG' ../../gcc-4.2.2/gcc/config/m68k/mint.h:133: warning: function declaration isn't a prototype ../../gcc-4.2.2/gcc/config/m68k/mint.h:133: parse error before `&' ../../gcc-4.2.2/gcc/config/m68k/mint.h:198: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:199: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:200: stray '\' in program ./../gcc-4.2.2/gcc/config/m68k/mint.h:201: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:202: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:203: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:204: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:205: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:206: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:207: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:234: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:235: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:236: stray '\' in program ../../gcc-4.2.2/gcc/config/m68k/mint.h:237: stray '\' in program In file included from ../../gcc-4.2.2/gcc/rtl.h:25, from ../../gcc-4.2.2/gcc/genconstants.c:32: ../../gcc-4.2.2/gcc/machmode.h:29: `NUM_MACHINE_MODES' undeclared here (not in a function) In file included from ../../gcc-4.2.2/gcc/rtl.h:25, from ../../gcc-4.2.2/gcc/genconstants.c:32: ./../gcc-4.2.2/gcc/machmode.h:43: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:93: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:98: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:104: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:110: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:122: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:127: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:130: `NUM_MACHINE_MODES' undeclared here (not in a function) ../../gcc-4.2.2/gcc/machmode.h:148: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/machmode.h:153: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/machmode.h:157: `NUM_MACHINE_MODES' undeclared here (not in a function) ./../gcc-4.2.2/gcc/machmode.h:159: warning: parameter has incomplete type In file included from ../../gcc-4.2.2/gcc/rtl.h:27, from ../../gcc-4.2.2/gcc/genconstants.c:32: ../../gcc-4.2.2/gcc/real.h:164: `MAX_MODE_FLOAT' undeclared here (not in a function) ../../gcc-4.2.2/gcc/real.h:164: `MIN_MODE_FLOAT' undeclared here (not in a function) ../../gcc-4.2.2/gcc/real.h:165: `MAX_MODE_DECIMAL_FLOAT' undeclared here (not in a function) ../../gcc-4.2.2/gcc/real.h:165: `MIN_MODE_DECIMAL_FLOAT' undeclared here (not in a function) ../../gcc-4.2.2/gcc/real.h:165: size of array `real_format_for_mode' has non-integer type ../../gcc-4.2.2/gcc/real.h:205: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:208: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:226: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:230: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:234: warning: parameter has incomplete type ./../gcc-4.2.2/gcc/real.h:239: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:243: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:245: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:332: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:346: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:348: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:398: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:401: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:408: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:412: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:416: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:418: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:420: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/real.h:422: warning: parameter has incomplete type In file included from ../../gcc-4.2.2/gcc/genconstants.c:32: ../../gcc-4.2.2/gcc/rtl.h:166: field `rt_type' has incomplete type ../../gcc-4.2.2/gcc/rtl.h:240: field `mode' has incomplete type ../../gcc-4.2.2/gcc/rtl.h:240: bit-field `mode' has invalid type In file included from ../../gcc-4.2.2/gcc/genconstants.c:32: ../../gcc-4.2.2/gcc/rtl.h:1034: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1037: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1037: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1039: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1039: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1041: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1041: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1043: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1044: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1046: warning: parameter has incomplete type ./../gcc-4.2.2/gcc/rtl.h:1440: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1447: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1473: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1474: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1476: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1479: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1482: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1483: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1483: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1484: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1487: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1490: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1490: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1492: warning: parameter has incomplete type ./../gcc-4.2.2/gcc/rtl.h:1492: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1494: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1505: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1509: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1509: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1512: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1523: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1524: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1526: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1618: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1618: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1620: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1620: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1622: warning: parameter has incomplete type ./../gcc-4.2.2/gcc/rtl.h:1624: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1626: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1626: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1628: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1630: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1630: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1631: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1633: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1633: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1635: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1635: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1637: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1637: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1639: warning: parameter has incomplete type ./../gcc-4.2.2/gcc/rtl.h:1639: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1641: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1641: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1646: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1792: `MAX_MACHINE_MODE' undeclared here (not in a function) ../../gcc-4.2.2/gcc/rtl.h:1883: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1884: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1885: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1886: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1886: conflicting types for `gen_rtx_REG' ../../gcc-4.2.2/gcc/config/m68k/mint.h:133: previous declaration of `gen_rtx_REG' ../../gcc-4.2.2/gcc/rtl.h:1887: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:1888: warning: parameter has incomplete type ./../gcc-4.2.2/gcc/rtl.h:2004: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2027: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2076: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2077: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2078: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2079: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2081: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2081: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2084: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2146: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2177: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2202: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2204: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2227: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2230: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2239: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2261: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2261: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2273: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2274: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2276: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2276: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2278: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2278: warning: parameter has incomplete type ../../gcc-4.2.2/gcc/rtl.h:2279: warning: parameter has incomplete type make[3]: *** [build/genconstants.o] Error 1 make[3]: Leaving directory `/k/root/atari-ports/gnu/_tutorials/vriviere/gcc-4.2.2-native/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/k/root/atari-ports/gnu/_tutorials/vriviere/gcc-4.2.2-native' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/k/root/atari-ports/gnu/_tutorials/vriviere/gcc-4.2.2-native' make: *** [all] Error 2 It seems that "gen_rtx_REG" is unknown to compiler at the time and it makes that error. Strange thing is nothing similar happend when I was trying to build cross gcc and then native gcc using that cross gcc (here I used that binutils 2.18) on my linux. I don't believe there's some connection between this error and version of binutils used, has anyone any idea? I used cvs mintlib and the last gcc patch from Vincent. Thanks, -- MiKRO / Mystic Bytes http://mikro.atari.org