Bootstrap failure with graphite

Steven Bosscher stevenb.gcc@gmail.com
Sun Oct 25 12:19:00 GMT 2009


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 :-/

Ciao!
Steven



More information about the Gcc mailing list