From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8067 invoked by alias); 25 Oct 2009 11:24:25 -0000 Received: (qmail 8055 invoked by uid 22791); 25 Oct 2009 11:24:22 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f214.google.com (HELO mail-fx0-f214.google.com) (209.85.220.214) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Oct 2009 11:24:17 +0000 Received: by fxm10 with SMTP id 10so11009421fxm.8 for ; Sun, 25 Oct 2009 04:24:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.150.81 with SMTP id x17mr3553684bkv.73.1256469855188; Sun, 25 Oct 2009 04:24:15 -0700 (PDT) In-Reply-To: <84fc9c000910250418l2620a3e1ucb8a91e5fce132c0@mail.gmail.com> References: <571f6b510910250408m498d6403n2671052fcbb52053@mail.gmail.com> <84fc9c000910250418l2620a3e1ucb8a91e5fce132c0@mail.gmail.com> Date: Sun, 25 Oct 2009 12:19:00 -0000 Message-ID: <571f6b510910250424t2b56c42ajde939e3935374810@mail.gmail.com> Subject: Re: Bootstrap failure with graphite From: Steven Bosscher To: Richard Guenther Cc: GCC Mailing List , Sebastian Pop Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00505.txt.bz2 On Sun, Oct 25, 2009 at 12:18 PM, Richard Guenther wrote: > On Sun, Oct 25, 2009 at 12:08 PM, Steven Bosscher = wrote: >> Hi, >> >> I tried to bootstrap gcc this morning and got the following build failur= e: >> >> /home/stevenb/devel/build/./prev-gcc/xgcc >> -B/home/stevenb/devel/build/./prev-gcc/ >> -B/opt/x86_64-unknown-linux-gnu/bin/ >> -B/opt/x86_64-unknown-linux-gnu/bin/ >> -B/opt/x86_64-unknown-linux-gnu/lib/ -isystem >> /opt/x86_64-unknown-linux-gnu/include -isystem >> /opt/x86_64-unknown-linux-gnu/sys-include =A0 =A0-c =A0-g -O2 -gtoggle >> -DIN_GCC =A0 -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes >> -Wmissing-prototypes -Wmissing-format-attribute -pedantic >> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror >> -Wold-style-definition -Wc++-compat -fno-common =A0-DHAVE_CONFIG_H -I. >> -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include >> -I../../trunk/gcc/../libcpp/include =A0-I../../trunk/gcc/../libdecnumber >> -I../../trunk/gcc/../libdecnumber/bid -I../libdecnumber >> -DCLOOG_PPL_BACKEND =A0-I/opt//include -I/opt//include/libelf >> ../../trunk/gcc/graphite-clast-to-gimple.c -o >> graphite-clast-to-gimple.o >> In file included from /usr/include/cloog/cloog.h:45:0, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from ../../trunk/gcc/graphite-clast-to-g= imple.c:46: >> /usr/include/cloog/ppl_backend.h:173:18: note: originally defined here >> /usr/include/cloog/ppl_backend.h:190:18: note: originally defined here >> cc1: warnings being treated as errors >> ../../trunk/gcc/graphite-clast-to-gimple.c: In function >> 'clast_to_gcc_expression': >> ../../trunk/gcc/graphite-clast-to-gimple.c:167:10: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:12: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c:200:10: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:33: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c:225:10: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:23: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c: In function >> 'gcc_type_for_clast_expr': >> ../../trunk/gcc/graphite-clast-to-gimple.c:268:10: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:12: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c:279:10: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:33: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c:300:10: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:23: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c: In function 'find_cloog_iv_i= n_expr': >> ../../trunk/gcc/graphite-clast-to-gimple.c:718:21: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:12: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c:722:21: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:12: note: enum constant defined here >> ../../trunk/gcc/graphite-clast-to-gimple.c:725:21: error: enum >> constant defined in struct or union is not visible in C++ >> /usr/include/cloog/clast.h:9:33: note: enum constant defined here >> make[3]: *** [graphite-clast-to-gimple.o] Error 1 >> make[3]: Leaving directory `/home/stevenb/devel/build/gcc' >> make[2]: *** [all-stage2-gcc] Error 2 >> make[2]: Leaving directory `/home/stevenb/devel/build' >> make[1]: *** [stage2-bubble] Error 2 >> make[1]: Leaving directory `/home/stevenb/devel/build' >> make: *** [all] Error 2 >> >> This is r153538, with libelfg0-0.8.10, libcloog-ppl-0.15, and >> libppl-0.10, and configured with "../trunk/configure --prefix=3D/opt/ >> --disable-nls --enable-gold --enable-plugins --enable-lto >> --with-libelf=3D/opt/ --enable-languages=3Dc,fortran >> --with-build-time-tools=3D/opt --enable-shared". >> >> Am I the only one seeing this problem? > > It works fine for me. =A0I have in /usr/include/cloog/clast.h > > #if defined(__cplusplus) > extern "C" > =A0{ > #endif > > enum clast_expr_type { expr_term, expr_bin, expr_red }; > ... > > so the enum is not defined inside a class. I have this also > I think you need > more recent libcloog-ppl from the infrastructure directory. I bootstrapped successfully last week and two weeks ago (see e.g. http://gcc.gnu.org/ml/gcc-testresults/2009-10/msg01118.html). What has changed that changed the behavior? I haven't seen any announcement that libcloog-ppl should be upgraded :-/ Ciao! Steven