From owner-freebsd-sparc64@FreeBSD.ORG Sun May 20 15:13:24 2007 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 386F816A400 for ; Sun, 20 May 2007 15:13:24 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id D5F7613C46A for ; Sun, 20 May 2007 15:13:23 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.13.8/8.13.8/ALCHEMY.FRANKEN.DE) with ESMTP id l4KFDMSR091653; Sun, 20 May 2007 17:13:22 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.13.8/8.13.8/Submit) id l4KFDM7a091652; Sun, 20 May 2007 17:13:22 +0200 (CEST) (envelope-from marius) Date: Sun, 20 May 2007 17:13:22 +0200 From: Marius Strobl To: Alexander Kabaev Message-ID: <20070520151322.GA91477@alchemy.franken.de> References: <464F317E.90508@uchicago.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464F317E.90508@uchicago.edu> User-Agent: Mutt/1.4.2.2i Cc: freebsd-sparc64@freebsd.org Subject: Re: GCC 4.2 broken on sparc64? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2007 15:13:24 -0000 On Sat, May 19, 2007 at 12:18:54PM -0500, Nathan Whitehorn wrote: > Building with the new GCC 4.2 on -CURRENT, I get this: > usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include > -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber > -g -DGENERATOR_FILE -DHAVE_CONFIG_H > -I/usr/obj/usr/src/tmp/legacy/usr/include -c > /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c > In file included from ./tm.h:5, > from > /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c:24: > ./options.h:515: error: redeclaration of enumerator `OPT_Werror' > ./options.h:362: error: previous definition of 'OPT_Werror' was here > ./options.h:534: error: redeclaration of enumerator `OPT_Wsystem_headers' > ./options.h:417: error: previous definition of 'OPT_Wsystem_headers' was > here > ./options.h:549: error: redeclaration of enumerator `OPT_d' > ./options.h:427: error: previous definition of 'OPT_d' was here > ./options.h:820: error: redeclaration of enumerator `OPT_o' > ./options.h:682: error: previous definition of 'OPT_o' was here > ./options.h:822: error: redeclaration of enumerator `OPT_pedantic' > ./options.h:683: error: previous definition of 'OPT_pedantic' was here > ./options.h:823: error: redeclaration of enumerator `OPT_pedantic_errors' > ./options.h:684: error: previous definition of 'OPT_pedantic_errors' was > here > *** Error code 1 > > I can't figure out what generates this file, and am at a loss to fix it. > -Nathan Hi Alexander, compiling GCC 4.2 natively as part of the sparc64 world apparently is broken due to some file not being generated as expected. This also happens with a post symbol versioning world installed, cross- compiling it works fine though. Another variant I see is (the full log is at http://people.freebsd.org/~marius/build.txt): cc -O2 -fno-strict-aliasing -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/usr/src/tmp/usr\" -I/usr/obj/usr/src/tmp/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c: In function 'c_lex_with_flags': /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c:374: error: 'PURE_ZERO' undeclared (first use in this function) /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c:374: error: (Each undeclared identifier is reported only once /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c:374: error: for each function it appears in.) /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c:466: error: 'const union cpp_token_u' has no member named 'pragma' /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c: In function 'interpret_float': /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-lex.c:644: error: 'CPP_N_DFLOAT' undeclared (first use in this function) Do you have an idea what's causing this? I remeber one of your earlier GCC 4.1 snapshots exhibiting similar problems, the next one worked fine though. Marius