public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Guenther <richard.guenther@gmail.com>
To: Steven Bosscher <stevenb.gcc@gmail.com>
Cc: GCC Mailing List <gcc@gcc.gnu.org>, Sebastian Pop <sebpop@gmail.com>
Subject: Re: Bootstrap failure with graphite
Date: Sun, 25 Oct 2009 14:54:00 -0000	[thread overview]
Message-ID: <84fc9c000910250438q77711bdeyc3216b697a9600bd@mail.gmail.com> (raw)
In-Reply-To: <571f6b510910250424t2b56c42ajde939e3935374810@mail.gmail.com>

On Sun, Oct 25, 2009 at 12:24 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> On Sun, Oct 25, 2009 at 12:18 PM, Richard Guenther
> <richard.guenther@gmail.com> wrote:
>> On Sun, Oct 25, 2009 at 12:08 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
>>> Hi,
>>>
>>> I tried to bootstrap gcc this morning and got the following build failure:
>>>
>>> /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    -c  -g -O2 -gtoggle
>>> -DIN_GCC   -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  -DHAVE_CONFIG_H -I.
>>> -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include
>>> -I../../trunk/gcc/../libcpp/include  -I../../trunk/gcc/../libdecnumber
>>> -I../../trunk/gcc/../libdecnumber/bid -I../libdecnumber
>>> -DCLOOG_PPL_BACKEND  -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,
>>>                 from ../../trunk/gcc/graphite-clast-to-gimple.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_in_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=/opt/
>>> --disable-nls --enable-gold --enable-plugins --enable-lto
>>> --with-libelf=/opt/ --enable-languages=c,fortran
>>> --with-build-time-tools=/opt --enable-shared".
>>>
>>> Am I the only one seeing this problem?
>>
>> It works fine for me.  I have in /usr/include/cloog/clast.h
>>
>> #if defined(__cplusplus)
>> extern "C"
>>  {
>> #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 :-/

The configure was fixed so that graphite is enabled when the requirements
are met (obviously the checks are not rigid enough as you show), like
it is on the 4.4 branch.

The request to update cloog-ppl was alongside the C++ compat warning
changes back earlier this year (just most people didn't notice due to
the broken configure).

Richard.

      reply	other threads:[~2009-10-25 11:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-25 11:24 Steven Bosscher
2009-10-25 11:38 ` Richard Guenther
2009-10-25 12:19   ` Steven Bosscher
2009-10-25 14:54     ` Richard Guenther [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84fc9c000910250438q77711bdeyc3216b697a9600bd@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=sebpop@gmail.com \
    --cc=stevenb.gcc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).