Bug 38971 - RFE - Cloog .git is version "0.14.0" but gcc requires "0.15.0" (and our other problems with the cloog trunk)
Summary: RFE - Cloog .git is version "0.14.0" but gcc requires "0.15.0" (and our other...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.4.0
: P3 major
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 02:54 UTC by Rob
Modified: 2009-01-26 12:36 UTC (History)
1 user (show)

See Also:
Host: i386-redhat-linux-gnu
Target: i386-redhat-linux-gnu
Build: i386-redhat-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob 2009-01-26 02:54:42 UTC
+++ This bug was initially created as a clone of Bug #38911 +++
I'm compiling gcc revision 143664 on F10.

The cloog website recommends it's ".git" for best results:
http://www.bastoul.net/cloog/download.php#DEV


The '.git' version (newest) creates version.h with this content:
#define CLOOG_HEAD "0.14.0-148-gdccf6cb"

Gcc's ./configure requires cloog 0.15 as a minimum.



The Instructions for cloog DEV have this as one of the things you must do:

./configure --without-polylib --with-isl=bundled --with-gmp-prefix=/path/to/gmp/installation


If you configure in that manner gcc's ./configure will see that you do 
not use PPL but do have Cloog and will allow gcc to configure and build, 
failing here:

gcc -ffloat-store -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc_trunk/gcc -I../../gcc_trunk/gcc/. -I../../gcc_trunk/gcc/../include -I./../intl -I../../gcc_trunk/gcc/../libcpp/include  -I../../gcc_trunk/gcc/../libdecnumber -I../../gcc_trunk/gcc/../libdecnumber/bid -I../libdecnumber  -I/usr/local/include -DCLOOG_PPL_BACKEND   ../../gcc_trunk/gcc/graphite.c -o graphite.o
In file included from ../../gcc_trunk/gcc/graphite.c:60:
../../gcc_trunk/gcc/graphite.h:119: error: expected specifier-qualifier-list before ‘CloogMatrix’
../../gcc_trunk/gcc/graphite.h: In function ‘gbb_nb_loops’:
../../gcc_trunk/gcc/graphite.h:227: error: ‘const struct graphite_bb’ has no member named ‘domain’
../../gcc_trunk/gcc/graphite.h:230: error: ‘const struct graphite_bb’ has no member named ‘domain’
../../gcc_trunk/gcc/graphite.h:231: warning: control reaches end of non-void function
../../gcc_trunk/gcc/graphite.h: In function ‘gbb_loop_at_index’:
../../gcc_trunk/gcc/graphite.h:239: error: ‘struct graphite_bb’ has no member named ‘loops’
../../gcc_trunk/gcc/graphite.h:239: error: ‘struct graphite_bb’ has no member named ‘loops’
../../gcc_trunk/gcc/graphite.h: In function ‘gbb_loop_index’:
../../gcc_trunk/gcc/graphite.h:250: error: ‘struct graphite_bb’ has no member named ‘loops’
../../gcc_trunk/gcc/graphite.h:250: error: ‘struct graphite_bb’ has no member named ‘loops’
../../gcc_trunk/gcc/graphite.h: In function ‘loop_domain_dim’:
../../gcc_trunk/gcc/graphite.h:482: warning: implicit declaration of function ‘cloog_domain_dim’
../../gcc_trunk/gcc/graphite.h:482: warning: implicit declaration of function ‘cloog_loop_domain’
../../gcc_trunk/gcc/graphite.c: At top level:
../../gcc_trunk/gcc/graphite.c:67: error: expected declaration specifiers or ‘...’ before ‘Value’
../../gcc_trunk/gcc/graphite.c: In function ‘gmp_cst_to_tree’:
../../gcc_trunk/gcc/graphite.c:69: warning: implicit declaration of function ‘value_get_si’
../../gcc_trunk/gcc/graphite.c:69: error: ‘v’ undeclared (first use in this function)
../../gcc_trunk/gcc/graphite.c:69: error: (Each undeclared identifier is reported only once
../../gcc_trunk/gcc/graphite.c:69: error: for each function it appears in.)
../../gcc_trunk/gcc/graphite.c: In function ‘debug_loop_vec’:
../../gcc_trunk/gcc/graphite.c:101: error: ‘struct graphite_bb’ has no member named ‘loops’
../../gcc_trunk/gcc/graphite.c:101: error: ‘struct graphite_bb’ has no member named ‘loops’
../../gcc_trunk/gcc/graphite.c: In function ‘gcc_type_for_cloog_iv’:
../../gcc_trunk/gcc/graphite.c:331: error: ‘struct graphite_bb’ has no member named ‘cloog_iv_types’
../../gcc_trunk/gcc/graphite.c: In function ‘loop_iv_stack_patch_for_consts’:
../../gcc_trunk/gcc/graphite.c:350: warning: implicit declaration of function ‘cloog_statement_usr’
../../gcc_trunk/gcc/graphite.c:365: error: too many arguments to function ‘gmp_cst_to_tree’

...

../../gcc_trunk/gcc/graphite.c: In function ‘graphite_transform_loops’:
../../gcc_trunk/gcc/graphite.c:6071: warning: implicit declaration of function ‘cloog_initialize’
../../gcc_trunk/gcc/graphite.c:6133: warning: implicit declaration of function ‘cloog_finalize’
make[3]: *** [graphite.o] Error 1
make[3]: Leaving directory `/mnt/drive2/gcc_build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/mnt/drive2/gcc_build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/drive2/gcc_build'
make: *** [all] Error 2


Thanks,
Rob
Comment 1 Sebastian Pop 2009-01-26 03:09:08 UTC
You are not supposed to use Cloog trunk, for GCC 4.4 you have to use
this: ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-0.15.tar.gz
and follow the install instructions either from GCC's docs or from the
wiki page: http://gcc.gnu.org/wiki/Graphite_Build

Sebastian
Comment 2 Rob 2009-01-26 12:36:42 UTC
I was just going to post this and got a mid-air:

It is possible (and would be unfortunate) that gcc will only build with 
a 'special edition' cloog-ppl from: ftp://gcc.gnu.org/pub/gcc/infrastructure/ .

Thanks, if you can fix it so the '.git.' will work I am willing to test.

Rob