public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bootstrap failure with graphite
@ 2009-10-25 11:24 Steven Bosscher
  2009-10-25 11:38 ` Richard Guenther
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Bosscher @ 2009-10-25 11:24 UTC (permalink / raw)
  To: GCC Mailing List, Sebastian Pop

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?

Ciao!
Steven

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bootstrap failure with graphite
  2009-10-25 11:24 Bootstrap failure with graphite Steven Bosscher
@ 2009-10-25 11:38 ` Richard Guenther
  2009-10-25 12:19   ` Steven Bosscher
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Guenther @ 2009-10-25 11:38 UTC (permalink / raw)
  To: Steven Bosscher; +Cc: GCC Mailing List, Sebastian Pop

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 think you need
more recent libcloog-ppl from the infrastructure directory.

Richard.

> Ciao!
> Steven
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bootstrap failure with graphite
  2009-10-25 11:38 ` Richard Guenther
@ 2009-10-25 12:19   ` Steven Bosscher
  2009-10-25 14:54     ` Richard Guenther
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Bosscher @ 2009-10-25 12:19 UTC (permalink / raw)
  To: Richard Guenther; +Cc: GCC Mailing List, Sebastian Pop

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bootstrap failure with graphite
  2009-10-25 12:19   ` Steven Bosscher
@ 2009-10-25 14:54     ` Richard Guenther
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Guenther @ 2009-10-25 14:54 UTC (permalink / raw)
  To: Steven Bosscher; +Cc: GCC Mailing List, Sebastian Pop

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-25 11:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-25 11:24 Bootstrap failure with graphite Steven Bosscher
2009-10-25 11:38 ` Richard Guenther
2009-10-25 12:19   ` Steven Bosscher
2009-10-25 14:54     ` Richard Guenther

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).